10-25-2006 08:49 AM
Hi all
I am writing application in CVI .
The application communicates with devices (the number is not constant) via TCP protocol.
Each device has unique IP address and the same port number.
The CVI application will send request string to each device (one time at the connection), and get continuously fixed size status strings from the devices.
My question is what is the best configuration of my PC:
As client? or as server?
What kind of callback functions shell I use?
Thank you
10-26-2006 12:06 PM
Have you looked at the examples for TCP Communication in this folder: C:\Program Files\National Instruments\<cvi>\samples\tcp?
How are you communicating with the hardware?
Regards,
10-29-2006 01:28 AM
Hi
I looked at the examples and also build an application that use client's functions from TCP library.
I have troubles when I connect >4 devices because I didn’t get event of TCP_DATAREADY from all devices.
Yes ,I am communicating with hardware: Each device has Lantronix (http://www.lantronix.com/) XPORT01 (LAN to To RS232 TTL adaptor) that connected to MSP430 (TI) micro controller
10-30-2006 08:06 AM
10-31-2006 01:27 AM
Each device has Lantronix adaptor. if I am connecting more then 4 devices to the net (even internal without internet), sometimes I do not get event of DATA_READY from some device. Each device send cyclic status massage of 63 bytes.
It seems that data from other devices come more times then other devices (all devices send data at the same period of time, and if I open telnet session for each device I get the data well).
My application using TCP callback.
11-01-2006 08:41 AM