06-10-2010 11:47 AM
Solved! Go to Solution.
06-11-2010 01:57 AM
06-11-2010 08:35 AM - edited 06-11-2010 08:40 AM
06-11-2010 09:05 AM
See the image below for the Datasocket loop.
06-11-2010 09:32 AM
ejensen wrote:See the image below for the Datasocket loop.
Two idea that may help but I can't guarentee.
1) Do the open once and close once after and just repeat the DS writes.
2) Under Start >>> Setting >>> Control Panel >>> System got to the Advanced Tab and choose Performance Settings then click the Advanced tab there. In the Process scheduling click the "Background services" button.
Ben
06-11-2010 09:52 AM
Thanks for the suggestions. I tried setting to background services, but it didn't help. I also switched the computer to best performance so minimize and restore are no longer animated. Watching CPU and RAM, it don't know that this is a resource issue. After a bit more experimenting, it only seems to throw errors when I click the minimize button. When I right click in the taskbar and click minimize, I have never seen the error. When I click the minimize button, it happens almost every time.
Your suggestion to open/close once and write multiple times sounded good until I went to implement it. For OPC, I have to open a connection to the specific tag that I want to write to. There may be a way to open a connection to the server then specify the tags one at a time, but I'm not aware of it.
06-11-2010 10:06 AM
ejensen wrote:Thanks for the suggestions. I tried setting to background services, but it didn't help. I also switched the computer to best performance so minimize and restore are no longer animated. Watching CPU and RAM, it don't know that this is a resource issue. After a bit more experimenting, it only seems to throw errors when I click the minimize button. When I right click in the taskbar and click minimize, I have never seen the error. When I click the minimize button, it happens almost every time.
Your suggestion to open/close once and write multiple times sounded good until I went to implement it. For OPC, I have to open a connection to the specific tag that I want to write to. There may be a way to open a connection to the server then specify the tags one at a time, but I'm not aware of it.
My bad!
I missed the fact you were looping through multiples.
So change my suggestion too
Move the Open into a For loop taht executes only once and use an output tunnel on that For loop to create an array of references. One reference for each DS connection. Use that Array of conncetion refs INSTEAD of the name array to control you mainf For Loop. Similary to close them.
Now please excuse the following
One Loop to open them all.
One Loop to read them.
One Loop to close them all,
The Data sockets bind us.
Groans welcome.
Ben
06-14-2010 09:06 AM
06-14-2010 09:13 AM
Thanks for the update. looking back I have to guess that it was the Opening that was impacted by the screen minimizing, so by doing the open once and re-suing the same references, we were not invoking the Open functions and therfore no delays.
Makes sense to me!
Thanks,
Ben