LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error running EPICS Server-Client Example on cRIO

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!

0 Kudos
Message 1 of 17
(4,776 Views)

Is that library located on the cRIO? You may need to disable autodeploy variables on the target.

 

auto.png

Zach P.

Staff Software Engineer | LabVIEW R&D | National Instruments
0 Kudos
Message 2 of 17
(4,770 Views)

Yes it is. I tried your suggestion and get the same results.  I've attached a screenshot of the project, if that helps.

0 Kudos
Message 3 of 17
(4,764 Views)

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.

Zach P.

Staff Software Engineer | LabVIEW R&D | National Instruments
0 Kudos
Message 4 of 17
(4,758 Views)

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

0 Kudos
Message 5 of 17
(4,753 Views)

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?

Zach P.

Staff Software Engineer | LabVIEW R&D | National Instruments
0 Kudos
Message 6 of 17
(4,746 Views)

LabVIEW 2011 SP1

Yes I can see them in the DSM. The values change as I turn the dials on the Server.vi

0 Kudos
Message 7 of 17
(4,744 Views)

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

0 Kudos
Message 8 of 17
(4,735 Views)

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?

Zach P.

Staff Software Engineer | LabVIEW R&D | National Instruments
0 Kudos
Message 9 of 17
(4,720 Views)

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

0 Kudos
Message 10 of 17
(4,711 Views)