Page 1 of 1

Strings Not being read properly during simulation

PostPosted: Tue Mar 02, 2021 12:52 pm
by ohs18
Hi,

I am running a simulation where I run an activity diagram that passes a block's value properties into a matlab function called by an opaque behavior. Most of the value properties I am passing are integers, but I am also trying to pass a couple string value properties as well. When I run the simulation, I can see the Name and the default value properly display in the variables pane. For example, I have a value property called "location" with a default value of "United States" which is of type string. However, when I type the the variable name in the command window with Matlab as the language, it displays as "[]", which I am assuming is an empty array. I'm not sure why this is happening or how to fix it, so any help is greatly appreciated.

Thanks

Re: Strings Not being read properly during simulation

PostPosted: Mon May 02, 2022 1:10 pm
by BB_
Hello. In version 19.0, Cameo cannot pass strings between itself and MATLAB. I've heard this is fixed in newer versions but I have not tried so I cannot say for sure. I've been converting strings to bits to pass between the two and then reassembling them into strings on the receiving end.

Re: Strings Not being read properly during simulation

PostPosted: Thu Apr 20, 2023 11:15 am
by pete.paraska@jhuapl.edu
Does anyone know if the passing of String type values in Cameo through Simulation Toolkit into Matlab has been fixed in 2022x or if there is some trick to doing it?