LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview and Visual C++ 6.0

Howdy,

I need to send data from a Visual C++ application to Labview over a
tcp/ip network. How do I do it? Are there any examples to study out
there?

Thanks,

M Soderberg


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 4
(3,876 Views)
seplusplus@hotmail.com wrote in message <7n9bhq$id0$1@nnrp1.deja.com>...
>Howdy,
>
>I need to send data from a Visual C++ application to Labview over a
>tcp/ip network. How do I do it? Are there any examples to study out
>there?
>
>Thanks,
>
>M Soderberg
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.


Buried deep in the examples on the MSDN Library disk 1 that comes with VC++
6.0 is code for simple TCP and UDP server/client apps. Not a straight
example of comms between VC++ and LabVIEW but it will give you the basis for
such. At least I hope so :-}

If you're interested run MSDN and under the contents window go down this
tree

MSDN Library Visual Studio 6.0
-Visual C++ Documentation
-Samples
-SDK Samp
les
-Internet Samples
-NetDS Samples
-Winsock: Windows Sockets Samples
-Simple



Cheers,
Ed Hutchinson
GNS Ltd, New Zealand.
0 Kudos
Message 2 of 4
(3,876 Views)
One word: DataSocket

Go to http://www.natinst.com/datasocket/ for more info. It's easy and painless.

Regards,
Carl Nybro
NI

Ed Hutchinson wrote:

> seplusplus@hotmail.com wrote in message <7n9bhq$id0$1@nnrp1.deja.com>...
> >Howdy,
> >
> >I need to send data from a Visual C++ application to Labview over a
> >tcp/ip network. How do I do it? Are there any examples to study out
> >there?
> >
> >Thanks,
> >
> >M Soderberg
> >
> >
> >Sent via Deja.com http://www.deja.com/
> >Share what you know. Learn what you don't.
>
> Buried deep in the examples on the MSDN Library disk 1 that comes with VC++
> 6.0 is code for simple TCP and UDP server/client apps. Not a straight
> example of comms between VC++ and LabVIEW but it will give you the basis for
> such. At least I
hope so :-}
>
> If you're interested run MSDN and under the contents window go down this
> tree
>
> MSDN Library Visual Studio 6.0
> -Visual C++ Documentation
> -Samples
> -SDK Samples
> -Internet Samples
> -NetDS Samples
> -Winsock: Windows Sockets Samples
> -Simple
>
> Cheers,
> Ed Hutchinson
> GNS Ltd, New Zealand.
0 Kudos
Message 3 of 4
(3,875 Views)

Hi,

For those who are looking for a good example on VC++ for TCP:

Mfcsocs.exe sample demonstrates how to communicate in a TCP connection in Visual C++

http://support.microsoft.com/kb/185728/en-us

regards

Dalia

Dalia Russek
Senior Technical Support Engineer
National Instruments ISRAEL Ltd
0 Kudos
Message 4 of 4
(3,592 Views)