Skip to content

Connecting to 1830-C by Newport in Python

Instrument Card

The Model 1830C Power Meter is a high-resolution autoranging picoammeter compatible with all of Newport’s 818 Series low-power silicon, germanium and indium gallium arsenide detectors

1830-C

Device Specification: here

Manufacturer card: NEWPORT

NEWPORT

Newport provides a wide range of photonics technology and products designed to enhance the capabilities and productivity of our customers’ applications.

  • Headquarters: Irvine, California, United States
  • Yearly Revenue (millions, USD): 3500
  • Vendor Website: here

Connect to the 1830-C in Python

PROTOCOLS > SCPI

Here is a Python script that uses Instrumental to connect to a Newport 1830-C Power Meter:

from instrumental import instrument
# Connect to the power meter on port COM1
newport_power_meter = instrument(visa_address='COM1',
classname='Newport_1830_C',
module='powermeters.newport')
# Get the current power measurement
power = newport_power_meter.power
print(power)

This script imports the instrument function from the instrumental module. It then uses the instrument function to connect to the Newport 1830-C Power Meter on port COM1. The instrument function takes the VISA address, classname, and module as arguments.

After connecting to the power meter, the script retrieves the current power measurement using the power property of the newport_power_meter object. Finally, it prints the power measurement.