Why do I have a "Changing between datetime data with a time zone and data without time zone is not supported" error in Diagnostic Feature Designer ?

I am running Diagnostic Feature Designer in MATLAB R2023a on a table composed of a timetable and a fault code. 
The import works fine but when I try to plot a signal I get the error message:
"Changing between datetime data with a time zone and data without time zone is not supported". 
I noticed that all the timestamps have the same "TimeZone" property.

 Accepted Answer

Time zones are not supported within the Diagnostic Feature Designer app in MATLAB R2023a. This means that you will not be able to import and use the datetime data with time zones.
 
To work around the issue, you can remove the time zones prior to importing the data into the Diagnostic Feature Designer app.
Please refer to the following example for more details:
 
for i=1:numel(tbl.Data)
   tbl.Data{i}.timestamp.TimeZone="";
end

More Answers (0)

Categories

Find more on Predictive Maintenance Toolbox in Help Center and File Exchange

Products

Release

R2023a

Community Treasure Hunt

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

Start Hunting!