I would like to use Matlab Simulink Real-Time C API to write programs (in C or in Java) that will work on a Linux machine. However the C API is a dll that is supposed to work only on a Windows machine.
我想使用Matlab Simulink实时C API来编写程序(用C或Java编写),在Linux机器上工作。但是,C API是一个dll,只能在Windows机器上工作。
Does Wine work with the Simulink Real-Time C API ?
Wine是否使用Simulink实时C API ?
EDIT : I am developing simulink models on a Windows computer. I then use this computer to load the Simulink model into the Xpc target (a Speedgoat machine).
编辑:我正在Windows电脑上开发simulink模型。然后,我使用这台计算机将Simulink模型加载到Xpc目标(一个Speedgoat机器)中。
When we go in production, the Xpc target computer is locally connected to a Linux computer. We have access via SSH to the Linux computer. If we want to update the simulink model of the Xpc target computer, the only way is to go via the Linux computer.
当我们开始生产时,Xpc目标计算机在本地连接到Linux计算机。我们通过SSH访问Linux计算机。如果我们想要更新Xpc目标计算机的simulink模型,唯一的方法是通过Linux计算机。
2 个解决方案
#1
2
To use the host interface from linux, the only possibly I see is to contact the speedgoat support and hope for a library compiled for Linux or a protocol documentation. To communicate with the system there is no need to have any simulink component in between. My expectation is that you won't receive a positive answer, but give it a try. Especially receiving a protocol documentation would allow you to write fully platform independent code.
要使用来自linux的主机接口,我看到的唯一可能是联系speedgoat的支持,并希望得到一个为linux编译的库或协议文档。要与系统通信,不需要在两者之间有任何simulink组件。我的期望是,你不会得到一个肯定的答案,但不妨尝试一下。特别是接收协议文档将允许您编写完全独立于平台的代码。
Having a speedgoat with an Ethernet host interface, another possibility is to establish a network connection between your development PC running Windows and the speedgoat using the Linux PC as a network bridge. If you need assistance setting up this, I recommend to ask a question at superuser.
有一个带有以太网主机接口的speedgoat,另一种可能是在运行Windows的开发PC和使用Linux PC作为网络桥接的speedgoat之间建立网络连接。如果你需要帮助建立这个,我建议问一个问题在超级用户。
#2
0
I would recommend Using Virtual Box
我建议使用Virtual Box
(Alows you to run another OS in Linux)
(在Linux中运行另一个OS)
But it is possible to run almost anything in wine if you configure it right,
但是如果你正确地配置,在葡萄酒中几乎可以运行任何东西,
The first thing you would need to do is install (Wine) and (Play on Linux) from the Software store then find out everything it will need to run properly (Microsoft Fonts, Internet Exporer 8) and so on,
你需要做的第一件事是从软件商店安装(Wine)和(在Linux上运行),然后找出所有它需要正确运行的东西(Microsoft字体,Internet Exporer 8)等等,
Once this is done it should work but it is a matter of trial and error with wine.
一旦这样做了,它应该工作,但这是一个试验和错误与葡萄酒。
Hope This helps :)
希望这有助于:)
#1
2
To use the host interface from linux, the only possibly I see is to contact the speedgoat support and hope for a library compiled for Linux or a protocol documentation. To communicate with the system there is no need to have any simulink component in between. My expectation is that you won't receive a positive answer, but give it a try. Especially receiving a protocol documentation would allow you to write fully platform independent code.
要使用来自linux的主机接口,我看到的唯一可能是联系speedgoat的支持,并希望得到一个为linux编译的库或协议文档。要与系统通信,不需要在两者之间有任何simulink组件。我的期望是,你不会得到一个肯定的答案,但不妨尝试一下。特别是接收协议文档将允许您编写完全独立于平台的代码。
Having a speedgoat with an Ethernet host interface, another possibility is to establish a network connection between your development PC running Windows and the speedgoat using the Linux PC as a network bridge. If you need assistance setting up this, I recommend to ask a question at superuser.
有一个带有以太网主机接口的speedgoat,另一种可能是在运行Windows的开发PC和使用Linux PC作为网络桥接的speedgoat之间建立网络连接。如果你需要帮助建立这个,我建议问一个问题在超级用户。
#2
0
I would recommend Using Virtual Box
我建议使用Virtual Box
(Alows you to run another OS in Linux)
(在Linux中运行另一个OS)
But it is possible to run almost anything in wine if you configure it right,
但是如果你正确地配置,在葡萄酒中几乎可以运行任何东西,
The first thing you would need to do is install (Wine) and (Play on Linux) from the Software store then find out everything it will need to run properly (Microsoft Fonts, Internet Exporer 8) and so on,
你需要做的第一件事是从软件商店安装(Wine)和(在Linux上运行),然后找出所有它需要正确运行的东西(Microsoft字体,Internet Exporer 8)等等,
Once this is done it should work but it is a matter of trial and error with wine.
一旦这样做了,它应该工作,但这是一个试验和错误与葡萄酒。
Hope This helps :)
希望这有助于:)