LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an intermittent TCP Connection

Hey all,

 

I currently have VI's that are able to send a IMAQ image grab between each other via a TCP connection. I've been trying to set them up so that the sender VI runs and displays the video feed constantly and the reciever VI can be opened and closed, but still display the video when opened. Currently the sender only displays the video while it is sending and if the receiver is closed there is a error message for a buffer overflow.

 

Basically what I'm wanting to do is to have one VI running on one machine that shows the video constantly and the ability to open a VI from a seperate computer when needed. My problem is I'm not really sure how to. I've been going through the TCP examples, but I'm still a little lost and I need to get this up and running immediately so any help or advice would be greatly appreciated.

 

Thanks,

dnorman

Download All
0 Kudos
Message 1 of 3
(2,582 Views)

Error 62 can happen if either side's communication is ended in TCP communication. Take a look at this forum, I think it will help.

Blake C.
Applications Engineer
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 3
(2,551 Views)

Keep the TCP/IP connection open all the time.  Use the Receiver to Place the data into a notifier.  Have your display vi monitor the notifier.  Buffers stay happy.  Data gets tossed when stale if nobody cares to look at it.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,544 Views)