For Programmers: Free Programming Magazines  


Home > Archive > Matlab > June 2007 > Please Help: Creating a Simulink Library Programatically









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Please Help: Creating a Simulink Library Programatically
tingspain

2007-06-29, 7:14 pm

Hello everybody,

May be my question is to simple but i am relatively new with
simulink. I am trying to create a simulink library dinamically,
reading from different directories the simulinks blocks and add them
up into the core library.

Example:

create_library.m
Actuators\act1.mdl
act2.mdl
act3.mdl
Sensors\sen1.mdl
sen2.mdl
sen3.mdl

What i would like to do, it is just a script that when i run it, it
will check all the directories of the actual location and create a
new simulink library dynamically including all the blocks found.

Final Simulink Library tree:

MyLibrary\
¦ - Actuator\Actuator1
¦ Actuator2
¦ Actuator3
¦
¦ - Sensors\Sensor1
Sensor2
Sensor3

Please Any hint how to add a block file into a library ??

Thanks in advances
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com