Labrad Registry - syue99/Lab_control GitHub Wiki
Introduction
The LabRAD Registry is a file system with directories that contain key/value pairs.
You can directly interact with the Registry via the LabRAD Registry Editor, or programmatically.
LabRAD Registry Editor
This provides a graphical interface to the LabRAD Registry where you can create key values pairs by clicking buttons and entering values.
Python Interface
Once LabRAD is running you can interface with the Registry in a script.
Connect
To connect to the Registry with Python
from labrad.wrappers import connectAsync
cxn = yield connectAsync()
reg = yield cxn.registry
context = yield cxn.context()
Navigate
To navigate to a directory in the registry
# navigates to Clients\NI_DAQ_6341 Registry directory
# Second Boolean argument creates directories that do not exist
# context is given form the code run above
# The cd method is analogous to the 'nix command, short for "change directory"
yield reg.cd(['Clients','NI_DAQ_6341'], True, context=context)
To return to the highest level directory
yield reg.cd([''], context=context)