07-25-2005 08:13 PM
07-27-2005 02:37 AM
07-27-2005 10:43 AM
First, I should add that the machines are all running Labview 6.1 on XP platforms. The machine that is causing the trouble is running XP SP2, while SP1 runs on the others. The firewall is off, since this is all on a closed network.
Only one machine ever reads the Datasocket servers of the other three, and so there cannot be a conflict of multiple readers. And each of these three machines only writes to its own server, never to the other two. However, I did observe that there are no faults of this type when only one of the three servers is in use. Starting up the second can make this error 1101 happen a bit, and then the third introduces a strong chance of seeing it. It does appear that there is some sort of conflict, but I don't understand the cause.
I also don't understand why I don't see the same problem when I run the older code on the same machines. This writes up to 4 images at once, rather than in 4 operations with the newer code. The reader wants only one of the 4, and so by splitting up this data, I thought I would reduce the busy time of the server, lessening the chance of a conflict.
Also, the Datasocket Read routine has a timeout setting, suggesting that it can wait for access, and so avoid such conflicts. I set this delay to 5 seconds, but the error can occur much faster.
07-28-2005 09:05 PM
07-29-2005 12:09 AM
08-01-2005 01:57 AM
09-09-2009 03:44 PM
Hi Alan,
Is your problem resolved? The post is quite old now, but just came across it while finding solution to similar datasocket issue.
From the nature of your problem it appears that not only "DefaultReaders" should be "everyhost" but also "Creators" should be "everyhost" too, since you have multiple applications pointing to the same datasocket node, you don't know which one is approaching first, and perhaps that's the reason sometimes you get error and sometimes not.
I hope this helps (if not solved already).
09-10-2009 06:18 AM
Just curious to know "what made you dig this out" after 4 years?
09-10-2009 07:50 AM - edited 09-10-2009 07:51 AM
Hmm...
the thing is last year I had made a video broadcasting system using LabVIEW and I had used several "standby" datasocket servers (in case one fails) since it was an international conference that I was a co-organiser for (things must not fail while the whole world is watching, u know).
So that thing required me to have "Windows firewalls turned off" and also the Creators "everyhost" (since in runtime, the video source application can set it's datasocket server for "writing") and all the receiving clients would change a "channel" 😉 in their front panel to match with the change that was made on video source.
OK, all this story told me one thing that windows firewall must be turned off in order to allow other machines access datasocket server (this is an issue, though, I cannot just let it open like that)
Well, after one year, now while making another application with all those "stand by" DS Servers, I remembered to turn off the firewall, and somehow the program still didn't work, and showed error "1101" and I remembered those lessons, and I checked the firewall. And it was as it should be. then I just checked the permissions, and in that in the Creators, was "localhost" (I have "everyhost" for all the permissions on the main DS Server computer, but not on the standbys) and I changed it to "everyhost" (because there are several applications that access these datasocket connections, and the one that runs first, is the "creator" and it needs permission to create that node).
In this thread, Alan writes to have set "DefaultWriters/Reader" as "everyhost," but doesn't say about Creators, and as he said he got problems sometimes (less than half the times) I strongly believed that he might have that "Creators" role left as given only to "localhost". So thought to put the comment. Since he didn't write here if he solved the problem or not, I thought to write down if someone comes in future, like me.
Because these "small" issues eat up crucial time while in the middle of a development process, and usually such checks come during the time when we're actually starting to Test the system (or atleast parts of the system).
09-10-2009 07:56 AM
Absolutely I agree and thanks for completing the thread!!!