Address operator on arrays in stateflow

When I'm using c functions in stateflow. I get an error, it says"Address operator on arrays is limited to indexed array elements, e.g. &arrayVar[index]" and can't know how to solve the problem.
My C code is a function like this "void test(unsigned char* a, unsigned char* b, unsigned char* c);", and I integrated it into stateflow as"test(&data_a,&data_b,&data_c);", where data_a/data_b/data_c are 1-D arrays.
I know I can use address operator for structures in C code, but can I use this operator to arrays or matrix?
Thank you.

Respuestas (1)

Benjamin Thompson
Benjamin Thompson el 21 de En. de 2024

0 votos

Can you try using &data_a[0], &data{b[0], and &data_c[0]?

Categorías

Más información sobre Stateflow en Centro de ayuda y File Exchange.

Productos

Versión

R2022a

Etiquetas

Preguntada:

el 27 de Nov. de 2023

Respondida:

el 21 de En. de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by