|
API for User Written Fixed-Point SFunctions 1.0 File ID: 81313 |
---|
|
| API for User Written Fixed-Point SFunctions 1.0 License: Shareware File Size: 307.2 KB Downloads: 6
Submit Rating: |
|
|
|
API for User Written Fixed-Point SFunctions 1.0 Description |
---|
Description: API for User Written Fixed-Point and Floating-Point S-Functions. A supplement to Release 13 of Simulink and Fixed-Point Blockset.
Version 0.9.0 Beta 1 January 8, 2003
Feedback on this beta should be sent to Andy Bartlett The MathWorks, Inc. 3 Apple Hill Natick, MA 01760 Andy_Bartlett@mathworks.com
This zip file contains the files users need to write Simulink C S-Functions that directly handle fixed-point data types. The API is compatible with Release 13 and beyond. These file should be expanded into a user selected directory. This directory does NOT need to be under MATLABROOT.
All the files are covered by: Copyright (c) 1984-2003 The MathWorks, Inc. All Rights Reserved.
This supplement is compatible with Release 13 and later.
MATLAB Version 6.5 (R13) Simulink Version 5.0 (R13) Fixed-Point Blockset Version 4.0 (R13)
In Release 14, this API will be formally included in Simulink. It is expected, but not guaranteed, that if a Fixed-Point S-Functions is compiled in Release 13 using this supplement, then the DLL, aka share object, will work without modification in Release 14. If the S-Function is recompiled in Release 14, then care should be taken to recompile using the latest API files and not the API files included in this zip. When recompiling, it should NOT be necessary to modify the S-Functions source code; the API will be backwards compatibile.
The API for use in Simulink is described in the main header file.
fixedpoint.h
The API for use in the TLC phase of Real-Time Workshop Code Generation is described also.
tlc_c/fix_published.tlc
The method of compiling user written fixed-point s-functions is described in.
mex_sfun_user_fxp_examples.m
The C source files for several examples are given.
sfun_user_fxp_*.c
The corresponding TLC files are also given.
tlc_c/sfun_user_fxp_*.tlc
Models that demostrate the example sfunctions are supplied.
fxpdemo_sfun_user_*.mdl For Windows and Linux only, the executables are included in this zip file. For other platforms, users must mex the files themselves using mex_sfun_user_fxp_examples.m.
sfun_user_fxp_*.dll sfun_user_fxp_*.mexglx
A private file necessary for compiling the sfunctions is also given. No direct use of the contents of this file should be made. Direct use of the contents will create sfunctions that are not forward compatible with future Simulink Releases. fixedpoint.c License: Shareware Related: tlc cfix publishedtlc, method, Generation, Workshop, Realtime, Compiling, written, Examples, mex sfun user fxp examplesm O/S:BSD, Linux, Solaris, Mac OS X File Size: 307.2 KB Downloads: 6
|
|
More Similar Code |
---|
LongDecimal provides a numeric type for fixed point arithmetic, similar to (but with more features) Java's BigDecimal, but different from Ruby's BigDecimal. Such a numeric type allows controlling how rounding is performed, for example for finance apps.
An XML API for Ruby written in C, using only Ruby native data types internally. Parses/generates XML, automatically pretty printing and en-/de- coding characters. Transmutates XML attributes to/from objects. Find node paths via strings or regex...
This simulation illustrates the effects of the fixed-point computations on the closed-loop precision for a 16-bits PID controller. The rounding mode, the point where the truncations take place and the format width for the internal...
An essential step in embedded software development, floating- to fixed-point conversion can be tedious, labor-intensive, and error-prone. System engineers frequently design algorithms in floating-point math, usually double-precision. This format...
A fixed point math header-library for C, under a liberal license.
The effect of fixed-point arithmetic in 16-bits PID controller C routines on the closed-loop precision is shown in this Simulink model.
Two Simulink blocks that implement single and double precision 16-bits PID C routines are...
There are challenges to face when programming in fixed-point code manually. Similarly, care is required in automatically generating fixed-point code. The developer must pay attention to design tradeoffs, namely: accuracy, efficiency, ROM, RAM,...
There are challenges to face when programming in fixed-point code manually. Similarly, care is required in automatically generating fixed-point code. The developer must pay attention to design tradeoffs, namely: accuracy, efficiency, ROM, RAM,...
Here i share my experiences working with fixed point modelling of real time embedded control systems as well as porting the same to ECU. A brief picture of background of fixed point coding and modelling is also given. This document will serve as a...
The Fixed Point Method is applied to a given function.
Convergence conditions are as followed: f(xa)=0 (=) xa=g(xa) => xa[n+1]=g(xn), n=0,1,.. Error majoration: |e(xk)| <= L^k/(1-L)*|x1-xo| Choice for inicial... |
User Review for API for User Written Fixed-Point SFunctions |
|