Connecting to Advantest R3767CG by Advantest in Python
Instrument Card
The Advantest R3765CG/R3767CG network analyzers are vector network analyzers that incorporate a new RF circuit analysis technique.
Device Specification: here
Manufacturer card: ADVANTEST
Advantest manufactures and sells semiconductor and component test system products and mechatronics-related products.
- Headquarters: Japan
- Yearly Revenue (millions, USD): 2940
- Vendor Website: here
Connect to the Advantest R3767CG in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
This code defines a class AdvantestR3767CG
that represents the Advantest R3767CG VNA (Vector Network Analyzer). It inherits from the Instrument
class provided by the pymeasure.instruments
module.
The class has several attributes and methods:
-
id
: This is a measurement attribute that reads the instrument identification using the SCPI command*IDN?
. -
center_frequency
: This is a control attribute that allows you to get or set the center frequency of the VNA using the SCPI commands:FREQ:CENT?
and:FREQ:CENT %d
respectively. It has a validatorstrict_range
that ensures the frequency is within the range of 300,000 Hz to 8,000,000,000 Hz. -
span_frequency
: This is a control attribute that allows you to get or set the span frequency of the VNA using the SCPI commands:FREQ:SPAN?
and:FREQ:SPAN %d
respectively. It has a validatorstrict_range
that ensures the frequency is within the range of 1 Hz to 8,000,000,000 Hz. -
start_frequency
: This is a control attribute that allows you to get or set the starting frequency of the VNA using the SCPI commands:FREQ:STAR?
and:FREQ:STAR %d
respectively. It has a validatorstrict_range
that ensures the frequency is within the range of 1 Hz to 8,000,000,000 Hz. -
stop_frequency
: This is a control attribute that allows you to get or set the stopping frequency of the VNA using the SCPI commands:FREQ:STOP?
and:FREQ:STOP %d
respectively. It has a validatorstrict_range
that ensures the frequency is within the range of 1 Hz to 8,000,000,000 Hz. -
trace_1
: This is a measurement attribute that reads the data array from trace 1 after formatting using the SCPI commandTRAC:DATA? FDAT1
. -
__init__
: This is the constructor method of the class. It initializes theAdvantestR3767CG
object by calling the constructor of theInstrument
class and passing the adapter and name. It also sends the SCPI commandOLDC OFF
to the VNA to operate in IEEE488.2-1987 command mode.