Connecting to Keysight 8657B by HP in Python
Instrument Card
The Agilent Technologies 8657A and 8657B signal generators are designed to test AM, FM, and pulsed receivers as well as components.
Device Specification: here
Manufacturer card: HP
Keysight Technologies, or Keysight, is an American company that manufactures electronics test and measurement equipment and software
- Headquarters: USA
- Yearly Revenue (millions, USD): 5420
- Vendor Website: here
Connect to the Keysight 8657B in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is a Python script that uses Pymeasure to connect to a Keysight 8657B RF Signal Generator:
Explanation of the code:
- Import the necessary modules from Pymeasure.
- Create a
VISAAdapter
object with the appropriate address for the instrument. - Create an
HP8657B
object with the adapter. - Use the
frequency
property to set the output frequency of the instrument. - Use the
level
property to set the output level of the instrument. - Use the
output_enabled
property to enable the output of the instrument. - Use the
shutdown
method to disconnect from the instrument.