LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remote desktop connection

I am new to labview,Kindly help me to resolve listed issues below

 

Query 1:

I am running an vc++ application in system1 and Labview in System2.How to establish a communication between two system like a chat application through socket programming.

 

Query 2:

How to run an exe file in Labview?

 

Thanks,

Naveen

0 Kudos
Message 1 of 2
(2,234 Views)

Query 1 -

 

The easiest way that comes to mind is via TCP connection (assuming they are at least on the same local network). 

 

They have a decent white paper on TCP in LabVIEW here: http://www.ni.com/white-paper/2710/en/.

 

You can also find some nice samples of how to do this in LabVIEW via the Example Finder.

 

From a LabVIEW window, go to Help -> Example Finder -> Networking (folder) -> TCP & UDP (folder). Then select TCP Communicator - Active.vi (this sends text via TCP) and TCP Communicator - Passive.vi (this receives text via TCP and displays it).  There are also many more helpful example VIs in this directory.

 

As for the vc++, I am assuming you mean Microsoft's Visual C++?  (Correct me if I'm wrong).  If so, they have complete code for a simple TCP Client and/or Server here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms737889%28v=vs.85%29.aspx

 

Query 2 -

 

You can use the System Exec VI to run an external .exe file:

 

Executes a system command. Use the System Exec VI to execute or launch other Windows–based applications or Linux command-line applications from within VIs. With the System Exec VI, you execute a system-level command line that can include any parameters supported by the application you want to launch.

 

 

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
0 Kudos
Message 2 of 2
(2,224 Views)