Prev: Recover positions in a vector\
Next: sortrows problem
From: Jesus on 6 Mar 2010 01:45 Hi everyone, I need to automate a simulation process so I plan to use SimScape along with Matlab, but there is no information available about Function References for Model Construction (like Simulink has). Does anyone know where could I find it? Or if there is at least a quick reference guide? Thanks
From: Arnaud Miege on 8 Mar 2010 08:52 "Jesus " <jramcam(a)interchange.ubc.ca> wrote in message <hmstlm$po9$1(a)fred.mathworks.com>... > Hi everyone, > > I need to automate a simulation process so I plan to use SimScape along with Matlab, but there is no information available about Function References for Model Construction (like Simulink has). > > Does anyone know where could I find it? Or if there is at least a quick reference guide? > > Thanks You can use the same functions as for standard Simulink (add_block, add_line, etc...). I have done it myself. One thing to watch out for is that there isn't a documented way of using add_line with Simscape ports. However, if you look at the documentation for port_label, which is used for masking subsystems, you should be able to infer how to use add_line with Simscape ports. Try 'doc port_label' at the MATLAB command line (without the quotes). As with everything that is undocumented, it is subject to change in future versions. HTH, Arnaud
From: Jesus on 9 Mar 2010 09:52 Thanks for your prompt response Arnaud, I have tried it and it works as you said. "Arnaud Miege" <arnaud.miege(a)nospam.mathworks.co.uk> wrote in message <hn2vf4$m19$1(a)fred.mathworks.com>... > "Jesus " <jramcam(a)interchange.ubc.ca> wrote in message <hmstlm$po9$1(a)fred.mathworks.com>... > > Hi everyone, > > > > I need to automate a simulation process so I plan to use SimScape along with Matlab, but there is no information available about Function References for Model Construction (like Simulink has). > > > > Does anyone know where could I find it? Or if there is at least a quick reference guide? > > > > Thanks > > You can use the same functions as for standard Simulink (add_block, add_line, etc...). I have done it myself. > > One thing to watch out for is that there isn't a documented way of using add_line with Simscape ports. However, if you look at the documentation for port_label, which is used for masking subsystems, you should be able to infer how to use add_line with Simscape ports. Try 'doc port_label' at the MATLAB command line (without the quotes). As with everything that is undocumented, it is subject to change in future versions. > > HTH, > > Arnaud
|
Pages: 1 Prev: Recover positions in a vector\ Next: sortrows problem |