<ysionneau>
sb0 : there "data" is both a method and the backing store, OK to rename the latter as "backing_store"? (I'm working on the search field for parameters, I have something working but I had to rename the backing store so that I could call the data() method)
<ysionneau>
there is a linkActivated() signal on QLabel, I guess if we put a link in the text .... but that would be some kind of hack
<ysionneau>
sb0: what happens if you don't specify "-d"?
<sb0>
it runs
<sb0>
it also crashes if i specify a serial number that does not exist
<ysionneau>
I think we already talked about this, you need to specify SN:0368, and you also told me to put it in the doc, which I thought I did ... but did not :o
<ysionneau>
allright, the segfault is due to not having correct rights
<ysionneau>
I have same issue, but with sudo it works
<ysionneau>
with wrong device ID it raises IOError, with correct device ID it works
<sb0>
ysionneau: is there a way the tcube stuff can use SI units instead of "encoder counts", or is that excessively complicated considering the variety of actuators that can be connected to it?
<ysionneau>
I don't remember quite well the documentation, would need to check that
<sb0>
ysionneau: also, when you have multiple tcube devices connected to a USB hub, how do you identify them by serial number?
<ysionneau>
don't you still receive the usb serial number, even connected through a USB hub?
<ysionneau>
it's in the descriptor AFAIK
<sb0>
ysionneau: can you use udev to map that to a consistent entry in /dev instead of a somewhat random ttyUSBX?
<ysionneau>
ah sorry I was still on the lda topic
<ysionneau>
yes udev can do that
<sb0>
ysionneau: for the tcube? can you add the procedure to the documentation?
<ysionneau>
to tie some usb uart device to always the same ttyUSBX
<ysionneau>
I haven't done it yet, but I will have a look and add it to the doc when I have a working udev rule file
* ysionneau
still does not understand why lda controller segfaults when not run in root
<ysionneau>
why doesn't it just print some access denied ...
<ysionneau>
looks like hid_open is causing the segfault
<ysionneau>
and it produces a segfault as well when not run as root
<ysionneau>
ah but they don't do any check on their example
<ysionneau>
ok let me have a closer look
<ysionneau>
maybe the ctypes binding is wrong...
<ysionneau>
a simple C example which does hid_open() as a non-root user does not segfault, it returns NULL as stated in the doc.
<ysionneau>
so the issue must be in the ctypes or the calling (maybe the 3rd argument, which is a wide char string)
<ysionneau>
which seems to be the case (3rd argument issue) since segfault happens at wcscmp () at ../sysdeps/x86_64/wcscmp.S:426
<sb0>
ysionneau: how can I wait until a tcube move_relative call is done moving the motor?
<sb0>
ysionneau: i see that it is implemented as "async" in move_jog. why don't other functions have this option?
<sb0>
ysionneau: also, if possible, do not implement the non-waiting variant. there is the general fire_and_forget option in artiq for dealing with that.
<cr1901_modern>
sb0: Good point. I did in fact post it to the mailing list for others to check. I keep forgetting florent uses Windows as well. Just don't want to bog down the mailing list with trivial changes.
<ysionneau>
sb0: hum, I thought it was blocking until the end of the move, but it's not, I should fix that
<ysionneau>
(move_relative)
<sb0>
all methods. and remove that async parameter from jog.
<ysionneau>
I can wait for the ENDOFMOVEMSG
<ysionneau>
ok
<sb0>
whatever is clean and reliable.
<ysionneau>
ack
rjo has quit [Quit: leaving]
<ysionneau>
in fact I can just wait for the MOT_MOVE_COMPLETED
<sb0>
ysionneau: the correct string for lda is SN:00368
<sb0>
this should be documented.
<sb0>
I suggest adding it to -h as well
<ysionneau>
ok, this time I won't forget to do it.
rjo has joined #m-labs
<GitHub93>
[migen] enjoy-digital pushed 3 new commits to master: http://git.io/vL2Qq
<GitHub93>
migen/master 6370acd William D. Jones: Xilinx Platforms now use cmd.exe on Windows instead of bash to run scripts...
<GitHub93>
migen/master 7d8f4d1 Florent Kermarrec: mibuild/xilinx/ise: fix source and set source to False by default on Windows (tools supposed to be in the PATH)
<sb0>
ysionneau: can you document how to use hwgrep to open a tcube device by serial number? and check that it actually works ...