hephy-dd / comet

COMET - Control and Measurement Toolkit
GNU General Public License v3.0
2 stars 2 forks source link

Load device/resource settings #34

Closed arnobaer closed 4 years ago

arnobaer commented 4 years ago

An easy approach to load/overwrite settings for registered devices using method load_settings().

...
>>> app.devices.add("smu", K2140(Resource("GBIP::1::INSTR")))
>>> app.devices.get("smu").resource.resource_name
'GBIP::1::INSTR'
...
>>> app.devices.load_settings() # overwrite resource values by settings
>>> app.devices.get("smu").resource.resource_name
'ASRL1::INSTR'