Link to home
Start Free TrialLog in
Avatar of zliminator
zliminatorFlag for United States of America

asked on

I need a scripting engine for a SCADA application

I'm designing a SCADA application I will be using for home automation. It works over a LAN. The client will run on either a Windows or Linux box which has the DACs attached to it. Or it can run standalone using localhost. So I want the server app to be able to create one script that just checks the time of day against a list of time/actions and execute those actions if it time to (turn on hot tub 1 hour before I get home). Then one or more scripts that check for limits or alerts (turn off hot tub heater if temp > 100F). I want the main time of day polling scripts to run in parallel with the limits/alert scripts. I'm writing the app in C#. I want the user to be able to edit and execute the scripts without having to go to a DOS box and do a compile and run the script. I don't want to write my own scripting engine, yet I don't need all the OOP features that come with IronPython, CS-Script or Boo.
Avatar of zliminator
zliminator
Flag of United States of America image

ASKER

I just installed IronPython for .NET 4.0 and compiled a sample program which calls a script:
pythonEngine.ExecuteFile("custom.py",...)

Open in new window


which works great, but what I need, I guess is for that script to run in a thread and send/receive messages to/from the client. But that code is running as 2 threads in my C# app.
ASKER CERTIFIED SOLUTION
Avatar of zliminator
zliminator
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial