LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

asynchronous tcp socket

in my application i am using tcp socket.my application program needs asynchronous tcp socket but the vi available in labview is synchronous.how can i change this vi to a asynchronous one.
0 Kudos
Message 1 of 4
(3,592 Views)
Hello tanu:

I think we need a bit more information here. What are you precisely trying to communicate over your tcp socket? Is it something that can better be implemented with Datasocket? Can you show us your sample code?

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 2 of 4
(3,592 Views)
tcp vi available in the labview actually wait either the time specified or the no of byte has to received .but i want to make it event driven means when data will come then only it capture the data otherwise it will do other job.i am attaching herewith my code also.
0 Kudos
Message 3 of 4
(3,592 Views)
The TCP "Create Listener" and "Wait on Listener" functions may help you achieve what you want. Depending on your particular applciation though, this may not be necessary.

You could create one loop dedicated to the tcp operations, and another to handle the rest of your application. Have the two loops communicate to each other through a message queue, and you have yourself a reasonably efficient architecture.

Just some ideas - hope they help!

John H.
0 Kudos
Message 4 of 4
(3,592 Views)