MATLAB Answers

0

I want to specifiy a Autosar.Signal with the Attribute "needsNVRAMAccess" in a m-file. How is this possible?

Asked by Simon Braun on 15 Feb 2016
Latest activity Answered by Laura Biggs on 9 Mar 2016
My code looks like:
Temp = AUTOSAR.Signal;
Temp.StorageClass = 'PerInstanceMemory (Custom)';
Temp.DataType = 'T_I_A_1048576_1_s32';
Temp.InitialValue = '0';
Temp.Max = 2000;
Temp.Min = -2000;
Temp.Dimensions = evalin('base','1');
Temp.SamplingMode = 'Sample based';
Temp.Complexity = 'auto';
Temp.Description = 'Average quiescent current';
Temp.DocUnits = 'A';
How can set Attribute "needNVRAMAccess" to this signal within the m-file?
Thanks for the help!

  0 Comments

Sign in to comment.

1 Answer

Answer by Laura Biggs on 9 Mar 2016

You can use:
Temp.CoderInfo.CustomAttributes.needsNVRAMAccess = false

  0 Comments

Sign in to comment.