Can I have a bus whose elements are buses with several dimensions?
Mostrar comentarios más antiguos
Hi there,
I got a header file which is something like:
struct RPO_corners
{
float cod[3];
float orient[9];
float rotVel;
float defl;
float factor;
float TTTT;
};
struct Output
{
struct Vector3 coord,
speed,
accel,
angspeed;
struct Matrix3x3 orientation_matrix;
float value;
float value2;
float value3;
float value4;
int value5;
int value6;
struct RPO_corners corners[4];
};
typedef struct Output Output_T;
typedef struct RPO_corners RPO_corners_T;
The structure Ouput is sent to a c++ app. Therefore I need to create a bus(Ouput) which contains another bus (corners[4]). I have tried to concatenate the 4 corners buses with little success. The fact that "corners" is a vector of a struct is my problem.
When I define Output_T in the bus editor, I'm assuming that I need to specify 4 dimensions for the RP0_corners bus, rite? How can I implement that in Simulink?
Thanks in advance
Respuesta aceptada
Más respuestas (2)
Ryan G
el 3 de Dic. de 2012
0 votos
A bus of busses it possible, you can try it manually using Simulink to verify yourself. It sounds like you have a bus, Output, that contains a number of values, a Vector 3 bus, a Matrix3x3 bus and a RPO_corners bus. At least that's how I would define it for Simulink purposes here.
1 comentario
Jose Martinez
el 4 de Dic. de 2012
Jose Martinez
el 4 de Dic. de 2012
0 votos
Categorías
Más información sobre Manual Performance Optimization en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
