LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple writer reader datasocket.Hlp pls urgent !!

Hi
I've made a chat utility that every one uses it to write a cluster (consisting of his name & the message)to the following socket dstp://servername/PUBLIC
The same application reads this socket & shows the incoming public messages.
When I run the application on 2 computers the first person can send his/her message to the public socket & the other computer shows the message.But after that, the other computer can't write to the socket giving the error "Multiple DataSocket writers are not allowed"
this is besides the fact that I've made a new item & checked allow multile writers box & setting all the permissions to everyhost.(LV7.0)

Can multiple users from different workstations read & write from one datasocket?

Thanks for your attention in advance"
0 Kudos
Message 1 of 6
(3,832 Views)
Hello �

Yes, multiple users can read/write from/to the same item. When you check the �Allow Multiple Users� check box, you need to restart the Data Socket Server for this change to take effect.

Take a look at the following links:
Can Multiple DataSocket Writers Connect to the Same Item?
Why Does My DataSocket Connection in LabVIEW Fail with "Error: Can't connect to data item, another w...

Hope this helps!

S Vences
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,834 Views)
You right,
 
But I haven't find if/how can I add for example array to preddefined items in datasocket server manager Smiley Sad

Certified-LabVIEW-Developer_rgb.jpg

0 Kudos
Message 3 of 6
(3,692 Views)
 

Message Edited by JLS on 05-30-2006 02:53 PM

Best,
JLS
Sixclear
0 Kudos
Message 4 of 6
(3,681 Views)
Hello,
 
Yes, you can add new items to the predefined list in the server manager, but you cannot simply read from the new items.  However, it is not necessary to use this list - it is really an example set of data items to get started with.  If you're having trouble writing or reading to data items using datasocket, repost and we'll try to work through those!
 
Best Regards,
 
JLS

Message Edited by JLS on 05-30-2006 02:56 PM

Best,
JLS
Sixclear
0 Kudos
Message 5 of 6
(3,681 Views)

Hi

 

i am getting error when i run publish as LabVIEW:  Multiple writers are not allowed, when i try to write in datasocket server. i am following the program as publish and subscribe http://www.ni.com/white-paper/3224/en/ .  i have checked Predefined Items and allow multiple writer.

 

thanks

NM

0 Kudos
Message 6 of 6
(2,960 Views)