Thank you for your response! Using that tag directly does not work: If I pass the contents to my Stateflow and try to index using the names of the constants (e.g. Task_Wide_Parameters[MEAN_VELOCITY] or Task_Wide_Parameters[START_TARGET_ROW]), a value of 0 is obtained at every index even if other values have been specified for those parameters. I have been trying to use the data from the tag and convert it to a format which will allow me to read the task wide parameters using those constant names.
Hm, did you set First index = 1 for the input port?
Outside the Stateflow, you can use a Selector and use the constant names ie. [MEAN_VELOCITY START_TARGET_ROW] but that’s a bit awkward if the point is to use the indexing in Stateflow.
The Tag should work, it is a vector with the contents of the Task Wide Parameters. You could put a scope on it and then just try using numbers instead of constant names to debug. For example, you could see on the scope what the second task wide parameter is and then visually compare it to Task_Wide_Parameters(2) in Stateflow
Thank you for your response! Using that tag directly does not work: If I pass the contents to my Stateflow and try to index using the names of the constants (e.g. Task_Wide_Parameters[MEAN_VELOCITY] or Task_Wide_Parameters[START_TARGET_ROW]), a value of 0 is obtained at every index even if other values have been specified for those parameters. I have been trying to use the data from the tag and convert it to a format which will allow me to read the task wide parameters using those constant names.
Thanks, I will try that!
Please login or Register to submit your answer
Update: issue resolved. Thanks!