Plot error using the tireData and tireModel features with a FSAE TTC files
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone,
I am writing to you here because I have several questions about the tiredata and tire model functions.
I can't plot the curves obtained in the examples :
- https://fr.mathworks.com/help/vdynblks/ug/plot-tire-model-behavior-with-imported-tire-data-for-visual-inspection.html
- https://fr.mathworks.com/help/vdynblks/ug/fit-tire-model.html.
When I load my file (.dat or .mat, FSAE TTC from Calspan), Matlab recognizes it well and loads the different values.
However, when I use this command for example
plot(tm,"Direction","alpha")
I have the followng error:
(Error using autoplot
All data sets removed due to unrecognized tire test type. Plotting function aborted.
Error in tireData/plot
Error in tireModel/plot)
The second question I have is about the values obtained.
When I import the same file with tireData (Matlab) or External File (Combined Slip Wheel 2DOF), I do not get the same values.
If you have any ideas, I thank you in advance.
17 Kommentare
Matthew
am 12 Nov. 2024
Tanguy,
Those tire model parameters are not determined by the "TireSize" property, but by the following properties:
UNLOADED_RADIUS = OverallDiameter / 2
WIDTH = SectionWidth / 1000
ASPECT_RATIO = AspectRatio / 100
RIM_RADIUS = RimDiameter / 2 * 0.0254
RIM_WIDTH = RimWidth * 0.0254
You can find this in the fit doc page, under "FitType" argument.
Hope this helps!
Matt
Antworten (1)
Matthew
am 10 Dez. 2024
Many good tidbits are in the comment history! To summarize a few:
Plotting Tire Models
Try using the "DataVariableNames" input argument to explicitly specify which data channels to plot.
Importing FSAE Data
Tire measurement data can be imported from a .MAT file by first loading the data variables and then assigning to a tireData object. Be sure to pay attention to units and coordinate systems!
% load the data into the MATLAB workspace
matdata = load("B2356run17-Corner.mat");
% instantiate an empty tireData object
td = tireData;
% the Fz channel contains negative values, so this indicates the coordinate
% system is SAE. Change the coordinate system prior to moving the data into
% the tireData object. It can then be transformed to other coordinate
% systems (like ISO).
td = coordinateTransform(td,"SAE");
% move the measurement data into the tireData object
td.et = matdata.ET;
td.alpha = deg2rad(matdata.SA);
td.gamma = deg2rad(matdata.IA);
Better yet, if you have the Calspan .DAT files, they are natively supported! Import them directly!
Interacting with VDBS Simulink Blocks
If you're moving tire model parameters in and out of VDBS blocks often, you might consider using the tireModel.set and tireModel.get methods so you don't have to export and import the TIR files.
Want to fit a tire model but don't have measurement data?
Run this command and you'll have access to example measurement data!
openExample('vdynblks/FitATireModelToTireDataExample')
0 Kommentare
Siehe auch
Kategorien
Mehr zu Wheels and Tires finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


