Cannot Set up Simulink Real Time
Show older comments
Hello All!
I've been trying to run simulink real time for more than 12 hours without any successful attempt. Below are the attempts I've done in details:
Note I'm Using Matlab 2019a
- Attempt 1 - Simulink Ethernet Connection: I've connected my laptop (Dell Latitude 7490) which is the host to the target (Dell OptiPlex 7060 Micro) using ethernet cable. Then in "Control Panel\Network and Internet\Network Connections" I modified the ipv4 settings to the following : IP Address : 192.168.10.200 , Subnet Mask: 255.255.255.0 and Default Gateway to 192.168.10.1 . Afterwards I ran slrtexplr in Matlab command window. The settings I chose for my TargetPC1 are IP Address : 192.168.10.201 , Subnet Mask: 255.255.255.0 , Port:22222 , Default Gateway to 192.168.10.1. Bus Type:PCI , Ticked both USB and Graphics Mode , and boot mode is "Network". Afterwards (having the target PC on) I pressed on "Create Boot Disk" , restarted my target and got a prompt that detected the IP with MAC address correctly. Pinging to this using CMD and trying to use (slrttest) both returned failure in pinging.
- Attempt 2 - Simulink Removable Disk: With the same setup as the Ethernet Connection I only changed Boot Configuration to removable disk and created boot disk. Afterwards (doing proper bios changes) I connected the USB to the target PC and Simulink Interface page opened (black screen with simulink logo). I tried doing ethernet connection with the PC while its running from the USB but the pinging failed and I have no idea how I can send the simulations to the target machine.
- Attempt 3 - DOS Loader: For this attempt I used Rufus to download FreeDOS on the USB. Afterwards I went to the project and built it (it returned an error that it cannot find the target) nevertheless I got the .mldatx file. Then I went back to the slrtexplr page I changed the boot mode to "DOS Loader" and got the files on the USB. To the files I added the .mlxdatx file , booted the target from the USB and ran autoexec.bat. This gave the exact same black page with Simulink Logo without anything running.
Note I'm Using Matlab 2019a and I'm using the default Simulink Real Time project template however I replaced the stuff inside with a Pulse Generator and a Real Time Scope.
Thank You !
12 Comments
Few questions:
- What type of target hardware are you using? Note that since 2018a, custom target IO hardware is not supported for Simulink Real-time anymore. Only SpeedGoat is now officially supported. From my experiences, this could lead to strange and unreliable behaviour. I have also had trouble getting custom industrial computers working under SLRT 2019a. My typical issue was that it booted with the SLRT logo, but no info started to display about found CPU and IP settings... If it displays the command line type of info in the bottom right about IP and stuff, then that's good at least. SpeedGoat hardware has always worked immediately for me.
- Are you using a local network? Or even better, a direct link between host and target PC? This should at least allow you to ping the target. You set the IP correctly, for the Ethernet port (not mistaken the Wifi link for example, stupid suggestion I know, but to be sure)?
I would suggest to continue getting attempt 1 working, it is the most easy way of working in my opinion. slrtexplr is a way to troubleshoot, but you can also try the command slrttest. More info found here.
Hasan Abed Al Kader Hammoud
on 3 Oct 2019
Does the target monitor screen display that it found the CPU and the set IP 192.168.10.201 when it boots up?
Pinging the target should be really basic when both target and host are set up.
If it is easy for you, I would suggest to try 2017b or earlier yes.
Hasan Abed Al Kader Hammoud
on 3 Oct 2019
Hasan Abed Al Kader Hammoud
on 3 Oct 2019
Jonas
on 3 Oct 2019
What I mean is that if you use your MATLAB 2016b version on your host, you need to create a bootable USB stick with Simulink Real-time for the target of version 2016b as well. It won't work if you try to connect with MATLAB 2016b to a target which has slrt 2019a for example.
Hasan Abed Al Kader Hammoud
on 3 Oct 2019
So you have put Simulink Real-time 2017b on a removable disk using slrtexplr, booted the target with it, and the screen is just black? Or does the logo appear but no MAc address, IP or CPU found on the lower right?
If simply connecting to the target or getting it booted doesn't work, then I am out of ideas at the moment. Since it is a fairly easy process - and I believe you know what you are doing from what you are writing - I would direct you to the MathWorks Support at this point.
Hasan Abed Al Kader Hammoud
on 4 Oct 2019
Hasan Abed Al Kader Hammoud
on 4 Oct 2019
Timothy
on 24 Jan 2020
Hasan Abed Al Kader Hammoud, did you receive an answer from technical support? Were they able to help? I am trying to setup a SLRT target PC in R2017b and getting only a black screen as well.
Answers (0)
Categories
Find more on System Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!