Connecting to AQ6370 by Yokogawa in Python
Instrument Card
The AQ6370 is Yokogawa’s high speed and high performance Optical Spectrum Analyzer for characterization of optical communications system and optical components. Thirteen built-in optical viewer analysis functions and seven trace calculations for popular applications can be utilized with a simple function key.
Device Specification: here
Manufacturer card: YOKOGAWA
Yokogawa is a leading provider of Industrial Automation and Test and Measurement solutions. Combining superior technology with engineering services, project management, and maintenance, Yokogawa delivers field proven operational efficiency, safety, quality, and reliability.
- Headquarters: Japan
- Yearly Revenue (millions, USD): 318
- Vendor Website: here
Connect to the AQ6370 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Yokogawa AQ6370 Spectrum Analyzer using Instrumentkit, you can use the following Python script:
This script imports the instrumentkit
module and opens a connection to the Yokogawa AQ6370 Spectrum Analyzer using the open_visa
method. You can replace 'TCPIP0:192.168.0.35'
with the appropriate VISA address of your Spectrum Analyzer.
Once connected, you can access the properties and methods of the Spectrum Analyzer. In the example script, it prints the identification (id
) of the device, the start and stop wavelengths (start_wl
and stop_wl
), starts a sweep using start_sweep()
, and retrieves the data and wavelength using data()
and wavelength()
methods.
Finally, the script closes the connection to the Spectrum Analyzer using the close()
method.