]> rtime.felk.cvut.cz Git - mf624-simulink.git/log
mf624-simulink.git
10 years agoDo not fail if mdlStart() cannot open /dev/uio0
Michal Sojka [Tue, 23 Jul 2013 14:13:21 +0000 (16:13 +0200)]
Do not fail if mdlStart() cannot open /dev/uio0

Such failing is inconvenient because mdlStart() is called even during
code generation [1]. If one tries to generate the code on a computer
without MF624 hardware, it fails.

This is solved that we ignore error in mdlStart(). When initialization
fails, we simply return from mdlStart() without reporing an error to the
user. The status of initialization is checked in every call to mdlOutputs()
and there the failres are already reported to the user.

[1] http://www.mathworks.com/matlabcentral/newsreader/view_thread/32986

10 years agoGenerate more meaningful error messages
Michal Sojka [Tue, 23 Jul 2013 13:43:18 +0000 (15:43 +0200)]
Generate more meaningful error messages

10 years agoRemove code duplication
Michal Sojka [Tue, 23 Jul 2013 13:34:39 +0000 (15:34 +0200)]
Remove code duplication

10 years agoSimplify device opening
Michal Sojka [Tue, 23 Jul 2013 13:26:34 +0000 (15:26 +0200)]
Simplify device opening

10 years agoDon't use -ansi mode for MEX compilations
Michal Sojka [Tue, 23 Jul 2013 12:39:59 +0000 (14:39 +0200)]
Don't use -ansi mode for MEX compilations

10 years agoAdd mexopts.sh
Michal Sojka [Tue, 23 Jul 2013 12:38:02 +0000 (14:38 +0200)]
Add mexopts.sh

10 years agoAdd mex makefile
Michal Sojka [Thu, 11 Jul 2013 11:26:30 +0000 (13:26 +0200)]
Add mex makefile

10 years agoFinal version of the model.
krecmich [Thu, 11 Jul 2013 09:36:59 +0000 (11:36 +0200)]
Final version of the model.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoRemoval of some testing models that were never meant
krecmich [Wed, 10 Jul 2013 13:01:39 +0000 (15:01 +0200)]
Removal of some testing models that were never meant
to be in the repository in the first place.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoFinal HW-in-the-loop model added.
krecmich [Wed, 10 Jul 2013 12:54:04 +0000 (14:54 +0200)]
Final HW-in-the-loop model added.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoChanged gate mode from low to high.
krecmich [Wed, 10 Jul 2013 12:53:09 +0000 (14:53 +0200)]
Changed gate mode from low to high.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoUpdated test model with new filename of mf624_SIMULINK.c.
krecmich [Thu, 4 Jul 2013 13:33:45 +0000 (15:33 +0200)]
Updated test model with new filename of mf624_SIMULINK.c.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoRemoved unused parameter from sfReadPWM.
krecmich [Thu, 4 Jul 2013 13:33:11 +0000 (15:33 +0200)]
Removed unused parameter from sfReadPWM.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoCorrected some minor errors in sfDigitalOutputs.c.
krecmich [Mon, 1 Jul 2013 13:46:38 +0000 (15:46 +0200)]
Corrected some minor errors in sfDigitalOutputs.c.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoMinor test model updates.
krecmich [Mon, 1 Jul 2013 12:48:56 +0000 (14:48 +0200)]
Minor test model updates.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoCreated s-functions for DigitalOutputs and for reading PWM via counters.
krecmich [Mon, 1 Jul 2013 12:48:43 +0000 (14:48 +0200)]
Created s-functions for DigitalOutputs and for reading PWM via counters.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoModified MF624 related s-functions to use single mf624_state structure
krecmich [Mon, 1 Jul 2013 12:48:01 +0000 (14:48 +0200)]
Modified MF624 related s-functions to use single mf624_state structure
declared in mf624_SIMULINK.c.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoMoved some defines from mf624_SIMULINK.c to dttomf624_SIMULINK.h
krecmich [Mon, 1 Jul 2013 12:46:42 +0000 (14:46 +0200)]
Moved some defines from mf624_SIMULINK.c to dttomf624_SIMULINK.h
to make them better accesible from s-functions.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoAdded gitignore for *.mexa64 and *.mat files.
krecmich [Fri, 28 Jun 2013 12:08:25 +0000 (14:08 +0200)]
Added gitignore for *.mexa64 and *.mat files.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoBlocks needed for control of mf624 I/O card via SIMULINK.
krecmich [Fri, 28 Jun 2013 12:05:59 +0000 (14:05 +0200)]
Blocks needed for control of mf624 I/O card via SIMULINK.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>
10 years agoFirst version of s-functions needed for opertaing mf624.
krecmich [Mon, 10 Jun 2013 10:21:12 +0000 (12:21 +0200)]
First version of s-functions needed for opertaing mf624.

Signed-off-by: krecmich <krecmich@emotor.felk.cvut.cz>