Text variables, matlab bridge

Hi Chris,

We’re using MWorks 0.6 for this. When we use a text variable that has the value ‘’ (the empty string), its value doesn’t seem to be passed to the MATLAB bridge on the first trial when all variable values are passed to the bridge.

Not sure what the right behavior is - I could see an argument for ignoring variables whose value is the empty string, but it would be better for us if it were passed. Not a huge deal one way or the other - I’m now using ‘None’ as a blank value.

Mark

Hi Mark,

The attached example works for me. Every time I run the experiment, values has another empty string appended to it.

Remember that the MATLAB bridge only sends the values of variables that have changed between sync on and sync off. Unless your string variable starts out non-empty and is then set to empty, it won’t be sent to your script.

Chris

Attachments: