04-06-2009 10:55 AM
Hello
I am using the Labview 8.6 OPC Client to read shared variables from a Siemens Simatic Net OPC Server on an ordinary desktop. This worked correctly until Sunday of last week (clocks changed).
I have gone back to the start. The OPC Server is running and I can see variables changing as expected in Siemens OPC Scout. I have checked with them that this means the Server is running properly.
I have created a library and inside placed a new I/O server. Here I selected OPC Clients and found the Simatic OPC Server. I deployed this as normal. I then created another library to store all my shared variables in. However, when I go to create a bound variable none of the connections are shown.
The NI OPC Client Status variables show
Active? True
Connected? False
Enable Logging Diagnostic Information Ture
Lastest Diagnostic CoCreatInstanceEx: CLSID=B6EACB30
I have attached the log files showing the connection error.
I've tried removing the opc server library and starting from scratch. Ive tried stopping and starting the OPC server and client. I have another OPC server running on the maching which can be connected fine.
A server failure is shown in variable manager.
Any thoughts, ideas, suggestions would be most welcome
Alan
04-07-2009 05:28 AM
04-07-2009 11:04 AM
Update
Have installed NI Server Explorer. Have connected to the OPC Server and all of the values are changing as would be expected. So something to do with the way I am creating bound variables and binding them to the variables in the OPC Server. Anyone know of any good examples?
Alan
04-07-2009 12:18 PM
Hi Alan,
Thanks for your post and I hope your well today.
Firstly, are you using LabVIEW 8.6.1? IF so, there is a fix for bound variables which without it causes them not to work!
If so please see the download page for more,
http://joule.ni.com/nidu/cds/view/p/lang/en/id/1255
Are you binding the variables manually?
If so what options are you selecting?
Here is a knowledgebase article which mentions binding,
When I Deploy My Application Why Do My Shared Variables No Longer Work?
http://digital.ni.com/public.nsf/allkb/AED9E710A06A6C56862574EF0053DFA1?OpenDocument
Can you see them in the distrubted system manager (LabVIEW>>Tools>>DSM). This tool allows you to see all variables - and there current values. I would make sure the variable lb is deployed.
Please let me know how your getting on, and hopefully I can work with you to resolve your issue.
04-08-2009 07:57 AM
Hi Hillman thanks for your help
I made a mistake its actually LV 8.5.1 on this machine, still no joy. I have 6.1 installed but just never got round to opening my code in it.
I am binding the variables manually.
Firstly I create a library and place the OPC client in it. I do this by
a) Right click on the library, insert new i/o server
b) Select OPC Clients
c) Browse = Machine, Machine = localhost, OPC.SimaticNET, Update Rate = 100ms
Then I create a library for the shared variables
a) Right click on the library, create shared variables
b) Change project items to network items
c) Select the machine Im working on
d) Select the OPC Server
e) Then here the variables usually appear in the folder
Instead the folder contains only the NI OPC Client Status. As before when I view the connected? variable it says FALSE and the error message given by the OPC Client Log file is "The Server Process could not be started because the configured identity is incorrect. Check the username and password." Siemens have assured me there is no username/password authorisation process.
I can see the variables changing in NI Server Explorer but there is Server Failure in Variable Manager.
I opened Tools>DSCModule>MonitorVariables and the values change here.
In the Distributed System Manager (on LV6.1) I see only the same NIOPCClientStatus folder and no variables...see attached.
I still havent really got to the bottom of why the NIClient stopped in the first place. I use MAX to log some of the shared variables. The logging stopped at approximately 10am on Sunday morning. The clocks changed on Saturday night....I was expecting a gap of an hour between 1am and 2am when the PCs clock would have changed but there is no gap.
Off to try creating a new project in 8.6.
Alan
04-08-2009 07:58 AM
04-08-2009 11:05 AM
Hi Alan,
Good afternoon and I hope your well today.
I am looking through the information you've posted and I was wondering if you had configured the NI Shared Variable Engine at all?
1. If not then, to configure the NI SVE to run as a specific user. Follow these steps to reconfigure the SVE service:
2. And also can you confirm that the SVE process is actually running? It might be stopping when you close different tools..
3. If you just setup a basic VI to write and read from a variable - does it work? and the same with bound variables?
4. Have you tried creating a bound variable from the option, right click on library>> create bound variable? and either way, the OPCfolder the variables aren't listed?
Just a few suggsetions why I look into things,
Hope this helps.
04-08-2009 11:52 AM
Hi there
Thanks for your help
I tried stopping and starting the variable engine as you advised and there is only one user account on this PC. Previously I set all the DCOM privelages to allow for all user accounts,
After a restart. I'm pretty certain the Variable Engine is running. There is a process called tagsrv.exe running (and using CPU time) as can be seen in Windows Explorer.
Tried setting up the I/O Server again and creating boung variables (in a new dummy project) still no joy I'm afraid.
Ive been looking at other threads to do with DCOM setting. As far as I can see Ive got the firewall off and all users given access to all of the OPC Servers and Clients.
I'm stumped, especially since it worked fine before and just stopped randomly.
Alan
04-09-2009 07:46 AM
Hi NI Community,
I am working with Alan via email at NI UK Support on this issue.
If you anyone has any suggestions then I am sure me and Alan would be very grateful.
I ofcourse will update the post (Alan too I'm sure) on our finds and solution/outcomes.
Thanks,
04-25-2009 10:34 AM
It sounds like you may not be using NI OPC Servers. If you were, I would suggest you go to:
Tools >> Options >> Service tab and verify that "Automatically start as a Windows NT service" is checked.
When this was unchecked, I had to keep Shared Variable Manager or Distributed System Manager open for the OPC server to function.
I had similar browse issues, where I could not see my variables unless this setting was configured. That is, while NI OPC Servers is set to run as an application out of the box, it must be run as a service to function with shared variables. There may be something similar going on with your server.
-Jason