RESET_AFG31000
Download Flojoy Studio to try this app
Reset the instrument. This block should also work with compatible Tektronix AFG31XXX instruments. Params: connection : VisaConnection The VISA address (requires the CONNECTION_AFG31000 block). Returns: out : String Placeholder
Python Code
from flojoy import flojoy, DataContainer, String, VisaConnection
from typing import Optional
@flojoy(inject_connection=True)
def RESET_AFG31000(
connection: VisaConnection,
input: Optional[DataContainer] = None,
) -> String:
"""Reset the instrument.
This block should also work with compatible Tektronix AFG31XXX instruments.
Parameters
----------
connection: VisaConnection
The VISA address (requires the CONNECTION_AFG31000 block).
Returns
-------
String
Placeholder
"""
afg = connection.get_handle()
afg.write("*RST")
return String(s="Reset channel parameters")
Example App
Having problems with this example app? Join our Discord community and we will help you out!
In this example, an Tektronix AFG31000 is used to generate two waveforms.
First the necessary blocks were added:
CONNECT_AFG31000
RESET_AFG31000
- 2x
FUNCTION_AFG31000
ALIGN_PHASES_AFG31000
OUTPUT_AFG31000
SAVE_STATE_AFG31000
The instrument address was set for each AFG31000
block. Ensure the OUTPUT_AFG31000
block has both channels turn on.
The blocks were connected as shown and the app was run. The SAVE_STATE_AFG31000
block can be used to save and recall the current state of the AFG. However, you must use a OUTPUT_AFG31000
block to turn the outputs back on.
An oscilloscope was connected to the AFG31000 resulting in waveform: