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...

mer än ett år ago | 0

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 ...

mer än ett år 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 ...

mer än ett år 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...

mer än ett år ago | 1

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...

mer än ett år 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 ...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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 ...

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år 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

ungefär 2 år 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...

ungefär 2 år 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 ...

ungefär 2 år 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...

ungefär 2 år 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 ...

ungefär 2 år 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...

ungefär 2 år 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 ...

ungefär 2 år 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...

ungefär 2 år 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...

ungefär 2 år 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...

mer än 2 år 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...

mer än 2 år 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...

mer än 2 år 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 ...

mer än 2 år 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...

mer än 2 år ago | 0

Answered
speedgoat target coputer 1
Hi William, Speedgoat target machines are expressly designed to work with Simulink Real-Time. Similarly, only Speedgoat hardwar...

mer än 2 år ago | 0

Answered
Event triggered update of simulink.parameter in model deployed to target (Speedgoat) to signal within model
Hi Derry, I would recommend modelling that behaviour, i.e., working with signal values rather than parameters. In the scenario ...

mer än 2 år ago | 1

| accepted

Answered
Simulink Realtime Add-on on Ubuntu 20.04
Hi Ehtisham, I suggest having a look at the following MATLAB Answers posts: https://www.mathworks.com/matlabcentral/answers/48...

mer än 2 år ago | 0

Load more