analogdevicesinc / libsmu

Software abstractions for the analog signal exploration tools.
http://analogdevicesinc.github.io/libsmu/
BSD 3-Clause "New" or "Revised" License
31 stars 31 forks source link

Hot Plug question #120

Closed damercer closed 5 years ago

damercer commented 6 years ago

I've been trying to figure out how the hotplug attach and detach functions are supposed to work in Python.

I've modified the example hotplug.py file to add steps like I'm using in my main program. It seems that hotplug does not work if session is started (running). In the attached file it seems to work if you comment out the session.start(0) in line 47 but with that line included the program terminates after a few seconds after the board is unplugged.

hotplug.zip

Thanks for any guidance on this.

Doug

cristi-iacob commented 5 years ago

We have modified the hotplug mechanism. It will be available in the next libsmu version (which will be available as soon as possible). Also, we have modified the hotplug examples. Thanks!