DISPLAY_FSV
The DISPLAY_FSV block turns the display on or off during remote control.The instrument may be faster with display_on = False.
Requires a CONNECTION_FSV node at the start of the app to connect with
the instrument. The VISA address will then be listed under 'connection'.
This node should also work with compatible R&S network analyzers.Params:connection : VisaConnectionThe VISA address (requires the CONNECTION_FSV node).display_on : floatKeep the display on? The FSV runs faster when off.Returns:out : TextBlobDisplay on or off.
Python Code
from flojoy import flojoy, DataContainer, TextBlob, VisaConnection
from typing import Optional
@flojoy(inject_connection=True)
def DISPLAY_FSV(
connection: VisaConnection,
display_on: bool = False,
default: Optional[DataContainer] = None,
) -> TextBlob:
"""The DISPLAY_FSV block turns the display on or off during remote control.
The instrument may be faster with display_on = False.
Requires a CONNECTION_FSV node at the start of the app to connect with
the instrument. The VISA address will then be listed under 'connection'.
This node should also work with compatible R&S network analyzers.
Parameters
----------
connection: VisaConnection
The VISA address (requires the CONNECTION_FSV node).
display_on: float
Keep the display on? The FSV runs faster when off.
Returns
-------
TextBlob
Display on or off.
"""
rohde = connection.get_handle()
if display_on:
rohde.write("SYST:DISP:UPD ON")
s = "Display: ON"
else:
rohde.write("SYST:DISP:UPD OFF")
s = "Display: OFF"
return TextBlob(text_blob=s)
Example
Having problems with this example app? Join our Discord community and we will help you out!
In this example, the Rohde & Schwarz FSV Signal Analyzer is used to view the FM radio range (86-110 MHz).
First 4 FSV nodes were added: CONNECTION_FSV
, SWEEP_SETTINGS_FSV
, INIT_SWEEP_FSV
, and EXTRACT_SWEEP_FSV
. A LINE
node was also added. The VISA address
was set for the 4 instrument nodes. The range of the signal analyzer sweep was set with SWEEP_SETTINGS_FSV
(start
= 86, stop
= 110 MHz).
The nodes were then connected as shown in the image, and the app was run.