image thumbnail

updated 1 month ago

ADLX345 i2c Driver for Arduino Mega by Eddy Trinklein

This is a driver for the analog devices ADLX345 triaxial acceleration and an Arduino mega. (instrument driver, measurement, embedded code)

Arduino_ADLX345_driver_v1

image thumbnail

updated 4 months ago

MIMO-Diofantine solver by davood shaghaghi

This function solve MIMO-Diofantine equation. (control design, optimization, simulation)

mimodioph(A,B,N)

image thumbnail

updated 4 months ago

Implementation of 16-QAM algorithm in the presence of AWGN channel by Umair Nadeem

This algorithm implements the 16-QAM modulation and demodulation in the presence of AWGN channel (communications, data export, data import)

qam.m

image thumbnail

updated 5 months ago

tetris by Alfonso Martinez

juego clasico del tetris con interfaz grafica haciendo uso del mouse (tetris, gui, guide)

tetris(action)

image thumbnail

updated 6 months ago

Testing of Safety Critical Control Systems by Yogananda Jeppu

This is a presentation on testing of safety critical control systems. (aerospace, automotive, control design)

image thumbnail

updated 6 months ago

APM2 Simulink Blockset by Robert Hartley

Simulink blockset for use with the ArduPilot Mega 2.0 hardware. Includes blocks to read external rad (wireless, apm2, ahrs)

arduino.runAvrDude(hexFile)

arduino_make_rtw_hook(hookMethod, modelName, ~, ~, ~, ~)

arduino_select_callback_handler(hDlg, hSrc)

image thumbnail

updated 6 months ago

CELP codec by Sourav Mondal

This is a code to demonstrate CELP codecs of bitrate 9.6kbps and 16kbps. (celp, audio codec, lpc)

celp16k(x,N,L,M,c,cb,Pidx)

celp9600(x,N,L,M,c,cb,Pidx)

celpana(x,L,M,c,cb,Pidx,bbuf,ebuf,Zf,Zw)

image thumbnail

updated 6 months ago

solving Diofantine equation by davood shaghaghi

This function is written to solve Diofantine equation.this equation should be in the form of C = A*F (control design, optimization, simulation)

david_dioph(A,C,n)

image thumbnail

updated 12 months ago

Wave Player With Effects And Analysis by Muhammad Umair

It plays and add certain effects to a .wav file like a real media player. (wav player, convoloution, gui)

image thumbnail

updated 1 year ago

A short Simulink workshop + Hebrew presentation by Roni Peer

A short 'What is Simulink' workshop I've passed on May 1st, 2012. (control design, code generation, simulink)

start_slWorkshop_IDF(varargin)

variable_v(position,velocity)

Simulink_Workshop_Script.m

image thumbnail

updated 1 year ago

Polyspace Compiler Templates by Christian Bard

Polyspace Compiler template sets help at setup phase according to compiler and target (polyspace, setup, compilation)

image thumbnail

updated 1 year ago

OP-AMP basic circuits & filters by Sourav Mondal

Adder, Instrument amplifier, High Pass filter & low pass filter and many others (biotech, communications, data export)

Adder

HPF1st

HPF2nd

image thumbnail

updated 1 year ago

Embedded Coder Robot NXT Demo by Takashi Chikamasa

Offers an enjoyable Model-Based Design experience using Simulink models with Lego robots (control design, embedded code, simulation)

BluetoothRead(port)

BluetoothWrite(port)

InitAccessorBlock(varargin)

image thumbnail

updated 1 year ago

ECRobotInstaller – Simplified installation of tools for Embedded Coder Robot by Gautam Vallabha

Simplifies the installation of ECRobot, a Simulink platform for LEGO Mindstorms NXT code generation (embedded code, ecrobot, modelbased design)

check_ecrobot_tools

download_ecrobot_tools(downloadOption, programList)

ecrobot_install_config

image thumbnail

updated 1 year ago

Sine PWM by Vijayenthiran Subramaniam

Generating Sine PWM.Triangular wave generator is not used from library browser (sine pwm, sine, pwm)

Sine_PWM_Final.mdl

image thumbnail

updated 1 year ago

C++.NET programs inside MATLAB language by Mohammed Siddeq

run C++/C++.NET programs inside MATLAB language (communications, mathematics, image processing)

[M]=Read_Write_File_Data(X,R_W,Check_Matrix,Str)

image thumbnail

updated 1 year ago

RWTH - Mindstorms NXT Toolbox by Alexander Behrens

Toolbox for controlling LEGO® MINDSTORMS® NXT robots via a Bluetooth or USB connection. (realtime workshop, embedded code, verification)

Example_1_PlayTone.m

Example_2_ReadSoundSensor.m

Example_3_DriveAroundTable_MotorClass.m

image thumbnail

updated 1 year ago

compatible2d interpolation function with code generation by Neil Abroug

2d interpolation function that can be used with embedded coder. (embedded code, interpolation)

codegen_interp2(X,Y,Z,xi,yi)

image thumbnail

updated almost 2 years ago

Text file reader v1 by samir beneddine

This small programm can be used to read a txt file where you can put the values of some variables (embedded code, preprocess, preprocessing)

[]=readInput()

image thumbnail

updated almost 2 years ago

FTD2XX_NET_Write_GetPinStates by Roger M. Ellingson

Adds Read pin state funcionality to previously posted Test_FTD2XX_NET_BitBang demo code. (ftdi, ft232, parallel port)

FTD2XX_NET_Write_GetPinStates.m

image thumbnail

updated 2 years ago

Binary To Decimal Conversion by Said BOUREZG

Binfar2Dec.m Dec2Binfar.m Readme.m (image processing, signal processing, medical)

[DIFLcd,Tcod8]=Binfar2Dec(code)

code=Dec2Binfar(Tcod8,DIFLcd)

Readme.m

image thumbnail

updated 2 years ago

Color Model from PolySpace Verification by David Jaffry

The tool colors Simulink Model using PolySpace code verification. (simulink, verification, link)

Color_Model_From_Verification(callbackInfo) %#ok<INUSD>

sl_customization(cm)

Example

image thumbnail

updated 2 years ago

Model-Based Design for Electrical Automobile Chassis Control by Hitoshi Takeshita

You will be able to understand MBD process with Lego R/C car. (control design, automotive, embedded code)

custom_comments_example(objectName, modelName, object)

setup_nxtGTHi

xlsreadsdo(varargin)

image thumbnail

updated 2 years ago

Test_FTD2XX_NET_BitBang by Roger M. Ellingson

Demonstration of calling FTDI's FTD2XX_NET.dll BitBang functions from Matlab. (net dll, ftdi, ft245)

Test_FTD2XX_NET_BitBang.m

image thumbnail

updated almost 3 years ago

Simulink Fixed-Point Tutorial R2008a (Japanese) demo files by Yorihisa Yamamoto

"SL Fixed-Point Tutorial R2008a (Japanese)" demo files. 「Simulink 固定小数点チュートリアル (R2008a)」の例題ファイルです。 (control design, embedded code, simulink)

data_motor_pid_control.m

fixpt_autoscaling

fixpt_numerictype

image thumbnail

updated almost 3 years ago

Simulink Fixed-Point Tutorial R2006b (Japanese) demo files by Yorihisa Yamamoto

"SL Fixed-Point Tutorial" demo files. 「Simulink Fixed Point/RTW-ECを用いた固定小数点コード生成 チュートリアル」の例題ファイルです。 (control design, embedded code, simulink)

change_datatype.m

data_dcmotor.m

data_pid_fp.m

image thumbnail

updated almost 3 years ago

RTW-EC Tutorial (Japanese) demo files by Yorihisa Yamamoto

"RTW-EC Tutorial (Japanese)" Demo files. 「RTW-ECを用いた組み込み制御プログラム開発 チュートリアル」の例題ファイルです。 (control design, embedded code, simulink)

data_dcmotor.m

data_pid.m

my_dataobject.m

image thumbnail

updated 3 years ago

Hydraulic Line by Medhat K. Bahr Khalil

Part of a tool box to generalize the simulation of a hydraulic system (aerospace, automotive, control design)

HydraulicLine

image thumbnail

updated 3 years ago

Hydraulic Fluid by Medhat K. Bahr Khalil

block to simulate the effect of pressure and temperature on the hydraulic fluids. (simulation, control design, aerospace)

HydraulicFluidTP

image thumbnail

updated 3 years ago

Convert a number in Hex to uint64 by Richard Pfisterer

A workaround for HEX2DEC for large numbers where rounding error is seen. (data exploration, embedded code, mathematics)

y=hex2uint64(x)

image thumbnail

updated 3 years ago

SerialIO mex by Lorgio Teodovich

SerialIO is written in C and allows you to read/write to a serial or com port. (com, serial, embedded code)

image thumbnail

updated 3 years ago

Highly portable JSON-input parser by Nedialko

For any version of Matlab that may still be in use by the fileexchange community. (communications, data export, data import)

p_json(string)

image thumbnail

updated 3 years ago

Task execution profiling kit for Real-Time Workshop targets by David Maclay

A set of tools and examples to implement task execution profiling for a Real-Time Workshop target (embedded code, execution profiling, verification)

create_serial_driver_blocks

exprofile_get_data_from_target1(connection, varargin)

exprofile_run(connection, varargin)

image thumbnail

updated 3 years ago

Dual Core Blackfin Application Example by Mark Walker

Target both cores of a BF561 microprocessor with Real-Time Workshop Embedded Coder (realtime workshop, embedded code, verification)

csc_registration(action)

dual_core_variables.m

dual_core

image thumbnail

updated 3 years ago

Calling Lookup Tables In Stateflow by Chris Fillyaw

This example demonstrates four common methods for calling look up tables in Stateflow®. (automotive, simulink, stateflow)

covdata

covdata

image thumbnail

updated 3 years ago

Templates for Modeling Scheduling Behavior with Simulink and Stateflow ver 1p0 by Michael Burke

Templates modeling common schedule implementations (realtime workshop, embedded code, verification)

MultiRateFCB

modalStateChart

stateChartSchedwithOffset

image thumbnail

updated 3 years ago

How to Integrate Eclipse into the Real Time Workshop build environment by Michael Burke

Step by step instructions on how to install eclipse and cygwin to build Real-Time Workshop generated (eclipse, embedded code, real time workshop)

image thumbnail

updated 3 years ago

Customizing the Model Advisor by Michael Burke

Step by step instructions on how to create and manage model advisor checks. (demo, embedded code, model)

sl_customization(cm)

Check_1_Multi

Check_1_P1

image thumbnail

updated almost 4 years ago

Address Specific Parameter Custom Storage Class by Richard Ruff

MemMap: A custom storage class that allows the user to specify the memory addresses of parameters in (custom storage class, realtime workshop, verification)

MemMapVariableCheck(modelName)

csc_registration(action)

schema()

image thumbnail

updated almost 4 years ago

External I/O and State Information Block by Roger Aarenstrup

This block generates an extra file during code generation containing external Inputs, outputs an (realtime workshop, embedded code, verification)

slblocks

model_info

image thumbnail

updated almost 4 years ago

Estimating memory footprint of generated code by Roger Aarenstrup

This tool outputs the code size and data footprint for code generated with Embedded Coder(TM). (aerospace, automotive, control design)

exp_target_make_rtw_hook(hookMethod,modelName,rtwroot,templ...

get_footprint(file_path, file_names)

get_size(in_str, field)

image thumbnail

updated almost 4 years ago

Code Coverage Tool by Mark Walker

Code Coverage Tool measures C statement coverage in generated code. (embedded code, defstan, sil 61508)

cct_setup(mdlname)

html_dump(sfname,cname)

cov_example

image thumbnail

updated almost 4 years ago

class2str: creates an eval-able string containing Matlab code describing a variable by Emmanuel Farhi

Creates an eval-like string which represents a variable. Useful for saving data/INI configuration (data export, data import, embedded code)

str=class2str(this, data)

image thumbnail

updated almost 4 years ago

NXT Scanner with Lego Mindstorms NXT by Yoshiaki Banno

NXT Scanner Model-Based Design based on Embedded Coder Robot NXT. (simulink, simulation, demo)

data_communication

image thumbnail

updated 4 years ago

NXTway-GS (Self-Balancing Two-Wheeled Robot) Controller Design by Yorihisa Yamamoto

NXTway-GS Model-Based Design based on Embedded Coder Robot NXT. (model, segway, verification)

iswall(pos, map)

mywritevrtrack(varargin)

param_controller.m

image thumbnail

updated 4 years ago

NXT Ballbot (Self-Balancing Robot On A Ball) Controller Design by Yorihisa Yamamoto

NXT Ballbot Model-Based Design based on Embedded Coder Robot NXT. (simulation, robot, control design)

iswall(pos, map)

mywritevrtrack(varargin)

param_controller.m

image thumbnail

updated 4 years ago

Run m-script from outside a Matlab window by Lars Christiansen

Calls a m-script from a "dos box" without starting the Matlab GUI. Use Matlab's C-compiler. (command window, ccode, embedded code)

image thumbnail

updated 4 years ago

NXT SCARA (Two-Link Planar Robot Arm) Controller Design by Yorihisa Yamamoto

NXT SCARA Model-Based Design based on Embedded Coder Robot NXT. (ecrobot, control design, scara)

cal_cp_ptp(cp_name, ts, l1, l2)

cal_eta(eta_s, eta_f, vec_max, dt, ts)

cal_ptp(cp, pos_s, pos_f, ts, l1, l2)

image thumbnail

updated 4 years ago

SLOC counter by Danne Spencer

This script reads a C-File and counts the source lines of code. (aerospace, automotive, measurement)

get_sloc_cfile(cfile)

image thumbnail

updated 4 years ago

FWR Toolbox by HILAIRE Thibault

Toolbox for the Optimal Finite Word Length implementation of digital filters/controllers. (signal processing, control design, implementation)

Contact us