Contains information about UserIO. More...
#include <mbs_user_interface.h>
Public Attributes | |
int | n_in |
More... | |
int | n_out |
More... | |
int * | size_in |
More... | |
int * | size_out |
More... | |
double ** | ptr_in |
More... | |
double ** | ptr_out |
More... | |
char ** | name_in |
More... | |
char ** | name_out |
More... | |
Contains information about UserIO.
This structure is intended to automate the treatment of UserIO, in particular for copying that from/to input/output port of Simulink S-function block.
int n_in |
Number of user input port.
int n_out |
Number of user output port.
char** name_in |
Name of each user input port.
char** name_out |
Name of each user output port.
double** ptr_in |
List of pointers to each user input values.
First index is the index of the input port. Second index is the index of the value in the input port.
ptr_in[i][0] : pointer to the 1st element of the i-th input. ptr_in[i][1] : pointer to the 2nd element of the i-th input (if size_in[i] >= 2).
double** ptr_out |
List of pointers to each user output values.
First index is the index of the output port. Second index is the index of the value in the output port.
ptr_out[i][0] : pointer to the 1st element of the i-th output. ptr_out[i][1] : pointer to the 2nd element of the i-th output (if size_out[i] >= 2).
int* size_in |
The size of each input port.
The size is the number of element in the port.
size_in[i] = size of i-th user input
int* size_out |
The size of each output port.
size_out[i] = size of i-th user output