Skip to content

Connecting to LDA-102 by Vaunix in Python

Instrument Card

The LDA-102 Lab Brick USB programmable 50 Ohm digital attenuator has an input power of up to +22 dBm, and offers frequency coverage of 10 to 1,000 MHz. It has an attenuation range of 63 dB and a step size of 0.5 dB. The unit is powered and controlled by USB connection to a PC or self-powered hub, and is programmable for fixed attenuation or swept attenuation ramps directly from the included graphical user interface (GUI) software.

Device Specification: here

Manufacturer card: VAUNIX

Vaunix Technology Corp. designs, manufactures, and services RF and microwave test equipment and digital radio communications products. Utilizing ourĀ deepĀ RF and software engineering expertise, rooted in microwave radio and wireless equipment repair and testing, Vaunix developed the Lab Brick® family of electronic test products, which set a new standard for cost, size, and simplicity of wireless testing devices. Powered by a USB connection and controlled by easy-to-use, graphical-user-interface (GUI) software, Lab Bricks have been designed to meet the needs of wireless engineers and technicians who want to create flexible, customized system solutions either in the lab or in the field. We ā€˜ve expanded our Lab Brick® family of electronic test products to include Attenuator Matrix solutions that double as WirelessĀ Handover Test SystemsĀ to give our test technicians and product engineersĀ the advanced capability to solve unique wirelessĀ _handoverĀ _testingĀ challenges and bring affordability, functionality, reliability and simplicity to the microwave test bench.

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

Connect to the LDA-102 in Python

PROTOCOLS > SCPI

Here is an example Python script that uses Qcodes Community to connect to a LDA-102 Digital Attenuator:

from qcodes import Station
from qcodes.instrument_drivers.vaunix.LDA import LDA
# Create a station to hold the instruments
station = Station()
# Connect to the LDA-102 Digital Attenuator
lda = LDA('lda', serial_number=55102, dll_path='path/to/dll')
# Add the LDA to the station
station.add_component(lda)
# Print the IDN of the LDA
print(lda.get_idn())
# Set the attenuation to 10 dB
lda.attenuation(10)
# Close the connection to the LDA
lda.close()

Note: Replace 'path/to/dll' with the actual path to the directory that contains the Vaunix LDA DLL (VNX_atten.dll for 32-bit Windows or VNX_atten64.dll for 64-bit Windows). This script creates a Station object to hold the instruments. It then connects to the LDA-102 Digital Attenuator using the LDA driver from the Qcodes Community. The LDA is added to the station, and its IDN information is printed. The attenuation is set to 10 dB, and finally, the connection to the LDA is closed.