autolab-project / autolab Goto Github PK
View Code? Open in Web Editor NEWPython package for laboratory instruments control and scientific experiments automation
Home Page: https://autolab.readthedocs.io/
License: GNU General Public License v3.0
Python package for laboratory instruments control and scientific experiments automation
Home Page: https://autolab.readthedocs.io/
License: GNU General Public License v3.0
Hey guys,
Do you have an example of a driver that uses a serial port? and the way to properly write the Local Configuration file for it?
Thanks,
R
After discussing w/ @bgarbin I will open a few issues and feature requests, and start to work on PRs.
Starting with this one, even though I see this appears somehow in the todolist ("autolab.close_all_devices()") :
When using the GUI and closing, the close() function of each driver should be called before the GUI actually closes, ensuring that all devices are returned to a safe state and all connection ports are available again.
EDIT:
This issue is already solved by PR #3 (specifically commit 06237e4 )
If this PR contains too many changes at once, consider doing a separate one for this issue.
When saving a local configuration using the autolab.set_local_config() function, the arguments are written to the local_config.ini file in lowercase regardless of the one in the Driver_ class.
Same, if the local_config.ini file is set up by hand with the proper case, loading through the GUI passes these parameters in lowercase (and thus the init call fails).
So far the only workaround is to leave all arguments in the Driver_ class in lowercase.
[Ideas to discuss / to approve]
[To do in ~order]
[OLD, to clean]
Hi, Thank you for this excellent package. I have written a Driver class for my own Driver, as instructed on your Documentation. But, I do not understand how to load my custom Driver. Is it possible to include a short example in the official documentation? Thank you
I would like to have the option to read some of the variables created in the get_driver_model upon initialization.
Some variables might be unsafe to read, so this cannot be a default solution, but some might be important: as an example, I have a laser that gets 'armed' upon initialization, but the checkbox in the GUI is created with a default 'False' state. I thus need a first 'read' to set it in the correct state, otherwise I end up in a situation where the display is the inverse of the actual state.
Two possibilitie:
When instantiating an instrument, the main GUI is not responsive.
This can be annoying for some instruments that are long to instantiate (e.g. a laser that needs arming etc.).
Would it be possible to run the instantiation in a dedicated thread (maybe showing on the main GUI that something is happening using a color code/flashing/whatever) and update the GUI (with the QTreeWidgetItems) only after the init has finished ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.