|
|
IPROM Development Resources
If you would like to participate in the development of Iprom, please let me know!
I'll just list a few issues that temporarily tripped me up when I was
implementing the basics of IPROM. This is an unstructured as well as
incomplete collection of issues that developers may face. I hope to
revise and expand this document in the future.
- By default, IPROM treats all data as vectors of type
double,
i.e., it does not use Simulink's type checking capabilities that appears in
Version 5. The rationale is that type checking would steepen the learning
curve for students without programming experience, while potential problems
from lack of type checking seem rather benign. All blocks involving boolean
data should work with a data type mode of Logical.
- When implementing S-functions for new IPROM blocks, start with the
file
ipromtmpl.m rather than sfuntmpl.m. The
differences between the two are minimal, but ipromtmpl.m
avoids some sampling time issues that may arise if you work straight
from sfuntmpl.m. On a related note, all blocks should be
set to inherit sample time.
|