|
||||||
| General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 ![]() |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
| 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 |
Goal: 100,000 Posts
Complete: 98%