forked from ni/nimi-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.py
More file actions
4982 lines (4982 loc) · 252 KB
/
functions.py
File metadata and controls
4982 lines (4982 loc) · 252 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8 -*-
# This file is generated from NI-RFSG API metadata version 25.8.0d197
functions = {
'Abort': {
'codegen_method': 'public',
'documentation': {
'description': '\nStops signal generation.\n\n**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\n\n**Related Topics**\n\n`NI-RFSG Programming State Model <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/ni_5670_programming_state_model.html>`_'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'AllocateArbWaveform': {
'codegen_method': 'public',
'documentation': {
'description': '\nAllocates onboard memory space for the arbitrary waveform.\n\nUse this function to specify the total size of a waveform before writing the data. Use this function only if you are calling the nirfsg_WriteArbWaveform function multiple times to write a large waveform in smaller blocks.\n\nThe NI-RFSG device must be in the Configuration state before you call this function.\n\n**Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860\n\n**Related Topics**\n\n`Streaming Waveform Data <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/streaming_waveform_data.html>`_'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words.'
},
'name': 'waveformName',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the number of samples to reserve in the onboard memory for the specified waveform. Each I/Q pair is considered one sample.'
},
'name': 'sizeInSamples',
'type': 'ViInt32',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ChangeExternalCalibrationPassword': {
'codegen_method': 'public',
'documentation': {
'description': '\nChanges the external calibration password of the device.\n\n**Supported Devices:** PXIe-5611, PXIe-5653/5654, PXIe-5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the old (current) external calibration password. This password is case sensitive.'
},
'name': 'oldPassword',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the new (desired) external calibration password.'
},
'name': 'newPassword',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'CheckGenerationStatus': {
'codegen_method': 'public',
'documentation': {
'description': '\nChecks the status of the generation.\n\nCall this function to check for any errors that might occur during the signal generation or to check whether the device has finished generating.\n\n**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\n\n**Related Topics**\n\n`NI-RFSG Instrument Driver Programming Flow <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/progflow.html>`'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'out',
'documentation': {
'description': 'Returns information about the completion of signal generation.\n\n**Defined Values** :',
'table_body': [
[
'VI_TRUE',
'Signal generation is complete.'
],
[
'VI_FALSE',
'Signal generation is occurring.'
]
],
'table_header': [
'Value',
'Description'
]
},
'name': 'isDone',
'type': 'ViBoolean',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'CheckIfScriptExists': {
'codegen_method': 'public',
'documentation': {
'description': '\nReturns whether the script that you specify as NIRFSG_ATTR_SCRIPT_NAME exists.\n\n**Supported Devices** : PXIe-5673/5673E. PXIe-5830/5831/5840/5841/5842/5860'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name of the script. This string is case-insensitive.'
},
'name': 'scriptName',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'out',
'documentation': {
'description': 'Returns VI_TRUE if the script exists.\n\n**Defined Values** :',
'table_body': [
[
'VI_TRUE',
'The script exists.'
],
[
'VI_FALSE',
'The script does not exist.'
]
],
'table_header': [
'Value',
'Description'
]
},
'name': 'scriptExists',
'type': 'ViBoolean',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'CheckIfWaveformExists': {
'codegen_method': 'public',
'documentation': {
'description': '\nReturns whether the waveform that you specify as NIRFSG_ATTR_WAVEFORM_NAME exists.\n\n**Supported Devices** : PXIe-5673/5673E, PXIe-5830/5831/5840/5841/5842/5860'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name used to store the waveform. This string is case-insensitive.'
},
'name': 'waveformName',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'out',
'documentation': {
'description': 'Returns VI_TRUE if the waveform exists.\n\n**Defined Values** :',
'table_body': [
[
'VI_TRUE',
'The waveform exists.'
],
[
'VI_FALSE',
'The waveform does not exist.'
]
],
'table_header': [
'Value',
'Description'
]
},
'name': 'waveformExists',
'type': 'ViBoolean',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ClearAllArbWaveforms': {
'codegen_method': 'public',
'documentation': {
'description': '\nDeletes all currently defined waveforms and scripts.\n\nThe NI-RFSG device must be in the Configuration state before you call this function.\n\n**Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ClearArbWaveform': {
'codegen_method': 'public',
'documentation': {
'description': '\nDeletes a specified waveform from the pool of currently defined waveforms.\n\nThe NI-RFSG device must be in the Configuration state before you call this function.\n\n**Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Name of the stored waveform to delete.'
},
'name': 'waveformName',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ClearSelfCalibrateRange': {
'codegen_method': 'public',
'documentation': {
'description': '\nClears the data obtained from the nirfsg_SelfCalibrateRange function.\n\n**Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'Commit': {
'codegen_method': 'public',
'documentation': {
'description': '\nPrograms the device with the correct settings.\n\nCalling this function moves the NI-RFSG device from the Configuration state to the Committed state. After this function executes, a change to any attribute reverts the NI-RFSG device to the Configuration state.\n\n**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\n\n**Related Topics**\n\n`NI-RFSG Programming State Model <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/ni_5670_programming_state_model.html>`_'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ConfigureDeembeddingTableInterpolationLinear': {
'codegen_method': 'public',
'documentation': {
'description': '\nSelects the linear interpolation method.\n\nIf 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.\n\n**Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string).'
},
'name': 'port',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name of the table.'
},
'name': 'tableName',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the format of parameters to interpolate. **Defined Values** :',
'table_body': [
[
'NIRFSG_VAL_LINEAR_INTERPOLATION_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.'
],
[
'NIRFSG_VAL_LINEAR_INTERPOLATION_FORMAT_MAGNITUDE_AND_PHASE',
'26001 (0x6591)',
'Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase.'
],
[
'NIRFSG_VAL_LINEAR_INTERPOLATION_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.'
]
],
'table_header': [
'Name',
'Value',
'Description'
]
},
'enum': 'Format',
'name': 'format',
'type': 'ViInt32',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ConfigureDeembeddingTableInterpolationNearest': {
'codegen_method': 'public',
'documentation': {
'description': '\nSelects the nearest interpolation method.\n\nNI-RFSG uses the parameters of the table nearest to the carrier frequency for de-embedding.\n\n**Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string).'
},
'name': 'port',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name of the table.'
},
'name': 'tableName',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ConfigureDeembeddingTableInterpolationSpline': {
'codegen_method': 'public',
'documentation': {
'description': '\nSelects the spline interpolation method.\n\nIf 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.\n\n**Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string).'
},
'name': 'port',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the name of the table.'
},
'name': 'tableName',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ConfigureDigitalEdgeScriptTrigger': {
'codegen_method': 'public',
'documentation': {
'description': '\nConfigures the specified Script Trigger for digital edge triggering.\n\nThe NI-RFSG device must be in the Configuration state before calling this function.\n\n**Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860\n\n**Related Topics**\n\n`Script Trigger <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/script_triggers.html>`_\n\n`Digital Edge Trigger <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/trigger_edge.html>`_'
},
'has_repeated_capability': True,
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the Script Trigger to configure.'
},
'is_repeated_capability': True,
'name': 'triggerId',
'repeated_capability_type': 'script_triggers',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the source terminal for the digital edge Script Trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE attribute to this value.'
},
'name': 'source',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the active edge for the digital edge Script Trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE attribute to this value.'
},
'enum': 'ScriptTriggerDigitalEdgeEdge',
'grpc_enum': 'DigitalEdgeEdge',
'name': 'edge',
'type': 'ViInt32',
'use_array': False,
'use_in_python_api': True
}
],
'repeated_capability_type': 'script_triggers',
'returns': 'ViStatus'
},
'ConfigureDigitalEdgeStartTrigger': {
'codegen_method': 'public',
'documentation': {
'description': '\nConfigures the Start Trigger for digital edge triggering.\n\nThe NI-RFSG device must be in the Configuration state before calling this function.\n\n**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\n\n**Related Topics**\n\n`Start Trigger <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/start_triggers.html>`_\n\n`Digital Edge Trigger <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/trigger_edge.html>`_',
'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.'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the source terminal for the digital edge trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE attribute to this value.'
},
'name': 'source',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the active edge for the Start Trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE attribute to this value.'
},
'enum': 'StartTriggerDigitalEdgeEdge',
'grpc_enum': 'DigitalEdgeEdge',
'name': 'edge',
'type': 'ViInt32',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ConfigureDigitalLevelScriptTrigger': {
'codegen_method': 'public',
'documentation': {
'description': '\nConfigures a specified Script Trigger for digital level triggering.\n\nThe NI-RFSG device must be in the Configuration state before calling this function.\n\n**Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860\n\n**Related Topics**\n\n`Script Trigger <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/script_triggers.html>`_\n\n`Digital Level Trigger <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/trigger_level.html>`_'
},
'has_repeated_capability': True,
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the Script Trigger to configure.'
},
'is_repeated_capability': True,
'name': 'triggerId',
'repeated_capability_type': 'script_triggers',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the trigger source terminal for the digital level Script Trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_LEVEL_SCRIPT_TRIGGER_SOURCE attribute to this value.'
},
'name': 'source',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the active level for the digital level Script Trigger. NI-RFSG sets the NIRFSG_ATTR_DIGITAL_LEVEL_SCRIPT_TRIGGER_ACTIVE_LEVEL attribute to this value.'
},
'name': 'level',
'type': 'ViInt32',
'use_array': False,
'use_in_python_api': True
}
],
'repeated_capability_type': 'script_triggers',
'returns': 'ViStatus'
},
'ConfigureRF': {
'codegen_method': 'public',
'documentation': {
'description': '\nConfigures the frequency and power level of the RF output signal.\n\nThe PXI-5670/5671, PXIe-5672, and PXIe-5860 device must be in the Configuration state before calling this function. 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 function.\n\n**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\n\n**Related Topics**\n\n`NI-RFSG Instrument Driver Programming Flow <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/progflow.html>`_'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the frequency of the generated RF signal, in hertz. For arbitrary waveform generation, this parameter specifies the center frequency of the signal.\n\n**Units** : hertz (Hz)'
},
'name': 'frequency',
'type': 'ViReal64',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies either the average power level or peak power level of the generated RF signal, depending on the NIRFSG_ATTR_POWER_LEVEL_TYPE attribute.\n\n**Units** : dBm'
},
'name': 'powerLevel',
'type': 'ViReal64',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ConfigureRefClock': {
'codegen_method': 'public',
'documentation': {
'description': '\nConfigures the NI-RFSG device Reference Clock.\n\nThe 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 function.\n\n**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\n\n**Related Topics**\n\n`PXIe-5672 Timing Configurations <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/timing_configurations.html>`_\n\n`PXIe-5673 Timing Configurations <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/10mhzreference_phase1.html>`_\n\n`PXIe-5673E Timing Configurations <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/10mhzreference.html>`_\n\n`PXIe-5830 Timing Configurations <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/timing_configurations.html>`_\n\n`PXIe-5831 Timing Configurations <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/timing_configurations.html>`_'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the source of Reference Clock signal.',
'table_body': [
[
'"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.'
]
],
'table_header': [
'Possible Values',
'Description'
]
},
'name': 'refClockSource',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': '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 NIRFSG_ATTR_REF_CLOCK_SOURCE parameter is set to ClkIn, RefIn or RefIn2. Refer to the NIRFSG_ATTR_REF_CLOCK_RATE attribute for possible values.'
},
'name': 'refClockRate',
'type': 'ViReal64',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'ConfigureSoftwareScriptTrigger': {
'codegen_method': 'public',
'documentation': {
'description': '\nConfigures the Script Trigger for software triggering.\n\nRefer to the nirfsg_SendSoftwareEdgeTrigger function for more information about using the software Script Trigger. The NI-RFSG device must be in the Configuration state before calling this function.\n\n**Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860\n\n**Related Topics**\n\n`Script Trigger <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/script_triggers.html>`_\n\n`Trigger Types <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/trigger_types.html>`_'
},
'has_repeated_capability': True,
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},
{
'direction': 'in',
'documentation': {
'description': 'Specifies the Script Trigger to configure.'
},
'is_repeated_capability': True,
'name': 'triggerId',
'repeated_capability_type': 'script_triggers',
'type': 'ViConstString',
'use_array': False,
'use_in_python_api': True
}
],
'repeated_capability_type': 'script_triggers',
'returns': 'ViStatus'
},
'ConfigureSoftwareStartTrigger': {
'codegen_method': 'public',
'documentation': {
'description': '\nConfigures the Start Trigger for software triggering.\n\nRefer to the nirfsg_SendSoftwareEdgeTrigger function for more information about using a software trigger. The NI-RFSG device must be in the Configuration state before calling this function.\n\n**Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860\n\n**Related Topics**\n\n`Start Trigger <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/start_triggers.html>`_\n\n`Trigger Types <https://www.ni.com/docs/en-US/bundle/rfsg/page/rfsg/trigger_types.html>`_'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'default_method',
'library_interpreter_filename': 'default_method',
'method_python_name_suffix': '',
'session_filename': 'default_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
}
],
'returns': 'ViStatus'
},
'CreateDeembeddingSparameterTableArray': {
'codegen_method': 'private',
'documentation': {
'description': '\nCreates an s-parameter de-embedding table for the port from the input data.\n\nIf you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement.\n\n**Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860\n\n**Related Topics**\n\n`De-embedding Overview <https://www.ni.com/docs/en-US/bundle/pxie-5840/page/de-embedding-overview.html>`_'
},
'included_in_proto': True,
'method_templates': [
{
'documentation_filename': 'numpy_method',
'library_interpreter_filename': 'numpy_write_method',
'method_python_name_suffix': '',
'session_filename': 'numpy_write_method'
}
],
'parameters': [
{
'direction': 'in',
'documentation': {
'description': 'Identifies your instrument session. The ViSession handle is obtained from the nirfsg_Init function or the nirfsg_InitWithOptions function and identifies a particular instrument session.'
},
'name': 'vi',
'type': 'ViSession',
'use_array': False,
'use_in_python_api': True
},