Solutions for Matlab Simulink and RTW
Thursday, 24 July 2008
 
  Home arrow Tutorials  
Home Consulting Tutorials Downloads Matlab Snippets Code Candy Contact Links
Tutorials
Simulink & RTW Legacy Code & Device Driver Tool Print E-mail
Written by Brad Phelan   
Sunday, 22 January 2006

XTargets Embedded Blockset is an assistant for integrating automatically generated code from Real Time Workshop with your handwritten code and device drivers.

 Case Study : Developing device drivers for Real Time Workshop targets.

 I want to call a function that reads data from a hardware buffer and provides the data to a Simulink Signal. I also want the error code generated by that function. My function prototype is

word  read_buffer(byte * data, unsigned int data_length)

and I want a block that looks like the diagram below to interface to it.

The traditional Simulink solution to this is to become very familiar with three different programming languages with at least two complex API's to master. When and if you succeed you will have 50 to 100 lines of code written, spread over several programming languages.

 The XTargets Solution

Last Updated ( Sunday, 22 January 2006 )
Read more...
Objects & Nested Functions Print E-mail
Written by Administrator   
Thursday, 15 December 2005

For my unit test tool I wrote a bit of magic that allows you to do object oriented like things with nested functions. Fairly soon after I discovered nested functions I realized the dual between objects and NF's. An object is really just a set of nested functions over a common scope.

Last Updated ( Thursday, 15 December 2005 )
Read more...
MUnit: Matlab Unit Testing Print E-mail
Written by Administrator   
Tuesday, 01 November 2005

MUnit is a powerfull and easy to use testing framework for Matlab. It provides you with a simple way to write tests and an interactive testing environment.

The testing framework is controlled from a control panel where you manage all your test files. From the control panel you can.

  • Create and bookmark new test suites.
  • Start the matlab editor to edit your test suites.
  • Run the test suites
Last Updated ( Saturday, 10 December 2005 )
Read more...
MTemplate: Matlab Code Generation and Text Templating Print E-mail
Written by Administrator   
Tuesday, 01 November 2005
  MTEMPLATE_COMPILE
 
  fun = mtemplate_compile( template, preserve_whitespace )
 
  Compiles an m template and returns a function handle to
  use that function.
 
 
Last Updated ( Saturday, 10 December 2005 )
Read more...
Matlab 2 Matlab : Distributed Computing Toolbox Print E-mail
Written by Administrator   
Thursday, 16 June 2005

New Build 3.1.2 - 13 July 2005
--------------------------------

 The XTargets Matlab 2 Matlab Toolbox allows you to create a grid of
 matlab computing resources. There are three steps involved.

    (1) Create the grid engine server which allows registration,
        querying and acquisition of remote matlab resources.

    (2) Computing resources can register ther availibility with the grid
        engine.

    (3) The client machine can request handles to remote matlab computing
        resources from the grid engine.

    (4) The client machines uses the remote computing resources

Last Updated ( Friday, 11 November 2005 )
Read more...
<< Start < Prev 1 2 Next > End >>

Results 1 - 9 of 11
Sponsored by

Sole Central

Your one stop shop for Birkenstock shoes and sandles.