[英]Simulation framework
I am working on embedded software for an industrial System.我正在为工业系统开发嵌入式软件。 The system consists of several stepper-motors, sensors, cameras, etc. Currently, the mechanics as well as the electronics are not available - only specification.
该系统由几个步进电机、传感器、相机等组成。目前,机械和电子设备不可用——只有规格。
I've implemented the simulation for some parts of mechanics/elektronics, but it takes a consiredable amount of efort.我已经为机械/电子学的某些部分实现了模拟,但这需要相当大的努力。 So my question:
所以我的问题:
Are there good portable (Win/Linux) Hardware simulation frameworks?有没有好的便携(Win/Linux)硬件模拟框架? Easy to install/use and affordable in prise?
易于安装/使用且价格实惠? My basic requirements are:
我的基本要求是:
My Application is in C++/Qt, so it would be the best, if such a framework had C/C++ bindings.我的应用程序在 C++/Qt 中,所以如果这样的框架具有 C/C++ 绑定,那将是最好的。
Thank you for any advice!感谢您的任何建议!
I face the same problem as I have to develop systems to interface with several types of automation devices (robots, firmware devices, etc).我面临同样的问题,因为我必须开发系统来与多种类型的自动化设备(机器人、固件设备等)接口。 I still want to provide unit test for my code, but after writing 3 or 4 simulated devices, I thought it got to be a better way.
我仍然想为我的代码提供单元测试,但是在编写了 3 或 4 个模拟设备之后,我认为这一定是一个更好的方法。
Fortunately in my case, my code was all in C# and the final solution was to use Moq to create simple mocks of those devices.幸运的是,我的代码都在 C# 中,最终的解决方案是使用 Moq 创建这些设备的简单模拟。 I'm not familiar with mocking frameworks for C++/Qt, but a simple search rendered a couple of results, including one made by google (googlemock).
我不熟悉用于 C++/Qt 的 mocking 框架,但是一个简单的搜索呈现了几个结果,包括一个由 google (googlemock) 制作的结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.