09-02-2014 11:48 AM
Hello,
a rather general question but I hope to get some recommendation.
I really searched a lot but somehow lost my orientation.
I am building a labview2013 executable which can be used on a local PC as any normal programm.
But I also want to be able to access the labview executable from a remote PC and set controls and run VIs.
The controlling application on the remote PC will be developed in C# (VS2010 or VS2013)
So I'd like to ask which is the best way to remote control a labview executable over the network with C#?
Kind regards,
Ralf
Solved! Go to Solution.
09-02-2014 12:05 PM
09-02-2014 12:12 PM
I second the use of TCP/IP. You can make up your own command structure that both LabVIEW and C# can handle.
09-02-2014 12:51 PM
If you are bound to using C# on your remote, consider setting up your local LabVIEW app to use LabVIEW Web Services. Then, you will be able to send commands from the remote and receive messages back from the local. This could be done simply in a browser or you could write a C# to communicate using basic HTTP protocol. Tools for doing this are built into both LabVIEW and Visual Studio.
Or, if you can install the LabVIEW Run-Time Engine on the remote, then you can use Remote Front Panels on the local. The VI can be seen and controlled in a web browser.
Both of these methods are built into LabVIEW and C# and are easily accessible. Google "restful web'' plus C# or LabVIEW to see some examples and tutorials.
JohnCS
09-02-2014 01:32 PM
09-02-2014 02:23 PM
Hello Gerd,
did I get it right that you did not mean a built-in web-service or something but instead to program a tcp listener with the tcp lib-vis in the labview application?
Greetings,
Ralf
09-02-2014 02:27 PM
@Pechmann wrote:
Hello Gerd,
did I get it right that you did not mean a built-in web-service or something but instead to program a tcp listener with the tcp lib-vis in the labview application?
Greetings,
Ralf
That's exactly what I recommend
09-03-2014 12:49 AM
09-03-2014 10:41 AM
Thanks for your replies.
I'm going to use the TCP approach in C# and LabView.
Another advantage is that I don't need a labview runtime on the client side.
Regards,
Ralf
09-04-2014 10:12 AM
@Pechmann wrote:
Thanks for your replies.
I'm going to use the TCP approach in C# and LabView.
Another advantage is that I don't need a labview runtime on the client side.
Regards,
Ralf
...and the disadvantage is that if that when that protocol changes you are now modifying two separate applications written in two different languages.
Mike...