I have an old windows forms gui used to control a custom measurement system. Originally, it handled acquisition, calculating, database handling and presentation of measurements.
Now, because of some hardware changes, the system got its own arm based microcontroller running a linux os.
So I re-implemented most control features in python, including handling of our database and raw data. (Originally, everything was stored locally now it’s on a little server)
Now I still want to use our old gui to handle presentation so I thought of using some of my python implemented functions inside the gui application (C#). What would be the best/recommended way to do this?
Ideally, I want to use the gui for nothing more than displaying data and use the python routines to access the data itself on the server.
-
1Not sure if this helps, but it might worth to take a look at IronPythonEmerson Cardoso– Emerson Cardoso2021年02月08日 18:22:03 +00:00Commented Feb 8, 2021 at 18:22
-
You could also look at Python.Included as a potential solution. See github.com/henon/Python.Includedbisen2– bisen22021年02月08日 23:49:43 +00:00Commented Feb 8, 2021 at 23:49
-
You can find few solutions from here: stackoverflow.com/questions/42939357/…Ishan Shah– Ishan Shah2021年02月09日 04:46:54 +00:00Commented Feb 9, 2021 at 4:46
1 Answer 1
gRPC might be a good fit for this as it will be pretty performant and fairly lightweight. Alternatives include queues and even unix sockets.
-
Thanks I might go with gRPC, as we plan to move our db to one of our servers this could be a nice solution. So I can have a gui to present results and configure a series of measurements. A measurement system to perfor automatic measurements. And a db which can be used without the measurement system to be active. I'm not a software engineer so I nearly ended up doing everything with custom "raw" udp packages.Darki– Darki2021年02月11日 11:10:58 +00:00Commented Feb 11, 2021 at 11:10