My model has a parameter field that expects a record, but when I try to use WSMLink
to set it e.g.
WSMSetValues[model,{"component.recordParam" -> DotName["myPackage","myRecord()"]
I get the error
WSMSetValues::irl: The list of rules is not on the form {"variable" -> numericValue, ...}.
If I don't use DotName
and pass it as a string, it shows up as a string in the model, which will fail to compile/verify.
In addition to setting this record parameter, I will also want to be able to set the Medium of a model using WSMSetValues
. Is there a generic way of setting a parameter that handles any type via WSMLink
? Thanks.