Complete Phyton external control

Post and discuss your API application solutions here.
Post Reply
Valerio Rosiello
Posts: 2
Joined: Tue Dec 13, 2022 5:51 pm

Complete Phyton external control

Post by Valerio Rosiello »

Hi,
I have a Zeiss Axio Observer microscope equipped with zen blue 3.3 software.
In order to accomplish cellular automatic control task I need handle all the functionality available in Zen (in particular focus, stage movement, change objective, image acquisition...) from an external Python software.
I know that it is possible to write macros in Phyton from within Zen by using OAD package and Feedback experiment module but I need to handle such features from an external software as I have:
- to control additional hardware (such as Arduino)
- to include a lot of libraries such as Numpy and Scipy and packages related to AI
- to include packages written for normal python for control task purpose (such as PID and non linear control).

Is there any way to accomplish this requirement? If there isn't please tell me the best way to approximate my request.
Thank you in advance,
Valerio
Sofia chloe
Posts: 1
Joined: Thu Dec 21, 2023 11:48 am
Location: USA
Contact:

Re: Complete Phyton external control

Post by Sofia chloe »

I am a complete beginner with python and at the very start of writing my own program. I managed to open VMD with a python script with:The subprocess module of Python's standard library has two functions meant for calling external commands. The purpose of functions in this module is to spawn a new process and connect to IO pipes. As per PEP 324, it is recommended to use the run() function to invoke a new process.External Command is a synchronous activity that executes the command on the operating system. This activity waits for the command to complete before transition to the next activity. Optionally, the command output and errors can be included in this activity's output schema, written to a file, or both.The quit() function can be considered an alternative to the exit() function in Python. It is also an in-built Python function that is used to terminate the Python codes.
Post Reply