08-08-2009 09:53 AM
Hi to all,
I am communication the PLC with the PC using Labview for the i using NI-OPC server through modbus serial i am communication i had completed my application successfull.But when i make the Application installler and run the exe on my host PC i unable to communiacte with them i found the problem the problem is the application unable to deploy the share variables.How do i deploy the 150 no of share variables.
Solved! Go to Solution.
08-10-2009 01:28 AM
Solution : Server Failure could indicate a problem with the OPC server software or with the server's connection to hardware.
When using the DSC Module as an OPC client, the NI Shared Variable Engine (SVE) is the application that makes the connection to the remote OPC server.
The SVE is a system service and, by default, logs on and runs as the local system user.
Since DCOM enforces strict user checking you will not be able to connect to remote OPC servers and receive asynchronous data using the default SVE configuration. The DSC Module OPC client can establish primary communication with the OPC server, but it can't receive a call-back for asynchronous data, thus all Shared Variables bound to that server will indicate a status of Server Failure.
The solution is to configure the NI SVE to run as a specific user. Follow these steps to reconfigure the SVE service:
1. Go to Control Panel»Administrative Tools»Services.
2. Right-click National Instruments Variable Engine and choose Stop.
3. Right-click National Instruments Variable Engine and select Properties.
4. On the Log On tab select This Account and enter the user account information which has been granted the DCOM privileges on both the client and server PCs.
5. Click OK to apply the settings.
6. Right-click National Instruments Variable Engine and choose Start.
7. After reconfiguring the National Instrument Variable Engine service, restart both the Client and the Server PCs to refresh DCOM security settings.
08-17-2009 02:24 AM
Hi Akshat Jain,
Thanks for the reply .I had done the same as you had reply me but again i got the same problem.Will you suggest me where i am wrong.
08-18-2009 01:25 AM
Hi Arun,
Did the above mentioned solution start working?
If yes, then what is the error it is giving out now?
Regards
Akshat Jain
08-18-2009 02:13 AM
Hi Akshat,
Yes by the above setting it is working but in b/w automatically the communication fail then I manually stop and start the process in Distributed System Manager then again it works now what I had done in my program I continuously check if the communication failed by checking the quality of the Share variable then it disable and start the process then it works.Buts here the problem is I am continuously logging the data after every 5 sec, disabling and starting then again loading the Share Variables takes near to 2 to 3 sec if the data is logging in b/w this time then all the values become 0 in that particular time.
Regards Arun Luthra
08-19-2009 12:40 AM
Hi Arun
Shared variable can terminate communication because of multiple reasons. please specify the error that you are encoutering.
http://zone.ni.com/reference/en-XX/help/371361B-01/lverror/shared_variable_error_codes/
thanks,
Ravi.
08-31-2009 07:35 AM
Hi,
I had seen the errors but got the different every time.Will anybody give me the proper solution for that i got very frustrate with this.
09-07-2009 05:25 AM
Hi to all,
My problem had sloved the problem was with the communication wire which i was using.When i chage the cable the works.