LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OpenTCPConnection function on cvi

Hi,

 

   i had converted a vi opening a TCP connection on a device, to a dll to use it in cvi

   the device have a static ip adress.

 

   OpenTCPConnection("192.168.127.254",1000, &connectionID);

 

   I'm wondering if the syntax is right?

 

  Regards,

SASA

0 Kudos
Message 1 of 2
(4,326 Views)

I don't understand your question.

Do you want to know if the call is right? It depends on what the VI you're calling is expecting.

Do you want to know if that syntax "looks" good? Difficult to respond. I would have added at least a return value indicating the result of the call (good/error).

 

But why you're going the LabVIEW DLL way? Couldn't you simply use ConnectToTCPServer () function and its companions in CVI TCP library?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(4,314 Views)