Skip to content

Commit

Permalink
manual: serial number explanations + udev rule for LDA
Browse files Browse the repository at this point in the history
fallen committed Jun 19, 2015
1 parent 988ec5c commit 4cdf1c4
Showing 2 changed files with 27 additions and 1 deletion.
6 changes: 5 additions & 1 deletion artiq/frontend/lda_controller.py
Original file line number Diff line number Diff line change
@@ -15,7 +15,11 @@ def get_argparser():
choices=["LDA-102", "LDA-602"])
simple_network_args(parser, 3253)
parser.add_argument("-d", "--device", default=None,
help="USB serial number of the device."
help="USB serial number of the device. "
"The serial number is written on a sticker under "
"the device, you should write for example "
"-d \"SN:03461\". You must prepend enough 0 for it "
"to be 5 digits."
" Omit for simulation mode.")
verbosity_args(parser)
return parser
22 changes: 22 additions & 0 deletions doc/manual/ndsp_reference.rst
Original file line number Diff line number Diff line change
@@ -34,6 +34,28 @@ Client
Lab Brick Digital Attenuator (LDA)
----------------------------------

On Linux, you need to give your user access to the usb device.

You can do that by creating a file under /etc/udev/rules.d/ named 99-lda.rules
with the following content::

SUBSYSTEM=="usb", ATTR{idVendor}=="041f", MODE="0666"

Then you need to tell udev to reload its rules::

$ sudo invoke-rc.d udev reload

You must also unplug/replug your device if it was already plugged in.

Then, to run the Lab Brick Digital Attenuator (LDA) controller::

$ lda_controller -d SN:xxxxx

The serial number must contain 5 digits, prepend any number of 0 necessary.
Also, the "SN:" prefix is mandatory.

You can chose the exact LDA model with the -P parameter. The default being LDA-102.

Driver
++++++

0 comments on commit 4cdf1c4

Please sign in to comment.