Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-2007, 05:51 AM
bagmol bagmol is offline
Newbie
 
Join Date: Sep 2007
Posts: 1
Rep Power: 0
bagmol is on a distinguished road
Default Lines in a Simulink/Matlab model

I need som help with lines in a Simulink model. I need to find out all existing lines and their starting- and destination blocks for a specific model.

If you view the model file as text you will find information about the lines at the bottom for example

-------------------
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
-------------------
I need the information "Add" and "Gain" and I need to get it only using matlab commands.

I know for example I can do:
> l = get_param('mymodel','Lines')

ans =

4x1 struct array with fields:
Handle
Name
Parent
SrcBlock
SrcPort
DstBlock
DstPort
Points
Branch

So I have 4 lines all with the above properties. But if I try to get the SrcBlock information like this:
>l(1).SrcBlock

ans =

6.0012

all I get is a number wich I guess is the handle but that is not what I need, I need the name the SrcBlock have in the model.

Any help in this matter is appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue writing to file: pointer to a class which contains pointers to other classes Sheemer C and C++ 0 08-21-2007 02:17 AM
Telephone lines and talking techni68 Technology Ramble 14 05-06-2007 11:46 AM
Removing lines from a file NeedHelp C and C++ 1 11-01-2006 01:10 PM
Number of Lines on a RichText Box Lop Managed C++ 3 06-16-2006 06:19 PM


All times are GMT -5. The time now is 06:01 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads