How can I change the data access of a storage class Get/Set?

4 visualizaciones (últimos 30 días)
Rusczak
Rusczak el 23 de Oct. de 2017
Comentada: Rusczak el 26 de Oct. de 2017
I'm building a custom storage class package (cscdesigner) and I'd like to create a GetSet type that returns a pointer.
In order to do that, I'd need to modify the Data Access from Direct to Pointer or Instance Specific, but the CSCDesigner doesn't allow me to do this.
Any suggestions?
thanks

Respuestas (1)

Julia Antoniou
Julia Antoniou el 26 de Oct. de 2017
This is possible if you are able to change the type of your "GetSet" custom storage class (on the "General" tab of the CSCDesigner). If the type is set to "AccessFunction", you cannot change the data access field. If the type is set to "unstructured", you can change the data access field to "Pointer" or "Instance specific". If the type is set to "FlatStructure", you can change the data access field to "Pointer".
  1 comentario
Rusczak
Rusczak el 26 de Oct. de 2017
Yes, but in this case you won't have a GetSet method. The pointer you're including will have to be global. Right? It would be same method if I select mpt.signal and and import from file/pointer method. My question is if there is a way to enable the field "data access" when I'm using a AccessFunction.
thanks

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by