10-12-2005 09:49 AM
10-13-2005 04:37 PM
10-13-2005 05:51 PM
I guess what I am saying is that the speed is about the same either place; it is just sometimes at the customer site the program will just come to a halt or lose connection or refuse to connect for no particular reason.
We're connecting to about 20-30 tags (about 1/3 write-only and 2/3 read only). The program used to crash all the time because for some reason the datasocket routines could not find the OPC server on the network. The customer has proof that his server was not down during these periods of time. I fixed up the issue by pinging the server before I would perform any datasocket writes, and that stopped the program from crashing. However, I still have problems connecting to the servers sometimes.
The main problem with front panel datasocket is that if it has any problems, it is going to take down my entire program, and unfortunately my program is a mission critical one for the customer. I know that 90% of the time everything works alright, but every once and a while everything aligns correctly to cause my software problems, which causes the customer to call me and complain.
The latest behavior I have seen is that for seemingly no reason, my program slows down to a crawl as if there were a while loop active with no timer in it (i.e. 100% cpu usage). If the OPC connection is restarted (something I have a function for in my software) everything goes back to normal. The problem is that the front panel is so unresponsive when the CPU is loaded down like that the techs that work on my system claim it is "locked up" and just reboot it.
10-13-2005 10:20 PM
10-14-2005 06:40 AM
10-14-2005 05:56 PM
10-17-2005 07:14 AM
10-17-2005 05:29 PM
10-18-2005 06:05 AM
Unfortunately, even if I do that; the customer is still going to insist that there are no connectivity problems as he has used his third party product (Linkmaster from Kepware) on that same PC and has seen no issues. I'm also fairly convinced that if I was using the DSC (which is very much expensive overkill) I wouldn't be having any problems either.
I guess I'm just disappointed in the instability that I've seen out of these Datasocket VIs, as they don't really seem up to snuff with everything else I've seen in LabVIEW in terms of reliability. Even if I prove that there are connectivity type issues, the customer will insist that his other stuff works with the OPC server, so why doesn't mine.
The only thing I can think of to do at this point is to enter the servers into the windows hosts file to try to remove some of the network overhead. Do you think that may help things?
10-18-2005 05:01 PM