2 Replies Latest reply on Jun 14, 2012 3:56 PM by Ahmad Fattahi

    Connecting Simulink to PI (Write and Read)

    gary.li

      Hello,

       

      I am trying to send data from a simulated plant in Simulink to a PI server (through OPC write) and then bring the data back to Simulink (through OPCRead). However, I am getting the following errors:

       

      Error evaluating registered method 'Start' of MATLAB S-Function 'opcslread' in 'Sinewave2/OPC Read'. The following is the MATLAB call stack (file names and line numbers) that produced this error:

       

      Could not create all items for read block 'Sinewave2/OPC Read'.
      The specified operation timed out.
      Unable to undo the fully or partially completed operation on the OPC Server.

       

      I get the following error on running the command "additem(grp,items);" in the file OPCDARead.m that is provided by the OSIsoft.:

       

      The specified operation timed out.
       Unable to undo the fully or partially completed operation on the OPC Server.

       

      I appreciate any feedback.

       

      Thanks