09-18-2012 12:25 PM
So I found this example of running an EPICS server and client on a host machine. I was able to run it and see the correct output on the client.
https://decibel.ni.com/content/docs/DOC-22825
I wanted to take it one step further and run the Server on my cRIO-9024 and the client on my PC. I started a new project, found the right hardware with the right IP address and setup all the server libraries and variables under the cRIO part of the project and all the client settings as described in the example under My Computer part of the project.
The server side seems to run fine, however the client side gets this error: Deploying Client Library.lvlib:EPICS Client 1\\111.222.111.222\Client Library\EPICS Client 1 deployment failed (error: -2147467259, LabVIEW: (Hex 0x80004005) Unspecified error ==== NI System Configuration: (Hex 0x80004005) Miscellaneous operation failure.)
I checked the Distributed System Manager and see the correct values on the cRIO's Server Library.
Any ideas what this error means? Do I have a flawed idea of running this on two separate platforms? I am very new to EPICS so I'm not sure if I am going in the right direction. Eventually I would like to hook up some hardware to the cRIO and monitor and control a couple of settings on that hardware.
Any help would be appreciated. Thanks in advance!
09-19-2012 10:20 AM
Is that library located on the cRIO? You may need to disable autodeploy variables on the target.
09-19-2012 11:07 AM
Yes it is. I tried your suggestion and get the same results. I've attached a screenshot of the project, if that helps.
09-20-2012 09:24 AM
Do you have the client variables bound to the server variables? You may need to initialize the server variables and give them time to deploy before accessing them with the client variables.
09-20-2012 06:05 PM
Yes they are bound. Our local NI guys came by and noticed that the variables have quotes around the IP addresses and I noticed that the client variables don't like to use periods in the names, so I replaced all the IP addresses with the host name of the cRIO. Now I have a different error:
-1950679036 occurred at Shared Variable in Client.vi
General Communcations failure
This error or warning occurred while reading the following Shared Variable:
\\My Computer\Client Library2\Amplitude-Client
\\PC.IP.Address.Here\Client Library2\Amplitude-Client
I'm going to try putting my cRIO and desktop on a private network and see if I still get the same errors...
09-21-2012 08:22 AM
Are you able to see the values of the shared variables (client and server) in Distributed Systems Manager?
What version of LabVIEW are you using?
09-21-2012 08:30 AM
LabVIEW 2011 SP1
Yes I can see them in the DSM. The values change as I turn the dials on the Server.vi
09-21-2012 02:20 PM
So I played with DSM some more and found that the cRIO's server variables are showing up under Server Library, but under the Client Library they are not. I played around on a private network with IP Addresses and hostnames and got different errors. IP addresses show Good data with no information posted to the variables and they also show Communication Failure. Hostnames seem to show Communication Failures or No Known Value errors. Both seem somewhat inconsistant for errors. Will try to sort this out some more...
09-24-2012 10:46 AM
Could you post screenshots of your project, DSM view, and error messages? It's a little unclear what you are seeing and where.
From what I understand, you can see the variables hosted in the Server library on the cRIO but not the ones on the client library on your local computer?
09-25-2012 09:40 AM
So I tried working with the DSM again and now all I get are communication errors in the client. I also cannot edit the variables (right-click on VAL > Edit Variable) generates and error now. I have attached several screen shots, hope these help!
* Project Explorer - my project
* ClientVIError - error when running client vi
* DSM_IPAddreses - client variable errors
* EditVariableError - error I get in DSM when I try to modify the variables