LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the CVI equivalent to LabVIEW's Create TCP Listener and Wait on Listener?

I'm looking for the CVI equivalent to LabVIEW's "Create TCP Listener" and "Wait on Listener" VIs.  I'm trying to replicate a piece of LabVIEW code in a CVI DLL.  I'm using CVI 7.1 and Windows XP Pro SP2.  I have access to CVI 8.x if it helps any.

Thanks,
Chris Davis
0 Kudos
Message 1 of 2
(3,012 Views)
Hi Chris,

I would check out the Building Network Applications with LabWindows/CVI TCP Support Library tutorial as it does a great job of showing the TCP architecture in CVI.  Then take a look at the TCP examples in the <CVI>\samples\tcp directory.

Basically the client will call the ConnectToTCPServer method to establish a connection to the server. When you make that call, you specify a callback function that will be called when certain events occur such as when there is data to be read (TCP_DATAREADY).  When that event occurs, you call the ClientTCPRead function.

The tutorials and examples are really good so take a look at them.

Hope this helps!

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(3,006 Views)