In the 'Target Language Compiler Directives' section of the Real Time Workshop documentation, it is mentioned that '<DWork>/name' must be used for the definition of 'rollVars' (roll variables) to create the roll structure for a specific DWork vector, 'name'. However, when I use this directive, a variable is created for every DWork vector present in the block instead of only for the specific DWork vector.
MATLAB: Does Real Time Workshop create a variable for each DWork vector, instead of only for the specified one, when using the %roll directive
directivedworknamerollsimulink coderspecifictlcvector
Related Question
- How to specify the identifier of the DWork vector when writing an S-function in Simulink 6.4 (R2006a) such that on code generation it is accessed via its identifier and not as a field of the DWork structure
- Is there an example of using DWork vectors to store discrete states in Simulink
- Is there an example for using Work vector in a MATLAB file S-Function in the documentation in Simulink 6.2 (R14SP2)
- Can I tune parameters that are structures when I generate a S-function from a subsystem using Real Time Workshop 4.1 (R12.1)
- Question about S function
- Do I have an error when sizeof is used in a preprocessor directive
- How can we generate code for a C-MEX S-Function using custom datatypes with Simulink Coder
- What board support and device driver blocks are provided with Real-Time Workshop
Best Answer