Skip to content

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.

AQ6370

Device Specification: here

Manufacturer card: YOKOGAWA

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

PROTOCOLS > SCPI

To connect to a Yokogawa AQ6370 Spectrum Analyzer using Instrumentkit, you can use the following Python script:

import instrumentkit as ik
# Connect to the Yokogawa AQ6370 Spectrum Analyzer
osa = ik.yokogawa.Yokogawa6370.open_visa('TCPIP0:192.168.0.35')
# Access the properties and methods of the Spectrum Analyzer
print(osa.id)
print(osa.start_wl)
print(osa.stop_wl)
osa.start_sweep()
data = osa.data()
wavelength = osa.wavelength()
# Close the connection to the Spectrum Analyzer
osa.close()

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.