LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Callback Functions

Hi, 

I am trying to implement TCP server and client data transfers, however when the callback function is not being triggered in my code. I am able to run the example CVI program server.cws and the client is able to connect to the server i create with the example application. I copied the same exact code and tried to incorporate it into my code in order to gain functionality, but the client does not connect to the server. I know that the server is created on the proper port because I am not able to create another server on that port. The client is not triggering the callback function or the callback function might not be seeing it happen. I have tried running RunUserInterface() and ProcessSystemEvents(), none of which work. Any ideas?

0 Kudos
Message 1 of 2
(851 Views)

A few questions come to my mind about your post, mainly because you are not clear in your assertions so it's difficult to try guessing what's happening: first you say that the client is not connecting to the server, next that you don't see the TCP callback firing, which should be obvious if no connection is established.

 

So here are the questions:

  • Does ConnectToTCServer terminate correctly or do you receive errors in the function?
  • Do you receive any error in any other TCP-related function?
  • Is the application single- or multi-threaded?
  • If multi-threaded, is the connection to the server done in the same thread as the rest of TCP functions?
  • If multi-threaded, is the TCP thread processing events?


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
(824 Views)