金宝appSimulink实时and non-Speedgoat Machine

116 views (last 30 days)
Artyom
Artyom on 1 Aug 2019
评论: 吉姆vogel.on 17 Feb 2022 at 22:17
亲爱的Matlab社区你好
我想知道是否有可能使用传统的PC作为目标机器使用Simulink实时 - 例如,金宝app没有speedgoat hw?我知道以前的产品 - XPC目标是支持这一点,但现在我没有看到任何证据,如何建立自己的目标金宝app机器实时。标准情况下的Speedgoat机器也不是单板PC。
我知道存在桌面实时工具箱,但对Simulink的实时感兴趣,因为后者支持FieldBusses,如EtherCAT,允许简单的I / O扩展 - 这就是我金宝app需要的所有来自目标PC连接。金宝app
有人可以解释它是否有可能?

Accepted Answer

Rodrigo Botelho
Rodrigo Botelho on 1 Aug 2019
Hi Artyom,
As far as I could find in the release notes, Simulink Real-Time removed the support for non Speedgoat targets on R2018a.
如果使用旧版本不是问题,我上次看到关于自定义目标的东西在R2017B上。不过,不确定支持的块。金宝app
1条评论
吉姆vogel.
吉姆vogel. on 17 Feb 2022 at 22:17
这是对的。请参见 this comment for more information.

登录评论。

More Answers (3)

Ivo Houtzager
Ivo Houtzager 20月23日
Edited:Ivo Houtzager 2020年12月15日
Answer for Simulink Real-Time version up to 2020a. The target PC must be able to run DOS. Thus motherboards with UEFI only firmware will not work. You need BIOS firmware or UEFI firmware with BIOS legacy support (to be enabled in boot settings screen). The target PC must also have a supported ethernet device, see the device list in Simulink Real-Time Explorer discussed in Step 5.
  1. Download FreeDOS Lite USB image fromhttps://www.freedos.org/download/
  2. 使用Rufus工具从Freedos Lite图像创建可启动USBhttps://rufus.ie.
  3. 在MATLAB中,使用MATLA金宝appB命令“SLRTEXPLR”开立Simulink实时资源管理器
  4. In the target window, select properties of the Target PC session
  5. Setup ethernet device and network settings in "Host-to-Target communication" dropdown list
  6. 在“启动配置”下拉列表中选择“DOS Loader”
  7. 单击创建引导磁盘图标,选择一个褶皱er on the bootable USB stick. The folder should contain the files "autoexec.bat.", "rttboot.com", and "xpckrnl.rtb“。
  8. Boot the target PC with the bootable USB
  9. 使用说明安装Freedoshttp://wiki.freedos.org/install/
  10. 将USB插入目标PC,然后从BIOS中选择在DOS模式下引导目标计算机(而不是USB闪存驱动器)
  11. At the DOS prompt, save a copy of the target computerC:\ autoexec.batandC:\config.sysfile to a backup file, such asC:\autoexec_prv.oldandC:\config_prv.old
  12. Copy the files "autoexec.bat.", "rttboot.com", and "xpckrnl.rtb" from the folder on the USB flash drive to the root folder of the target computer
  13. Delete theC:\config.sysfile
  14. 拔下USB闪存驱动器,然后以DOS模式重新启动目标计算机。应自动启动实时Sim金宝appulink目标。
  15. 将主机PC连接到使用以太网电缆定位PC以太网设备端口。必须在与目标PC配置的同一网络中使用静态IP地址配置PC的以太网设备。因此,如果目标PC的IP地址配置为192.168.6.6在步骤5中,则可以将主机PC设置为例如192.168.6.5的静态IP地址。
  16. Click connect to TargetPC in Targets window of the Simulink Real-Time Explorer
  17. 连接时,您可以从Simulink构建和上传模型金宝app
2评论
Ivo Houtzager
Ivo Houtzager on 20 Jul 2021
From R2020b and above, Mathworks changed the RTOS of Simulink Real-Time to Blackberry QNX. License for QNX comes with the Speedgoat hardware.

登录评论。


haiping guo
haiping guo 2020年12月15日
我购买了Simulink实时库,金宝app发现我也不得不购买Speedgeat使用它!

梁歌
梁歌 on 19 Sep 2019
You absolutely can use a normal computer such as a dell computer as the target machine with Matlab 2018b at least. But heard of that, it would not work if you want to connect the target to some other peripheral using IO like RS232, etc.
1条评论
Artyom
Artyom 2019年10月24日
嗯,speedgoat是一个标准的PC,但如何获得特定的Matlab内核,运行它?

登录评论。

Community Treasure Hunt

找到Matlab Central中的宝藏,并发现社区如何帮助您!

Start Hunting!