RE: [taste-users] TASTE Simulink Bus structure |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/taste-users Archives
]
Hi Joaquim,
thanks for the fast answer.
I have not thought about just using the bus selector, I think this solution will suffice.
My problem is just for "aesthetic" reasons, and I was wondering if I could change the ASN.1 in such a way that only the vectors are to be seen in Simulink. If I use the bus selector to just get out the vectors, both are (of course) named "<element_data>".
Thank you very much,
Michael
-----Original Message-----
From: joaquim.rosa@xxxxxxx [mailto:joaquim.rosa@xxxxxxx]
Sent: Monday, September 02, 2013 9:10 AM
To: Dumke, Michael
Cc: taste-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [taste-users] TASTE Simulink Bus structure
Dear Michael,
Imagine that you have a ASN.1 definition similar to the following:
MyType ::= REAL (-10.0..10.0)
MyArrayA ::= SEQUENCE OF (SIZE(1..3)) OF MyType MyArrayB ::= SEQUENCE OF (SIZE(1..3)) OF MyType MyInput ::= SEQUENCE{
MyArrayA,
MyArrayB
}
This will generate a input Bus in Simulink with 2 signals myarraya and myarrayb, each of these signals has two fields: element_data and length. Then you can use the Selector Block to extract the array elements giving the indexes[1 2 3] from Index Vector.
I don't know if this addresses your question, but to start it is very important to be sure that your ASN.1 definition is really representing the data types in the way you want.
Best regards,
Joaquim Rosa
ESA - European Space Agency
Joaquim Rosa
On-Board Computer and Data Handling Section Data Systems Division (TEC-ED)
ESTEC
Keplerlaan 1, PO Box 299
NL-2200 AG Noordwijk, The Netherlands
joaquim.rosa@xxxxxxx <mailto:joaquim.rosa@xxxxxxx> | www.esa.int <http://www.esa.int/> T +31 71 565 3181
From: <Michael.Dumke@xxxxxx>
To: <taste-users@xxxxxxxxxxxxxxxxxxx>
Date: 02/09/2013 08:39
Subject: [taste-users] TASTE Simulink Bus structure
________________________________
Good Morning,
I have a question concerning the interface between TASTE and a Simulink function.
I want to generate a Simulink skeleton that consists of vectors within a bus.
Let's say Input A is a Bus with two vectors a and b with each 3 elements.
At the moment if I build up such a system a and b will be generated as again busses that have each a bus element ("element_data") of size 3.
Is it somehow possible to generate a "single bus structure" and not this "double bus structure" where a and b are just vectors?
I tried using "sequence of" and "set of" but both result in the same Simulink skeleton.
If somebody has an idea I would be very grateful,
Michael Dumke
--------------------------
Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
German Aerospace Center
Institute of Space Systems | Robert-Hooke-Str. 7 | 28359 Bremen | Germany
Michael Dumke
Telephone +49 421 24420-1262 | Telefax +49 421 24420-1120 | michael.dumke@xxxxxx
www.DLR.de
This message and any attachments are intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system. Emails can be altered and their integrity cannot be guaranteed by the sender.
Please consider the environment before printing this email.