create a bus object in simulink to match structure defined by some c code
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
loubna ibnou fairouze
am 6 Nov. 2019
Beantwortet: loubna ibnou fairouze
am 7 Nov. 2019
hello,
I am trying to create a bus object in simulink that matches the description of a structure object. the structure definition is in a header file that I integrated using a c caller block. I used a buss to vector bloc to make the convertion between a 3 variables bus to a vector. but I get the following warning 'The input bus to block 'Bus Creator1' does not match the bus specified by the bus object 'VECTOR3_st' on the block dialog : Signal 'vabc' does not match the name 'VECTOR3_st.Values' of the corresponding bus element in the bus object.
![Capture10.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247084/image.png)
my structure is defined as follows:
typedef struct VECTOR3_
{
double Values[3];
}VECTOR3_st;
how do I create the bus object?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!