LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC Error on Start Server in RT Application (-356698)

Solved!
Go to solution

I'm getting an error -356698 when attempting to start on OPC server on a cRIO-9068. The create works just fine, I've also found I can add tags to a stopped server without error, as well as destroy the server. The error only comes up when I'm attempting to start the server, as shown in the attached snippet. Any thoughts?

0 Kudos
Message 1 of 9
(3,880 Views)

I tested the code on a cRIO-9068 myself and it ran just fine. The error code seems to indicate some sort of connection problem but I am not yet sure what may be the reason. Can you upload a screen shot from the error itself showing the whole window? (code, hex code, source, explanation). I just want to check a couple things there.

 

Also, you probably have the software properly installed in the CompactRIO (if not, the VI would not even deploy) but you can verify you have the OPC UA Server listed and maybe even reinstall the cRIO-9068's software.

 

Also; is the information showing up in the server endpoint URL correct? What do you receive in that indicator?

 

Camilo V.
National Instruments
0 Kudos
Message 2 of 9
(3,831 Views)
Solution
Accepted by ian.yeager

Camilo, 

 

This was resolved with some help from the embedded team over on the OPC UA forum. Link is here; https://decibel.ni.com/content/message/85663#85663

 

Seems like it has to do with the 9068 not recognizing itself as a host. Fixed in 2014 SP1, it sounds like. Perhaps you're running newer firmware with the fix there already.

 

Thanks for your reply though. I'll mark this as the solution in case anyone else runs into this error and searches for the error code.

 

-Ian

0 Kudos
Message 3 of 9
(3,827 Views)

Thanks for the update.

 

I am running 2014 though. However, my NI-RIO version is 14.0.1, so if you have 14.0.0, you can try upgrading it. You will find the download here.

Camilo V.
National Instruments
0 Kudos
Message 4 of 9
(3,822 Views)

I've wondered if there's any issues running NI-RIO 14.0.0 alongside LabVIEW 2013 SP1 or are they independant of one another? 

0 Kudos
Message 5 of 9
(3,820 Views)

As long as it is LabVIEW 2013 SP1 and not LabVIEW 2013 flat, there shouldn't be any issues.

Camilo V.
National Instruments
0 Kudos
Message 6 of 9
(3,818 Views)

Hi Carnaval,

 

I'am running in exactly the same issue with my cRIO 9068 (Fw 2.1.0f0) with LabVIEW 2014 and NI 14.0.1. 

As Lv 2014 SP1 is not accessible, and the link (propose in your mail) not reachable, could you provide me the solution or workaround to fixe this issue ?

 

Thanks.

Cordialement,
Raphael T
0 Kudos
Message 7 of 9
(3,730 Views)

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

https://decibel.ni.com/content/servlet/JiveServlet/downloadImage/2-85607-183261/310-157/SSH1.jpg

 

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

https://decibel.ni.com/content/servlet/JiveServlet/downloadImage/2-85607-183262/450-282/SSH2.jpg

 

4-To close the file type :q

 

5-Reboot you cRIO-9068 system

0 Kudos
Message 8 of 9
(3,704 Views)

Thanks,

 

Somebody of my team already faced to that issue few weeks ago, and knew the hosts file trick. Thanks for this detailed workaround, it will be helpful for every OPCUA user on cRIO9068 until 2014 SP1 release.

 

Thanks.

Cordialement,
Raphael T
0 Kudos
Message 9 of 9
(3,699 Views)