Questions tagged [xpc-target]
11 questions
4
votes
2 answers
Should I use a MATLAB Function block or normal Simulink blocks?
I have read that using an Matlab Function within a Simulink model can severely impact its performance. The recommendation is to use the MATLAB Function block instead of the Interpreted MATLAB Function block.
It's not clear to me how this applies…

oberotz
- 45
- 1
- 6
3
votes
1 answer
Matlab, Simulink, Making connection between multiple simulink models via Lan
There is a Simulink model composed of some subsystems, It is supposed to run each subsystem in a computer and all computers are connected to a LAN network.
There are interconnections between these subsystems and data shall be transferred between…

Narsis
- 31
- 1
- 2
3
votes
1 answer
Updating Simulink Block on the fly?
Is there any way to change the parameters of a block in Simulink on the fly? The model is compiled and running on a xPC-Target. I do have a subsystem (actually a lot of subsystems) and would like to load the params from several xml files and…

Palim Palim
- 31
- 1
3
votes
1 answer
Receive Matlab/simulink UDP blocks in other software
Can we send Matlab/Simulink UDP blocks to other software like eclipse ? could eclipse read/use that for building android apps ? How should I do that ?
when sending data through UDP Send block of an xPC target it packed in binary I think , how can we…

Aida E
- 1,108
- 2
- 22
- 40
2
votes
3 answers
Running a Simulink xPC block at a faster rate than the continuous rate
I have a Simulink xPC target application that has blocks with discrete states at several different sample rates and some sections using continuous states. My intention on keeping the continuous states is for better numerical integration.
What…
Ian Garcia
1
vote
1 answer
Is sparse matrix-vector multiplication available in Simulink/xPC?
I am trying to make my control algorithm more efficient since my matrices are sparse. Currently, I am doing conventional matrix-vector multiplications in Simulink/xPC for a real-time application. I can not find a way to convert the matrix to a…

tmar89
- 33
- 1
- 6
1
vote
3 answers
How do I change Simulink xPC target serial comm speed on the fly
I have an xPC target application that talks to a device over RS-232. I am using the xPC serial block for this.
To talk to this device I first have to start at a default speed, say, 9600 bps, request a change of speed to, say 57600 bps, then change…
Ian Garcia
1
vote
0 answers
call c# function in XPC target of simulink
Is there any way to use C# function in XPC target of matlab. If yes, please let me more about how?
Thanks
hadi

hadi
- 11
- 4
1
vote
3 answers
how to force an application to run in one core and no other applications run in that core on windows?
I think my questions are unusual, but I wanna work on real time targeting in MATLAB Simulink, but I don't want to use XPC target. I just want no interrupt on the program (simulink) when it is running in order to have a real time interruptless…

adel darbandi
- 21
- 2
1
vote
1 answer
Renaming xPC Target data files after stopping model
I am logging data using a File Scope on my target PC. To prevent loss of data, I would like to rename the files once the model has stopped running.
I read this post about renaming files on…

abroekhof
- 796
- 1
- 7
- 20
0
votes
1 answer
Simulink's Real Time Windows Target Serial communication
I have a project in which I interface the RTWT library (Simulink) with a PIC micro controller. I want to send commands from Simulink to the controller (i.e. letters such as "A", "B", etc). On the micro controller side, everything is ok.
My question…

Malik Mohrat
- 11
- 3