Connecting to MS9740A by Anritsu in Python
Instrument Card
The MS9740A supports nine application measurement modes (DFBLD, FP-LD, LED, PMD, Opt. Amp, Opt. Amp (Multi-channel), WDM, LD Module, WDM Filter) for measurement targets
Device Specification: here
Manufacturer card: ANRITSU
Anritsu Has Testing Solutions for Automotive, Government, Data Center, & IoT Industries. Test Solutions for IoT Devices, Government Radar, Automotive, & Signal Integrity.
- Headquarters: JAPAN
- Yearly Revenue (millions, USD): 670
- Vendor Website: here
Connect to the MS9740A in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
This script defines a class AnritsuMS9740A
that inherits from AnritsuMS9710C
(which is another instrument class provided by Pymeasure). The AnritsuMS9740A
class adds additional control properties and methods specific to the Anritsu MS9740A Optical Spectrum Analyzer.
The control properties defined in the class, such as resolution
, resolution_vbw
, average_sweep
, sampling_points
, and data_memory_select
, allow you to interact with the instrument by reading and writing specific commands.
The repeat_sweep
method performs a single sweep and waits for completion. It sends the command ‘SRT’ to start the sweep and then waits for the sweep to complete using the wait_for_sweep
method.
Note that this script only defines the class and its properties/methods. To use it, you need to create an instance of the AnritsuMS9740A
class and connect it to your instrument using an appropriate adapter.