You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The protocol isn't HTTP - lyse is listening on a zeromq REP socket. It expects a client REQ socket to connect to it and send a dictionary that has been serialised using python's pickle module, in the format:
{"filepath": <path of a shot file>}
Where the dictionary's value is a filepath to a shot file on disk.
If you want to submit shots to it from another control system, you'll need to have some code store the shot's data into a HDF5 file in the same format the rest of the labscript suite uses to store data - this varies depending on what kind of data, but we can talk more about that if you're not familiar.
So long as your code is in Python and you have the labscript suite installed, the easiest way to send a shot to lyse (provided you've already got a shot file) would be the following Python code using wrapper functions.
The path_to_agnostic is so that you can pass a filepath that is on a shared drive, between computers that might have different drive letters for the shared drive (if you have configured labscript to use a shared drive in this way).
Hi,
In our lab, we use control systems forked from Sandia National Lab https://github.com/QITI/IonControl and ARTIQ.
I am thinking of adding the capability of sending shots to lyse from our control systems.
Can you point me to some documents about the http protocol for communicating lyse?
Thanks!
The text was updated successfully, but these errors were encountered: