I am using Measurement Studio 8.0.1 with C# and visual studio 2005. I have a NI Data Socket application where I would like multiple data publishers to write data to the same URL. I have set up data socket writers in each appliction. I have set the Mode in each to "Write" and I am using the dstp protocol. In each application, when I want to write data to the URL, I call Connect(), set the data value, call Update(), then call Disconnect(). In one application, which is a windows forms appliction, I have no problem doing this. However, the other application is a windows service and is supposed to write to the URL after a timer goes off. When the timer goes off, I get the message from the data socket
'LastMessage = "Error: Can't connect to data item, another write connection exists. '
I am absolutely certain that the Windows forms app called "Disconnect" at least 20 seconds before the timer expires and the windows service tries to write to the data socket.
Am I missing something? Is there some setting somewhere that needs to be set for multiple publisher scenarios to work? Are there code samples for a multiple publisher scenario? What are the recommended guidelines for multiple publisher scenarios?
Thanks in advance!
Best Regards,
Matthew