MATLAB: Do the Ideal Translational/Rotational Motion Sensor blocks in Simscape 3.7 (R2012a) crash when their initial values are set to non-numeric data types

crashdataidealmechanicalmotionsensorSimscapetype

I am developing a model in Simscape 3.7 (R2012a) in which I am using Ideal Translational and Rotational Motion Sensor blocks.
All my initial data is kept in a structure — let us call it testStruct. So, for instance, the initial angle of a particular body being sensed would be defined as follows:
testStruct.theta0 = pi/4;
If I set the initial angle, or initial position, of these sensor blocks to 'testStruct', I know that this is incorrect. However, instead of throwing an error message this causes Simscape 3.7 to crash.
This also occurs with things like cell arrays, and in general other data types that cannot be resolved to numbers.

Best Answer

This bug has been fixed in Release 2012b (R2012b). For previous product releases:
This is a bug in Simscape 3.7 (R2012a). The only workaround is to avoid using non-numeric initial values.