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