view¶
List of supported commands:
-
class
nardascripting.base.scpi.view.
ScpiView
(com: nardascripting.base.comm.CommBase)¶ SignalShark VIEW SCPI subsystem class.
-
add
(reference: int, direction: nardascripting.base.scpi.enums.ViewDirections, vtype: nardascripting.base.scpi.enums.ViewTypes)¶ Adds a new view to the active measurement task
- Parameters
reference (int) – Index of the reference view to insert the new view next to starting with 1.
direction (ViewDirections) – Position of the new view relative to the reference view (LEFT,RIGHT,ABOVE,BELOW)
vtype (ViewTypes) – Type of view e.g. ‘SPECTRUM’, ‘PEAK_TABLE’, ‘LEVEL’, ‘SPECTROGRAM’, ‘BEARING’
- Returns
Index of the new view added
- Return type
int
-
delete
(view: int)¶ Deletes a view from the active measurement task
- Parameters
view (int) – Index of the view to delete
-
get_list
()¶ Queries a list of views of the active measurement task
- Returns
Two dimensional list (Type, index) of current task views.
- Return type
list [ViewTypes, int]
-
get_selected
()¶ Queries the index of the selected view of the active measurement task
- Returns
Index of the selected View
- Return type
int
-
replace
(view: int, vtype: nardascripting.base.scpi.enums.ViewTypes)¶ Replaces a view of the active measurement task
- Parameters
view (int) – Index of the view to replace
vtype (ViewTypes) – Type of view e.g. ‘PEAK_TABLE’
-
set_select
(view: int)¶ Selects a view from the active measurement task
- Parameters
view (int) – Index of the view to select
-
size_maximize
()¶ Maximizes the selected view
-
size_restore
()¶ Restores the size of the selected view
-