0

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.

asked Feb 8, 2021 at 18:11
3
  • 1
    Not sure if this helps, but it might worth to take a look at IronPython Commented Feb 8, 2021 at 18:22
  • You could also look at Python.Included as a potential solution. See github.com/henon/Python.Included Commented Feb 8, 2021 at 23:49
  • You can find few solutions from here: stackoverflow.com/questions/42939357/… Commented Feb 9, 2021 at 4:46

1 Answer 1

0

gRPC might be a good fit for this as it will be pretty performant and fairly lightweight. Alternatives include queues and even unix sockets.

answered Feb 9, 2021 at 1:20
1
  • 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. Commented Feb 11, 2021 at 11:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.