custom channel configuration
Use a script of MATLAB code to setup up a custom channel configuration. (see Custom Code Limitations)
Advantages
|
Example
When clicking the "Template" button, the generated template gives more information about the required outputs and available inputs of the script.
Weave Test example:
% Available data: % - IN_TESTID: [1xN char] ID of the current test/maneuver % - IN_FILENAME: [1xN char] Absolute path to the current data file % % Required data: % - OUT_DATA: [1x1 struct] Data for the evaluation process. This % data struct must have all the necessary fields for % the test evaluation (see user guide for more details). % Each field must contain a corresponding 1D vector % with double values. % % Since MXeval is developed in MATLAB R2015a (8.5.0), only MATLAB % functions, that run particularly in this version, are permitted! % % Please note: The data cropping will still be done according to the setup % in MXeval! When you resample your data, do not use the crop editor in MXeval, % use the custom function ccc_cropData instead! % % All channels must be a 1D double vector with the same size. % The test "VD: Weave Test" requires the following channels (fieldnames): % % - Time s 1xN Time % - SWA deg 1xN SW Angle % - SWT Nm 1xN SW Torque % - YawRate deg/s 1xN Yaw Rate % - LatAcc m/s² 1xN Lateral Acc. % - RollAngle deg 1xN Roll Angle % - RollRate deg/s 1xN Roll Rate % - SSAngle deg 1xN Sideslip Angle % - LatTirFor N 1xN Lateral Tire Force tmp = load(IN_FILENAME); OUT_DATA.Time = tmp.Data.Time.data; OUT_DATA.SWA = tmp.Data.StwAngle.data * 180/pi; OUT_DATA.SWT = tmp.Data.StwTorque.data; OUT_DATA.YawRate = tmp.Data.YawRate.data * 180/pi; OUT_DATA.LatAcc = tmp.Data.LatAcceleration.data; OUT_DATA.RollAngle = tmp.Data.RollAngle.data * 180/pi; OUT_DATA.RollRate = tmp.Data.RollRate.data * 180/pi; OUT_DATA.SSAngle = tmp.Data.SideslipAngle.data * 180/pi; OUT_DATA.LatTirFor = tmp.Data.FyTire.data; |
This method allows to read in any file which can be loaded with MATLAB default functions. The data can also be preprocessed and plotted for validations within this code.
Custom functions
MXeval provides a library of different functions, specifically coded for the custom channel configuration scripts
See Custom Functions