LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can a LabView process communicate with a Visual c++ process

How can a single Labview process communicate with another Visual c++ Process?

Both Application are running separately. The LabView  Application must have the Possibility to send command to the C++ Application and receive Data from this process.

 

Thanks.

0 Kudos
Message 1 of 6
(3,489 Views)
You can ask the same exact question another way: How can I get one Visual C++ process to communicate with another Visual C++ process that's running separately? The same situation, so the same answers would generally apply.

Is this an application that has already been written? Does it have an ActiveX interface? That's probably a good way to go since you can control the application directly from LabVIEW. Another method is to use TCP/IP to talk back and forth. Another method is to use the SendMessage API function. Does it have to be an application? Can it be a DLL? For a DLL you could have a function that's called by LabVIEW that starts the main process and then functions for sending/receiving data. This thread mentions using datasockets. I'm sure somebody else can suggest other methods.
Message 2 of 6
(3,485 Views)

"Marcel1" <x@no.email> wrote in message
news:1145544009067-354474@exchange.ni.com...
> How can a single Labview process communicate with another Visual c++
Process?
>
> Both Application are running separately. The LabView &nbsp;Application
must have the Possibility to send command to the C++ Application and receive
Data from this process.
>
> &nbsp;
>
> Thanks.

I have heard active-x but that's all I know.


Tam


0 Kudos
Message 3 of 6
(3,459 Views)

 

Thank y for your answer.

The c++ application has already been written but don´t have an external interface.

The LabView application can have an activeX  interface other dlls.

Do you have some LabView example code using activeX interface other another Method to communicate with a c++ application?

I have no practical experience with the interprocess communication.

Any example in LabView will help me.

 

Thanks

 

0 Kudos
Message 4 of 6
(3,435 Views)
Which development environment are you using? If you are using MS Visual Studio 2003 .NET or newer, I suggest you use .NET interface. If you are using MS Visual Studio 6.0 I suggest you use ActiveX interface. .NET interfaceing is quite easy, you only need to create your interface library in managed C++ and you can directly call it from Labview. You can even register you .NET events so that they can trigger events in Labview. See managed extension to C++ in google. You can create programs so that you mix both conventional C++ and managed C++. This fourm however is not appropriate place to talk about managed C++ in detail.

Tomi
--
Tomi Maila
0 Kudos
Message 5 of 6
(3,425 Views)

Hello Tomi,

I am using MS Visual Studio 6.0.

Where can I find a functional LabView example using activeX interface to communicate

with a Visual Studio 6.0 application?

Thanks

0 Kudos
Message 6 of 6
(3,414 Views)