Skip to content

Connecting to LDA-602N by Vaunix in Python

Instrument Card

The LDA-602N Lab Brick USB programmable 50 Ohm digital attenuator has an input power of up to +22 dBm, and offers frequency coverage of 6 to 6,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.

LDA-602N

Device Specification: here

Manufacturer card: VAUNIX

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-602N in Python

PROTOCOLS > SCPI

To connect to a LDA-602N Digital Attenuator using Qcodes Community, you can use the following Python script:

from qcodes import Station
from qcodes_contrib_drivers.drivers.Vaunix_LDA import LDA
# Create a station to hold the instruments
station = Station()
# Connect to the LDA-602N Digital Attenuator
lda = LDA('lda', serial_number=602, 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_atten64.dll for 64-bit Windows or VNX_atten.dll for 32-bit Windows).

This script creates a Station object to hold the instruments. It then connects to the LDA-602N Digital Attenuator using the LDA driver from Qcodes Community. The serial_number argument is set to 602 to match the specific instrument. The dll_path argument is set to the path of the directory containing the Vaunix LDA DLL.

The LDA instrument is added to the station using the add_component method. The instrument’s IDN information is printed using the get_idn method.

The attenuation is set to 10 dB using the attenuation parameter of the LDA instrument.

Finally, the connection to the instrument is closed using the close method.

Please make sure to install the necessary dependencies and modify the script according to your specific setup before running it.