Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

85 Commits

Repository files navigation

Flann Programmable Device's Python Libary

drawing

Description

Python libary to connect to Flann's programmable instruments and standardise the command structure.

Home Page

Instruments

Software to control Flann's programmable instruments. These currently include:

  • Attenuators

    • 024 variable attenuator
    • 624 programmable RVA (Rotary Vane Attenuators)
    • 625 programmable RVA (Rotary Vane Attenuators)
  • Switch

    • 337 dual-switch controller
    • 338 POE switch

Examples

fromflann.vi.switchimportSwitch337switch_box1=Switch337(switch=1, address='COM5', timedelay=0.3, timeout=0, baudrate=31250)
switch_box1.toggle_all() # Toggle all switches connected to the switch-boxswitch_box1.switch=2# Selecting switch 2switch_box1.position1() # Switching switch 2 to position 1
fromflann.vi.attenuatorimportAttenuator024atten=Attenuator024(address='COM3', timedelay=0.1, timeout=0.44, baudrate=31250)
print(atten.id()) # Prints the identification of the attenuatoratten.attenuation=20.5# Sets the attenuation to 20.5 dBprint(atten.attenuation()) # get the current attenuation value
fromflann.vi.attenuatorimportAttenuator625atten=Attenuator625(address='10.1.4.4', timedelay=0.1, tcp_port=10001)
print(atten.id()) # Prints the identification of the attenuatoratten.position=500# Sets the position to 500 stepsprint(atten.position()) # get the current position steps value

About

Python library to control Flann's programmable instruments

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages