LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DS_Open's Callback infininitely called

I actually use the Datasocket DS_Open() function.
In the CallBack feald I put the name of my function CallBack.
However, I work in dstp connection, with a DataSocket Server.
My problem is that the CallBack function is passed is infinitely called telling me that there is a message waiting in the DataSocket (DS_EVENT_UPDATE).
I don't understand why it do that.
Moreover, when the other client send a message, the first one receive it and call the CallBack function recursively with the right message... but never stop !

I hop you would be able to help me.

Sincerely yours.
0 Kudos
Message 1 of 2
(2,453 Views)
Hello

This doesnt sound right. Try running one of the datasocket examples in CVI under samples\datasocket. Check the structure of the examples, and try and make your program similar. Try reading one of the default datatypes configured in the datasocket server manager, and see if that causes the same effect. There are some pre-defined data items like samplenum, samplestring and samplebool that you can try reading from to make sure your connection is ok.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,453 Views)