4

I am working on software for some scientific instrumentation. An embedded computer running Windows 7 is inside the instrument, which controls various components of the device; cameras, motors, thermometers, etc. I've written a basic interface in WPF/C# and use remote desktop to test the application. (Reason is safety, the instrument will be used in high radiation areas).

What I want: A server runs on the embedded PC. The user accesses a web page at 192.168.x.x (Internet access would be nice, but not necessary) and clicks 'collect data' and the server loads the relevant C# .dll's, acquires data and uploads the data to the user. Speed/scalability is not much of a concern, as data acquisition could take anywhere from minutes to days.

What I'm confused about: How do I go about executing my existing C# code from a web application? i.e., which .NET technology(ies) should I look into using?

asked Apr 25, 2013 at 16:53
2
  • 1
    If you are connecting to it via a browser, yes, its a web application. There's probably a good question here, but you should pick a single, answerable question to focus on. Commented Apr 25, 2013 at 17:07
  • Much more answerable :-) Commented Apr 25, 2013 at 18:32

1 Answer 1

3

How do I go about executing my existing C# code from a web application? i.e., which .NET technology(ies) should I look into using?

If your goal is for your web application (i.e., the application running on the embedded machine) to run your C# code, you would probably want to have an ASP.Net application running on the embedded machine. Assuming you don't want to run IIS on your embedded machine (because it uses too excessive resources), I suggest using Cassini.

If the C# code is client-side, just give the web application some web services (e.g., using REST or SOAP) and call them from your C# application.

answered Apr 25, 2013 at 17:20

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.