LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp/ip asynchronous read/write in labwindows

Hi,

I need a way to asynchronously read/write using TCP/IP.
Is there a way to do it using built-in functionality?
If not, is there a good example code somewhere?

Thank you,

Gene
0 Kudos
Message 1 of 5
(3,581 Views)

Your previous post indicated that you were able to read and write over a TCP link - so I don't fully understand your question. There is sample code at c:\Program Files\National Instruments\CVI70\samples\tcp which I found quite useful.

JR

0 Kudos
Message 2 of 5
(3,576 Views)
Are calls ClientTCPRead and ClientTCPWrite  asynchronous, then?
Is that what you're saying?
It's not what I'm seeing.

Gene
0 Kudos
Message 3 of 5
(3,574 Views)

Depends what you mean by asynchronous. They are asynchronous, in that two high level programs using the mechanism to communicate can do so without reference to any other information or timing references, for instance when requested to do so by a user. No doubt at the lowest levels of CVI and/or Windows there are algorithms which mean that data flows will probably be synchronised to some clock tick or other, but it is irrelevant for all practical purposes. The nature of TCP/IP communication is inherently uncertain, from a network timing aspect.

Are you seeing some kind of timing issues?

JR

0 Kudos
Message 4 of 5
(3,571 Views)
Let's not  re-define asynchronous, please.
I'm calling TCP routines in different thread now, that solves the problem.

Thank you,
Gene

0 Kudos
Message 5 of 5
(3,567 Views)