Why do I receive an error message “Invalid structure-format variable” when using System Test 2.5 (R2010a)?

8 views (last 30 days)
I have developed a Simulink model that has two dimensional Input ports.
While testing the model with the input from an Excel sheet that has data in the form of two dimension arrays using System Test Desktop, I get the following error message:
Invalid structure-format variable specified as external input in 'Bleed_Source'. The structure's 'dimensions' field must be a scalar or a vector with 2 elements. In addition, this field must be compatible with the dimensions of input signal stored in the 'values' field.
You can reproduce the error by downloading the following files:
Bleed_Souce.mdl
TestCase_Bleed_Source.xlxs
Test1.test

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 22 Jul 2010
System Test cannot read the second column’s header in order and hence errors out while reading form the TestCase_Bleed_Source.xlxs file. System Test expects headers to be used when you have a single column vector. You would need to remove the headers in all the Excel file columns to get System Test for multidimensional inputs. Refer to the attached TMWTestCase_Bleed_Source.xlsx file.
Once the headers are removed, use different columns for each vector in the same Excel sheet and use the option for "Treat each sheet as a test vector value” under "Data Selection" of the "Insert Test Vector" option in System Test Desktop . Refer to the attached TMW.test file. Each row of the Excel sheet now depicts all the values needed by Simulink at any given point of time.

More Answers (0)

Tags

Products


Release

R2010a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!