Replies: 1 comment 1 reply
-
Hi, The parameters is not really designed to take more than one argument. There are two options you could let the parameter take an input as a tuple of the 2 values Another alternative would be to use a Group with Grouped parameters like this https://qcodes.github.io/Qcodes/api/parameters/index.html#qcodes.parameters.Group However, it's not clear to me from your parameters why they take two arguments so I don't know which solution makes the most sense. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am currently writing a driver for my Ametek 5210 and I have run into a roadblock. In the manual I am told that the layout for vernier control is G [n1, [n2]] and told that that the command for filter frequency is FF [n1, n2], but when trying to write it in my driver like the two examples below, it doesn't work:
I know it doesn't work because in my example jupyter notebook I tested it with two different scenarios:
amtk_lockin.vernier_gain(1, 10)
yieldsTypeError: ParameterBase._wrap_set.<locals>.set_wrapper() takes 1 positional argument but 2 were given
and
amtk_lockin.vernier_gain(1)
yields:IndexError: ('Replacement index 1 out of range for positional args tuple', 'setting locking_in_vernier_gain to 1')
Has anyone ever encountered this or had a similar issue? Can't seem to find solutions anywhere.
Beta Was this translation helpful? Give feedback.
All reactions