opc

DYMOLA: opc server how to initialize using dsin.txt or a mat file using MATLAB

若如初见. 提交于 2021-02-17 05:52:07
问题 I created an OPC server in DYMOLA, now I have this in DYMOSIM to click and initialize using a ".MAT" file of a dsin.txt Now I created a GUI file in MATLAB, and take input for variables and created a mat file >>save FLUID_INITIALISE area volume density Now I want to initialize this using MATLAB I can do this >>write(Initialize,1) //To initialize a previous data I know can do this using dymola , SIMULATION > CONTINUE > IMPORT BUT I WANT TO INITIALIZE IT USING MATLAB normal MAT FILE LOOKS LIKE

DYMOLA: opc server how to initialize using dsin.txt or a mat file using MATLAB

[亡魂溺海] 提交于 2021-02-17 05:52:05
问题 I created an OPC server in DYMOLA, now I have this in DYMOSIM to click and initialize using a ".MAT" file of a dsin.txt Now I created a GUI file in MATLAB, and take input for variables and created a mat file >>save FLUID_INITIALISE area volume density Now I want to initialize this using MATLAB I can do this >>write(Initialize,1) //To initialize a previous data I know can do this using dymola , SIMULATION > CONTINUE > IMPORT BUT I WANT TO INITIALIZE IT USING MATLAB normal MAT FILE LOOKS LIKE

OpenOPC Gateway Running use Client in OsX or Linux

醉酒当歌 提交于 2021-02-08 05:43:20
问题 I use the OpenOPC library for python https://sourceforge.net/projects/openopc/ in gateway mode... Gateway runs on Windows and the client should run on Linux . This usecase is also forseen by the Library in its documetation. But... The library uses the pythoncom library in pyhton which is a Windows package.. how do I get around that since i cant install Pywin32 in macosx ? the Error Message: pythoncom.CoInitialize() NameError: global name 'pythoncom' is not defined 回答1: The problem is fixed...

MATLAB - GUI and OPC server

纵饮孤独 提交于 2021-02-05 09:25:07
问题 I want to design a graphical user interface in MATLAB that can read data continuously using the MATLAB's object linking and embedding for process control (OPC) toolbox. How can I implement this? I have designed the graphical user interface, but I'm not able to read the data into the graphical user interface. 回答1: Take a look at this submission of mine from the MATLAB Central File Exchange. It gives a full example of how to read and write data from an OPC server, and how to create and compile

Dymola: OPC server grayed out

谁说我不能喝 提交于 2021-02-05 08:41:10
问题 I am using Dymola [Ran as Administrator] I have installed OPC Core Components: D:\Program Files\MATLAB\R2020a\toolbox\opc\opc\private\win64\OPCCoreComponents\OPC Core Components Redistributable (x64).exe I have installed Matrikon OPC Server Simulation. I have put in environment variables: In Dymola I am using this: This is the simple code I am running in Dymola: OPC server is grayed out still. Simulation is working. 回答1: You have to use an older version of Visual Studio. Here are the

Read synchronously from opc server

情到浓时终转凉″ 提交于 2021-01-28 04:51:24
问题 I can not read items synchronously from OPC server. My code always gives this error: Object reference not set to an instance of an object. I created my object with new method but it doesn't work. I'm using VS2010 and Interop.OPCAutomation . Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using OPCAutomation; namespace WindowsFormsApplication1 { public

Create a very simple OPC client in Unity3d with opc ua .net library

泄露秘密 提交于 2020-06-27 10:08:32
问题 I am getting these errors while trying to implement a simple OPC client in .Net with Unity3D.These errors are in Visual Studio: Severity Code Description Project File Line Suppression State Error CS0012 The type 'X509CertificateValidator' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceModel.Primitives, Version=4.5.0.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Test C:\Users\hidethepain\Documents\opc\Assets\main.cs 27 Severity

C#通过OPC协议连接PLC

人盡茶涼 提交于 2020-02-29 03:01:58
今天是2020年2月28号,因“新冠病炎”在家办公的第一个月。 事情的起因是公司突然交我给一个任务,给电机车做个雷达扫描图,用于显示机车前方所有障碍物的信息,如下图所示。c#开发,解析硬件通过can通讯传过来的数据,因为之前给电机车做过触摸屏程序,感兴趣的可以看我的另一篇博客: 触摸屏下的MFC程序 ,涉及到can解析,所以开发很顺利,因为现场有十几台电机车,每台机车的前方障碍物又不同,数据量很大! 数据的传输路径: 从一开始的can解析, 到后来换成can转以太网, 然后又变成读取数据库的数据, 到最后要读取wincc里opcserver服务里的数据, 真是一波多折,以前没接触过,所以网上查了很多资料,花费了一个星期的时间终于解决。 (以前是在电机车里放个触摸屏,用来显示一些参数,如速度,牵引,阀门,所以才用到can解析,而现在是矿山自动化无人驾驶,在地面的总控制室通过wincc系统控制plc设备进行运转,此次通过opc协议读取wincc里是最好的解决方法。wincc在安装时自带opcserver服务。) 网上的例子很多,也有很多坑,都是一个一个去试的,借鉴了很多大神的资料 也不用大家再去搜了,我已经全部总结如下: 1. C#通过OPC连接PLC读写功能案例 2. OPC通讯实例(C#通过OPC连接PLC读写数据) 3. PLC通讯实现-C#访问OpcServer实现读写PLC