Answered
Serial and Ethernet connection for xpc target
Hi Le, I'f you'd like to send data over the serial / COM port of your target machine, you can use the RS-232 blocks from the xP...

2 years ago | 0

Answered
How to change block sample time using a trigger
Hi Thomas, I would simply move the TCP Send block inside of the triggered / enabled subsystem, this should do the trick :) Bes...

2 years ago | 0

| accepted

Answered
Speedgoat Hardware for noise control
Hi Russ, The hardware used in this example is a Speedgoat Performance tagret machine with an IO104 module. Speedgoat offers a w...

2 years ago | 0

| accepted

Answered
TCP/IP Connection xPC Target with remote device
Hi Tobias, You can use the TCP/IP driver blocks from the Simulink Real-Time library in the model that you deploy to your target...

2 years ago | 0

| accepted

Answered
fminsearch function stops after a few iterations in simulink real time with inverter
Hi Yannic, I would suggest explicitly defining / checking the tolerances and stopping criteria of the "fminsearch" function in ...

2 years ago | 0

Answered
Can simulink real-time host PC be a linux machine?
Hi Cody, You can use Simulink® Real-Time™ on Windows® and Linux® platforms for your host PC starting from R2022a, as indicated ...

2 years ago | 1

| accepted

Answered
CAN Explorer and I/O 602 Speedgoat module
Hi Gabriel, In short, you will need to insert the CAN driver blocks corresponding to your IO602 module in your model. These dri...

2 years ago | 1

| accepted

Answered
Speedgoat, select default output for monitor connexion
Hi Bertrand, Usually, such settings can be found in the BIOS of your target machine. For more details, I kindly suggest that yo...

2 years ago | 0

| accepted

Answered
Speedgoat IO306 Serial Connection
Hi Rafael, In short, the Serial (UART) protocol transmits packets of 8 bits each that will contain your data. The structure of ...

2 years ago | 0

| accepted

Answered
Apply C code for real-time Speedgoat operation
Hi Mantas, The integration of external C/C++ code in Simulink Real-Time is documented here. Please note that your original code...

2 years ago | 0

Answered
Can every motherboard use for xPC target application?
Hi GreenPiece and Yavuzhan, Not every hardware will work with Simulink Real-Time. I'm not aware of any list of supported config...

2 years ago | 0

Answered
custom hardware interface for Simulink Desktop Real-Time
Hi Michiel, Not sure about Simulink Desktop Real-Time, but you might want to have a look into the solution offered by Simulink ...

2 years ago | 0

Answered
implementation of the HIL test on a new target.
Hi Zineb, I'm assuming you have the following files in mind, is that correct? Create a Transport Layer for TCP/IP or Serial Ex...

2 years ago | 0

Answered
Bus Restriction on Name/DataType in Real-Time Simulation
Hi MT, I suggest reporting this to the MathWorks Support team (support@mathworks.com) to have this investigated and potentially...

2 years ago | 0

Answered
I am getting an error 'Output Port 1' of 'Wind_Turbine/Scopes/Blade Load Scopes i not connected." when i run the model below but I'm not sure where to connect the in/output
Hi Karam, It looks like these output ports are not used anywhere in your model, so you can simply delete them to get rid of the...

2 years ago | 0

| accepted

Answered
Simulink simulation output differs when run on Speedgoat Target machine and on user's machine
Hi Andrea, If the simulation outputs are different, there's a high chance that the input signals are different too. Could you c...

2 years ago | 0

Answered
Are there any blocks that work with Simulink simulation but not real-time?
Hi John, The easiest way to get more details about the build error is to go here in the diagnostics viewer: Best, Dimitri

2 years ago | 0

Answered
simulink real time maximum hardware support?
Hi Nicky, In R2020a and earlier, Simulink Real-Time uses a 32-bit real-time OS (RTOS) on the target machine. The maximum quanti...

3 years ago | 0

Answered
Download Simulink Real-Time Target Support Package version 21.1.0
Hi Nicolas, As far as I know, this is not possible by default as of now. I suggest that you reach out to the MathWorks support ...

3 years ago | 1

Answered
Simulink Real Time Speedgoat and App Generator
Hi Daniel, You can insert a "Target Selector" UI component to your App Designer interface to select the target machine you'd li...

3 years ago | 1

| accepted

Answered
How do I send serial commands to a device with Simulink Real Time?
Hi Dan, What kind of cable are you using to test this loopback model? Please note that a null-modem cable (or adaptor) must be ...

3 years ago | 0

Answered
How do i save a file into a folder in a different path?
Hi Rachel, That should be fairly straightforward. You can create: a new directory each iteration of the 'for' loop, and save y...

3 years ago | 1

Answered
How to export trained RL agent to TwinCat machine learning inference
Hi Chetan, In case you'd like to deploy your algorithm on a real-time target machine that specifically uses Simulink Real-Time ...

3 years ago | 0

| accepted

Answered
Delete application on target computer programmatically
Hi Matteo, The function "removeApplication" was introduced for that purpose in MATLAB R2022a. Furthermore, the function "remove...

3 years ago | 0

| accepted

Answered
Why I can not save all the simulation data using to workspace in simulink's external mode?
Hello Amina, I do not recommend using the "To Workspace" block to log data in Simulink Real-Time. If you're using MATLAB R2020a...

3 years ago | 0

Answered
Variable Length Windows Real-Time Target UDP Receive Block
Hi Arne, That should be possible in my opinion. I would define the maximum expected size in your UDP receive block, and then di...

3 years ago | 0

Answered
If development computer is target computer, how can I built the connection?
Hi Wilson, You must have two separate devices to use Simulink Real-Time: one host/development PC, and one target machine. Best...

3 years ago | 0

Answered
Can I connect Simulink Version 2022a to a Non-Speedgoat Target Machine?
Hi Kyle, I'm afraid that's not possible: only Speedgoat target machines are supported by Simulink Real-Time since R2018a. Kind...

3 years ago | 1

| accepted

Answered
Get 1st element/reading from a Real-time encoder readings
Hi Ahmet, How about using a block-based approach instead? You could for example go for something similar to this: In this ...

3 years ago | 0

| accepted

Answered
C Caller Block with Simulik Real time R2022b
Hi Daniel, Have you checked these suggestions when updating to R2020b and later? There's a number of differences in Simulink Re...

3 years ago | 0

Load more