JaminMartin / spcs_instruments

An experiment manager and instrument control library written in Python and Rust
0 stars 1 forks source link

Better standard output piping between rust and python components #13

Open JaminMartin opened 1 month ago

JaminMartin commented 1 month ago

Currently the Rust CLI only returns the standard output from python once the python script has completed. This should be able to be fixed. This is not a major issue, and is more of an enhancement. This allows for a degree of debugging if completed. However it would be better if the Rust based experiment manager handled this with logging, and also that it handled ALL of the data processing async from the experiment ensuring the measurements are more fault tolerant.

JaminMartin commented 3 weeks ago

Can use a TCP socket to pipe data back to the rust CLI, this will allow all processing and recording to happen in Rust.

JaminMartin commented 6 days ago

As of e1cb269, TCP server & one way day exchange is implemented and has been tested with both fake and real instruments.

Need to implement pause, continue, stop etc interrupts for finer instrument control.