LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Deploying the Share variables"http://forums.ni.com/t5/util/emoticonspopuppage#

Solved!
Go to solution

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.:smileysad:

0 Kudos
Message 1 of 8
(3,758 Views)

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.

0 Kudos
Message 2 of 8
(3,723 Views)

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.

0 Kudos
Message 3 of 8
(3,674 Views)

Hi Arun,

             Did the above mentioned solution start working?

If yes, then what is the error it is giving out now?

 

Regards

Akshat Jain

0 Kudos
Message 4 of 8
(3,656 Views)

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

0 Kudos
Message 5 of 8
(3,650 Views)

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.

0 Kudos
Message 6 of 8
(3,631 Views)

Hi,

   I had seen the errors but got the different every time.Will anybody give me the proper solution for that Smiley Madi got very frustrate with this.

0 Kudos
Message 7 of 8
(3,555 Views)
Solution
Accepted by topic author luthra_arun

   

 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.

0 Kudos
Message 8 of 8
(3,502 Views)