Rank: 987 based on 133 downloads (last 30 days) and 8 files submitted
photo

Mikhail

E-mail
Lat/Long
666.0, 666.0

Personal Profile:

 

Watch this Author's files

 

Files Posted by Mikhail View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
15 Oct 2014 Screenshot Calling Shared Libraries from Simulink This paper discusses several approaches for calling shared libraries from Simulink models Author: Mikhail simulink, legacy code tool, lct, dll, lib, so 39 2
  • 4.5
4.5 | 2 ratings
18 Jul 2014 Screenshot Relativistic rocket Calculate characteristics of relativistic rocket Author: Mikhail special relativity, relativistic rocket, twins paradox, einstein 13 0
06 Jun 2014 Screenshot Diagnostic Viewer Enabler This makes Simulink "Diagnostic Viewer" menu always enabled Author: Mikhail simulink, diagnostic viewer, message viewer 8 0
06 Jun 2014 Screenshot Simulink (Embedded Coder) Target for TI Stellaris LaunchPad Simulink (Embedded Coder) Target for TI Stellaris LaunchPad Author: Mikhail simulink, embedded coder, target support, ti, launchpad, stellaris 21 1
  • 5.0
5.0 | 4 ratings
21 May 2014 Screenshot Simulink (Embedded Coder) Target for TI LaunchPad Thsi target support package allows you to deploy your algorithms on TI LaunchPad. Author: Mikhail simulink, embedded coder, target support, ti, launchpad, texas instruments 24 6
  • 5.0
5.0 | 1 rating
Comments and Ratings by Mikhail View all
Updated File Comments Rating
13 Dec 2014 Growth - Yet another Obfuscated MATLAB code Obfuscated MATLAB code where the source looks like its output, with a functional programming demo. Author: Hikaru Ikuta

10 Dec 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot

Jerome, it seems that the output from builtin dos command with '-echo' argument is being buffered in Windows native encoding, not DOS charset. Therefore the try-catch block should look something like this:

try
feature('DefaultCharacterSet', encoding);
[status, cmdout] = builtin('dos',command);
if strcmp(echoParam, '-echo')
disp(cmdout);
end
feature('DefaultCharacterSet', defaultCharacterSet);
catch exception
feature('DefaultCharacterSet', defaultCharacterSet);
rethrow(exception);
end

14 Oct 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot

Here is how you can guard it:

feature('DefaultCharacterSet', encoding);
try
[status, cmdout] = builtin('dos',command);
catch exception
feature('DefaultCharacterSet', defaultCharacterSet);
rethrow(exception);
end
feature('DefaultCharacterSet', defaultCharacterSet);

13 Oct 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot

Cool!

It is possible to subvert execution of second call to feature('DefaultCharacterSet', defaultCharacterSet); used to restore the Windows locale.

For example:
dosWithCharEncod(dir,'-echo');
feature('DefaultCharacterSet')

ans =

IBM866

So locale is not restored. Perhaps you should try-catch execution of "dos" function.

13 Oct 2014 DOS In Translation Execute DOS command and return output with good character encoding Author: Jerome Briot

My previous comment is gone for some reason.

Here's how you can avoid invoking cmd to detect encoding:

loc = feature('locale');
encoding = loc.terminalEncoding;

Comments and Ratings on Mikhail 's Files View all
Updated File Comment by Comments Rating
11 Dec 2014 Calling Shared Libraries from Simulink This paper discusses several approaches for calling shared libraries from Simulink models Author: Mikhail arwa

how can i open these attachments ??
simlib_test_dyn.slx
simlib_test_mlf.slx
simlib_test.slx
simlib_test_sf.slx
simlib_test_ert.slx
simlib_test_callert.slx
simlib_test_mls.slx

14 Oct 2014 Calling Shared Libraries from Simulink This paper discusses several approaches for calling shared libraries from Simulink models Author: Mikhail Matthew

A good tutorial. Nice coverage of six (or seven) different ways to use c shared libraries in Simulink/Matlab.

28 Jul 2014 Simulink (Embedded Coder) Target for TI Stellaris LaunchPad Simulink (Embedded Coder) Target for TI Stellaris LaunchPad Author: Mikhail shiguang wen

that's great!

18 Jul 2014 QNX Target Support Package for Embedded Coder This target support package allows you to deploy your algorithms on QNX RTOS. Author: Mikhail Mikhail

Hi Michael,

To activate C++ compiler, line 12 of qnxtools.mak should read:
DEFAULT_OPT_OPTS = -lang-c++

For more details, see here: https://github.com/kyak/qnx_ert/commit/ba5b4980928d4a23c55a752e963884aef4a40873

18 Jul 2014 QNX Target Support Package for Embedded Coder This target support package allows you to deploy your algorithms on QNX RTOS. Author: Mikhail Michael Wiescholek

Thank you Mikhail,

Your package helped a lot, however what changes in the template make file do I have to make to support C++ like the Package for VxWorks?

Contact us