From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Labview opc client to connect to Opto 22 optoopcserver

Great news! I am happy I was able to help and thank you very much for sharing the final solution.

Alejandro C. | National Instruments
0 Kudos
Message 11 of 14
(788 Views)

Hi,

I have a problem using this exact configuration. I am able to connect to OptoOpcServer and read and write tags using Labview Classic OPC, but after a random amount of time, I get an error and the VI quit. During the time the communication is working, the system is flawless, but it just quit sometimes.

I have attached the pop-up error screenshot, the .evtx log file from window event viewer and the application error log is below. Any help is very welcome.

Thanks in advance.

Event Viewer
Error; Application Error
 
General:
Faulting application name: OptoOPC.exe, version: 9.4.2.2, time stamp: 0x55033798
Faulting module name: OptoOPC.exe, version: 9.4.2.2, time stamp: 0x55033798
Exception code: 0xc0000005
Fault offset: 0x00005f60
Faulting process id: 0x1108
Faulting application start time: 0x01d0cbd21fdc5813
Faulting application path: C:\PROGRA~2\Opto22\OPCSER~1\OptoOPC.exe
Faulting module path: C:\PROGRA~2\Opto22\OPCSER~1\OptoOPC.exe
Report Id: d59e746a-37cb-11e5-94c7-d8d38575315f
 
Details:
- <System>
  <Provider Name="Application Error" /> 
  <EventID Qualifiers="0">1000</EventID> 
  <Level>2</Level> 
  <Task>100</Task> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2015-07-31T21:33:51.000000000Z" /> 
  <EventRecordID>1554200</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>CathodeDACComp</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>OptoOPC.exe</Data> 
  <Data>9.4.2.2</Data> 
  <Data>55033798</Data> 
  <Data>OptoOPC.exe</Data> 
  <Data>9.4.2.2</Data> 
  <Data>55033798</Data> 
  <Data>c0000005</Data> 
  <Data>00005f60</Data> 
  <Data>1108</Data> 
  <Data>01d0cbd21fdc5813</Data> 
  <Data>C:\PROGRA~2\Opto22\OPCSER~1\OptoOPC.exe</Data> 
  <Data>C:\PROGRA~2\Opto22\OPCSER~1\OptoOPC.exe</Data> 
  <Data>d59e746a-37cb-11e5-94c7-d8d38575315f</Data> 
  </EventData>
  </Event>
 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Error -2147220995 occurred at Shared Variable in New Cathode Data System.vi
 
Possible reason(s):
LabVIEW DSC:  (Hex 0x800401FD) The OPC Client I/O server is not connected to any OPC server. Verify the configurations for the OPC Client I/O server. Also check the network settings if you are trying to connect to a remote OPC server. Ensure the DCOM security settings on both the server side and the client side are correct.
 
This error or warning occurred while reading the following Shared Variable:
\\My Computer\Opto22_Server\TC_00_EU
\\localhost\Opto22_Server\TC_00_EU




Download All
0 Kudos
Message 12 of 14
(750 Views)

Hello Pablo,

 

Did you ever find a resolution to this exception 0xc0000005 in your event log?  We are having the same issue with OptoOPC 22 version 9.4.2.2.  An intermittant error dialog pops up and we have to dismiss it in order to resume normal execution of the OptoOPC Server.

 

The only work around is to identify the popup dialog and kill the associated optoopc.exe process.

 

Thank you,

 

Brett

0 Kudos
Message 13 of 14
(573 Views)

Brett,

Unfortunately no.
I stop using OptoOpcServer all together and did an standalone application in the Opto22 brain that I was using. Zero problems with this approach.

My best bet is a bug in the interface module. Not up to us to troubleshoot

Best, Pablo

0 Kudos
Message 14 of 14
(555 Views)