runmanager.compile_labscript_with_globals_files_async

runmanager.compile_labscript_with_globals_files_async(labscript_file, globals_files, output_path, stream_port, done_callback)[source]
Same as compile_labscript_with_globals_files, except it launches a thread to do

the work and does not return anything. Instead, stderr and stdout will be put to stream_port via zmq push in the multipart message format [‘stdout’,’hello, world

‘]

etc. When compilation is finished, the function done_callback will be called a boolean argument indicating success or failure. If you want to receive the data on a zmq socket, do so using a PULL socket created from a labscript_utils.ls_zprocess.Context, or using a labscript_utils.ls_zprocess.ZMQServer. These subclasses will also be configured with the appropriate security settings and will be able to receive the messages.