Skip to content

Connecting to CC126Mu by Thorlabs in Python

Instrument Card

Kiralux 12.3 MP Monochrome CMOS Camera, Hermetically Sealed Cooled Package, USB 3.0 Interface, 1/4”-20 Taps

CC126Mu

Device Specification: here

Manufacturer card: THORLABS

THORLABS

Thorlabs, Inc. is an American privately held optical equipment company headquartered in Newton, New Jersey. The company was founded in 1989 by Alex Cable, who serves as its current president and CEO. As of 2018, Thorlabs has annual sales of approximately $500 million.

  • Headquarters: USA
  • Yearly Revenue (millions, USD): 550
  • Vendor Website: here

Connect to the CC126Mu in Python

PROTOCOLS > SCPI

To connect to a CC126Mu camera using Instrumental, you can use the following Python script:

from instrumental import instrument, list_instruments
# List all available instruments
cameras = list_instruments()
# Connect to the first camera
camera = instrument(cameras[0])
# Perform operations on the camera
# For example, get the camera name
name = camera.name
print("Camera Name:", name)
# Close the connection to the camera
camera.close()

This script first lists all available instruments using the list_instruments() function from Instrumental. Then, it connects to the first camera in the list using the instrument() function. You can perform various operations on the camera, such as getting the camera name using the name property. Finally, the script closes the connection to the camera using the close() method.