NI Labs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

NI LabVIEW OPC UA APIs Discussion

I'm having trouble in build a interop .NET dll with OPC UA.

When I run a web site  in VS2008 referencing a interop ddl built in Labview I get the message:

"Missing Dependency in: Read.vi: Library not found or failed to load: ni_opcua_client.dll"

I try to place this dll in every place I could figured out but the message remains. I get the same error in VS2010 Express.

When I run a form it just crash instantly with the message:

vs error.png

The dump files are attached.

TlbImp.exe call result in invalid error.

I'm running LV2012 (without SP) in a WS2008 R2.

Thanks.

0 Kudos
Message 111 of 150
(1,417 Views)

I'm also having problems in build and run a application in a machine without the developer environment.

When a run an application using OPC UA API it doesn't find or doesn't load de dll's. I tried to place them everywhere but it doesn't work.

I'm receiving several messages like this:

"Missing external function ni_opcua_utilities.dll:GetUniqueString:C in VI NI OPC UA Utility.lvlib:Get Unique String.vi"

Thanks.

0 Kudos
Message 112 of 150
(1,417 Views)

This post is a acouple years old now. I was wondering if NI now supports UA tags as IO server? Thanks.

0 Kudos
Message 113 of 150
(1,417 Views)

Has anyone successfully run an OPC UA Server from a cRIO 9068? I'm trying to now, and am getting error -356698 when calling "NI OPC UA Server.lvlib:Start.vi". I was attempting to debug a larger application and got as simple as the attached snippet and am still seeing the error on the start. I can create the server, create a certificate file, add folders and items to the server. Read and Write nodes when locally using the server refnuim and the server read and write vis. But as soon as I try to start it, I get this error. OPC Snipper.png

Any thoughts?

0 Kudos
Message 114 of 150
(1,417 Views)

Hi ian.yeager,

Thanks for submitting your request to this community. The behavior you are observing is unique to NI Linux Real-Time devices and has been identified already. The fix to this issue will be included in the 2014 SP1 version of the LabVIEW Real-Time module. For now, there is a workaround that eliminates this error and allows running OPC UA servers on NI Linux Real-Time devices:

1-Open a SSH session to your cRIO-9068 controller using a terminal client like Putty which is free. Please follow the instructions in this KB to enable SSH in your cRIO9068 and connect via Putty:

http://digital.ni.com/public.nsf/allkb/9822A3A39B1D0CBB86257C55006B962A

2-You have to login as the admin account and open the host configuration file with the following command: vi /etc/hosts

SSH1.jpg

3-Add a second line to the file as follows 127.0.0.1 <cRIO-9068 HostName> <Alias>

SSH2.jpg

4-To close the file type :q

5-Reboot you cRIO-9068 system

This will allow the NI Linux RT OS to run your OPC UA Server. As I mentioned before this fix will be included in the 2014 SPI edition of LabVIEW. I apologize for the inconvenience.

Thanks,

Carlos Pazos

Embedded Software

Product Manager

Carlos Pazos

Senior Product Marketing Manager

National Instruments
0 Kudos
Message 115 of 150
(1,417 Views)

Thanks Carlos, this fixed it right up. Since it may be sometime until we migrate to 2014 SP1 and we're going to be commisioning possibly hundreds of these units before than. Is there an easier work-around for this that could be deployed by say, a production-level employee? I hate to imagine the world where I need to sit down for ten minutes with every single cRIO that comes through our doors before it can have code deployed.

0 Kudos
Message 116 of 150
(1,417 Views)

Hello,

I'm developing a new project with UA server in realtime. everything is fine and I'm happy. I have only a problem interfacing it with Matrikon clients.

In detail, I nedd to be compliant with old plants, so the customer asked to the possibility of a windows PC running Matrikon OPC-UA proxy that translate the UA server to the old OPC-DA. This proxy doesn't like Labview Ua server, I tried different solutions, i.e. it works through local discovery server, but in real time it is not possible to use it.

With Softing or Unified automation clients works perfectly but they don't have a proxy similar to Matrikon

Does anyone experienced success cases with Matrikon products, and labview OPC-UA server?

0 Kudos
Message 117 of 150
(1,417 Views)

Hi FelipeC,

Have you got the solution of this? I am strugling with the same problem...

_____________________ _ _ _ _ _ _

"Together we stand, divided we fall..."

Certified LabVIEW Associate Developer






0 Kudos
Message 118 of 150
(1,417 Views)

BRLUIZFELIPPE ,

I think my problem was related to a issue in LV2012 security implementation. It disappeard after disable encryption in OPC comunication.

I don't know if this problem is still happening in the latest version of LV.

0 Kudos
Message 119 of 150
(1,417 Views)

Thank you. I am using LV2014 and while running the VI in a development environment it runs fine. After building an application and installer it seems that the application does not find the OPC UA SERVER.dll. Thanks anyway.

_____________________ _ _ _ _ _ _

"Together we stand, divided we fall..."

Certified LabVIEW Associate Developer






0 Kudos
Message 120 of 150
(1,417 Views)