金宝appSimulink实时and non-Speedgoat Machine
116 views (last 30 days)
显示较旧的评论
亲爱的Matlab社区你好
我想知道是否有可能使用传统的PC作为目标机器使用Simulink实时 - 例如,金宝app没有speedgoat hw?我知道以前的产品 - XPC目标是支持这一点,但现在我没有看到任何证据,如何建立自己的目标金宝app机器实时。标准情况下的Speedgoat机器也不是单板PC。
我知道存在桌面实时工具箱,但对Simulink的实时感兴趣,因为后者支持FieldBusses,如EtherCAT,允许简单的I / O扩展 - 这就是我金宝app需要的所有来自目标PC连接。金宝app
有人可以解释它是否有可能?
0评论
Accepted Answer
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
More Answers (3)
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.
- Download FreeDOS Lite USB image fromhttps://www.freedos.org/download/
- 使用Rufus工具从Freedos Lite图像创建可启动USBhttps://rufus.ie.
- 在MATLAB中,使用MATLA金宝appB命令“SLRTEXPLR”开立Simulink实时资源管理器
- In the target window, select properties of the Target PC session
- Setup ethernet device and network settings in "Host-to-Target communication" dropdown list
- 在“启动配置”下拉列表中选择“DOS Loader”
- 单击创建引导磁盘图标,选择一个褶皱er on the bootable USB stick. The folder should contain the files "autoexec.bat.", "rttboot.com", and "xpckrnl.rtb“。
- Boot the target PC with the bootable USB
- 使用说明安装Freedoshttp://wiki.freedos.org/install/
- 将USB插入目标PC,然后从BIOS中选择在DOS模式下引导目标计算机(而不是USB闪存驱动器)
- 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
- 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
- Delete theC:\config.sysfile
- 拔下USB闪存驱动器,然后以DOS模式重新启动目标计算机。应自动启动实时Sim金宝appulink目标。
- 将主机PC连接到使用以太网电缆定位PC以太网设备端口。必须在与目标PC配置的同一网络中使用静态IP地址配置PC的以太网设备。因此,如果目标PC的IP地址配置为192.168.6.6在步骤5中,则可以将主机PC设置为例如192.168.6.5的静态IP地址。
- Click connect to TargetPC in Targets window of the Simulink Real-Time Explorer
- 连接时,您可以从Simulink构建和上传模型金宝app
2评论
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.