It would be helpful if you could give the URL to the tutorial.  I have
not been successful in finding "TCP ip intro".

Datasocket works like a bulletin board you would see if you were
driving down the road.  If something writes to the bulletin board (an
advertiser), then your datasocket reader(you sitting in a car) can see
the data.  If your datasocket reader is doing something else like
watching other traffic and several writes have taken place, only the
most recent data is seen by the reader.  This is because datasocket
was lossy before buffered datasocket in LabVIEW 7.0 was introduced.

Before you can do any communication with datasocket, you have to start
the datasocket server.  If you think about it, how would datasocket
read receive data if no bulletin board exists.  (if you missed it, the
bulletin board is the datasocket server).

There are two ways to create items (specifically called datasocket
data items) on the datasocket server.  Think of the the items as
specific ads on a multiad bulletin board. You can create static items.
This is rarely done and requires the use of Datasocket Server Manager.
The other method is to dynamically create datasocket data items.  I
suspect this is what you are doing.  When you first starting writing
to the datasocket server the datasocket data item is created.  At this
point the reader will have something to read.  The datasocket data
item remains valid while all readers and writers to the datasocket
server are active.  When nothing is reading or writing (it could be
just writing), the datasocket data item is removed.  You can see this
in action by going to the diagnostic page on the datasocket server.

I suspect the behavior you are seeing in 1 is related to the behavior
described in the above paragraph.  I cannot say for sure because I do
not have your code.  I recommend using a shipping example for
datasocket.  They are found by going to the help menu of LabVIEW.
These examples work.

Reply via email to