File Exchange

image thumbnail

Files Associated with the Video "Creating a Simulink Block Using MATLAB Code"

The files in this submission are used in the video "Creating a Simulink Block Using MATLAB Code"

11 Downloads

Updated 01 Sep 2016

View License

This contains the following files:
README.txt - a text file that explains how to get the C++ driver code that will be used in the MATLAB class and where to put it
TouchSensor.m - a MATLAB class derived from the matlab.System and coder.ExternalDependency classes
touchSensor_wrapper.cpp - a C wrapper file for a C++ driver
touchSensor_wrapper.h - a header file that defines the prototypes for the C wrapper functions
TouchSensor.png - an image used on the mask of the Simulink Block created using the MATLAB class
getTouchSensorRootPath.m - a MATLAB function that will return the location to which this folder is extracted
Creating a Simulink Block Guide.pdf - a document that explains the steps used to create a Simulink block from the MATLAB class and C/C++ code
While the example used required Embedded Coder and many other products, the process can be used with only MATLAB and Simulink installed.

Comments and Ratings (3)

V D

@sandhya, I have created the following question on MATLAB Answers for you:

http://www.mathworks.com/matlabcentral/answers/180600

sandhya

Can you please explain the process of creating simulink block for a hardware whose .dll file is provided?

thanking you in advance

Updates

1.0.0.1

Updated license

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux