Community Profile

Rajiv Ghosh-Roy


The MathWorks, Inc.

84 total contributions since 2012

Contact

Rajiv Ghosh-Roy's Badges

Contributions in
View by

Submitted


Disabling SMIs on Intel(R) ICH5 chipsets
Avoid CPU overloads with xPC Target(TM) on Intel(R) chipsets by disabling SMIs

1 month ago | 2 downloads |

Thumbnail

Answered
Copy file to target in C - Simulink real-time
You will have to use the C/C++ API to do this; it should be documented. However, there is no function in that API to copy a file...

2 months ago | 0

Answered
How to ignore all MAC addresses except one address, when using Network boot for Simulink Real Time?
The typical usage of network boot is for a dedicated network; in other words, via a second Ethernet card on the development comp...

1 year ago | 0

| accepted

Answered
Simulink Real-Time Host Scope
You can add labels ("signal names") to the signals feeding the scope. As long as these labels are unique, they should be display...

1 year ago | 0

Answered
Call M File In SIMULINK Model
You can use the |Interpreted MATLAB function| block for this; it can be found under the |User defined functions| category in the...

2 years ago | 1

| accepted

Answered
calling xPCOpenTcpIpPort when xpc target is running
The most likely cause of this is that you have an open connection from another application, mostly likely MATLAB itself. If y...

2 years ago | 0

Answered
How to reboot the xpc target with out Matlab installed in Host machine.
You can use the xPC Target (now Simulink Real-Time) API to either create a C or .NET application that reboots the target.

2 years ago | 0

| accepted

Answered
Simulink compiler NMAKE : fatal error U1077 '0x2'
Are you sure you have |xpctarget.tlc| set as your system target file? If not, it won't be able to find the correct header files....

2 years ago | 0

Answered
Error: -16 Access Denied on xPc Target
You are correct in guessing that the file is not closed properly. You need to change the |fclose| call in h=fsys.fopen(...

2 years ago | 0

Answered
Simulink Real-time Target screen stops responding but model is running
Were you doing something prior to the "freeze"? Perhaps getting a capture of the target screen? Prior to getting a screenshot, t...

2 years ago | 0

Answered
What does the command 'SimulinkRealTime' mean when logging data with a file scope?
The command is not |SimulinkRealTime|, but |SimulinkRealTime.target|. You should find this documented as well as in the MATLAB h...

2 years ago | 1

Answered
Writing File with xPC Target using xPC Target format
When the application is stopped, you can transfer the new file (with the same name) before starting the application. If you are ...

2 years ago | 0

Answered
Online data display and aquisition
If you are looking to get time histories of data, you will need to use a host scope block. This can store a buffer of data. When...

2 years ago | 0

Answered
Is it possible log an undefined amount of data with an xPC Target File Scope?
You do not need to know how many points you will need to log. The number of samples (default 250, as you note) is most relevant ...

2 years ago | 0

| accepted

Answered
Matrix times vector with Simulink
How are you getting the results (i.e. where does M come from)? Remember that Simulink will execute the multiplication once every...

2 years ago | 0

Answered
saving datas in xpc target pc
To be supported with xPC Target, the hard disk needs to be formatted as FAT32. You can also log data to RAM from your model, unl...

2 years ago | 0

| accepted

Answered
Update simulink block parameters on xPC target
Certain parameters are not tunable. From the examples you gave, it appears that these are not. For instance, for the number of s...

2 years ago | 0

Answered
How can I hide signals in simulink so that they do not show when using xPC Target.
There is no easy way to the exact thing you are looking for. You can play with the optimization options |Block Reduction|, |Sign...

2 years ago | 0

Answered
xPC stream values from memory during run
You could use the "From Workspace" block from Simulink/Sources. On generating code, this will cache the values in memory and the...

2 years ago | 0

Answered
xPC Target in Freerun mode: extra long sample time
In addition to the other replies, Freerun mode simply runs the model as fast as it can and does not attempt to get real-time (==...

2 years ago | 0

Answered
How to save modify model in simulink
You are within the MATLAB installation directory; you would need to change to a directory where you have write permission. Be...

3 years ago | 0

Answered
Is it possible to visualize things happening on a target computer in (close to) real time on the Host?
If you are looking at instantaneous values, check out the getsignal method of the xpc object. In other words, tg = xpctar...

3 years ago | 0

Answered
When I run this code my fibonacci sequence is missing a beginning 1. Can someone please tell why it is doing this and how I can fix it?
You initialize a(1) to 1 and a(2) to 1, but then on line 7 you run a = 1:z; This changes a(1) to 1 and a(2) to 2. You c...

3 years ago | 0

Answered
How do I find the X and Y coordinates of a particular pixel in an image?
If you want to do it interactively (e.g. with a mouse), use the function |ginput|.

3 years ago | 0

Answered
Simulink Scope Plot Running Faster Than Simulation
Simulink does not run in real-time. The Simulink model will execute one step of your model, and then immediately move on to the ...

3 years ago | 0

| accepted

Answered
Is there a simple way to change sampling rate of multiple blocks in Simulink?
Please see the functions |find_system| to list blocks within your model. You will need to know the name of the parameter for sam...

3 years ago | 0

| accepted

Answered
Problem with c code (joystick)
At first glance, the two lines #define MDL_CHECK_PARAMETERS /* Change to #undef to remove function */ #if defined(MDL_CH...

3 years ago | 0

Answered
Generate Random Sample of 0's and 1's
How about a = rand(1, N) < p This creates a random vector of size N, and the < will return 1 if true, 0 if false.

3 years ago | 3

Answered
Simulink coder does not compile. Returns an error "Unable to locate specified compiler for xPC target"
You need to use the function |xpcSetCC| to set up your compiler. The fact that the mex setup does not detect your compiler is a ...

3 years ago | 0

Answered
XPC Target - SDK - Compiler
It looks like the compiler is not installed properly. You could try re-installing, or trying another version of the compiler.

3 years ago | 0

Load more