Long variable in simulink mask gets truncated
Mostrar comentarios más antiguos
I've run into an odd problem with a simulink mask.
The mask initialisation code loads a data file and sets many of the mask variables automatically. Some of these are very large matrices (there are several large 2D lookup tables in the mask). There are a few variables which can be hand altered by the user. I have a script, matrix2param, which converts the matrix into a string, which I can then use with set_param to set up the mask every time it runs.
One of the variables is very big. Let's call it lookupDataA. When I run matrix2param on this in the command line, it truncates with:
.... Output truncated. Text exceeds maximum line length of 25,000 characters for Command Window display.
The initialisation code runs fine and the model runs fine, but when I double click on the mask to hand-edit the other parameters, lookupDataA is truncated at the same point. This means I cannot then click "OK" as I get an error pop-up.
This only becomes an issue when the mask parameters window is opened - obviously the data is intact until this point.
In the short term I can use set_param from the command line to set the other parameters.
Is there a way around this truncation? For example I would be happy to hide these parameters so they don't appear when I open the mask parameters.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Subsystems 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!