# MODELS

MODELNAME: mcb_hall_calibration_host_f28379d
PATH: examples/mcb/main/mcb_hall_calibration_host_f28379d.slx
BLOCKTYPE_FREQUENCY: 1;5;6;1;5;1;3;1;2;1;3;1;1;15;2;7;1;17;1;1;3;3;1;2;1;1;1;4;2;2;1;2;1
CHECKSUM: 9E28DFA0AD8D5F0D63635C512C6569DA
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
RX TX Hall Sequence Calibration Host   Copyright 2020-2023 The MathWorks, Inc.  Prerequisites: 1. Deploy the target model to the hardware mcb_hall_calibration_f28379d 2. You should see and verify the variables from the target model in the base workspace.   Steps: 1. Select port in Host Serial Setup, Host Serial Receive and Host Serial Transmit. 2. Simulate this model to start the Hall sequence calibration for six step control. Motor starts spinning when calibration starts. 3. After calibration completes, simulation ends and motor stops automatically. 4. Push the Emergency Motor Stop button to stop the motor during emergency.   Calibration Output  Calibration in progress  Calibration complete

BLOCK:
 Demux ; SFunction ; Terminator ;AND;Adapt Display;Add;Buffer HallState;Calibration Status;Change_detect;Check Stop Simulation;Clock;Compare To Constant;Consider stop command 5 sec after start;Constant;Count;Counter;Data Type Conversion;Data_Conditioning;Data_Type_Fixed_Point;Data_Type_Float;Delay;Detect Hallsequence Change;Display;Display_Value;Emergency Stop;Enable;Enable at pos 1;From;Goto;Hall Sequence;HallSequence;HallState;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Host timeout in Seconds;In;Input;Keep Sim Running;Lamp;Latch HallState;Logical Operator;MATLAB Function;Motor is not rotating All hall states are zero;Mux;NOT;OR;OpenLoopPos;Out;Output;Pos;Product;Push for emergency stop;Rate Transition;Reference;Relational Operator;SCI_TX;Scope;Scope (Per-Unit);Serial Communication;Speed demand (RPM);Step;Stop Sim;Stop Simulation;StopHost;StopSim;SubSystem;Switch;Terminator;Timeout;Trigger;Unit Delay;counter for electrical cycle;u;y

BLOCKTYPE:
Clock;Compare To Constant;Constant;CustomCallbackButton;DataTypeConversion;Delay;Demux;Detect Change;Display;DisplayBlock;EnablePort;From;Goto;Inport;LampBlock;Logic;Mux;Outport;Product;RateTransition;RelationalOperator;S-Function;Scope;Step;Stop;Sum;Switch;Terminator;TriggerPort;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_host_autotuner_f28379d
PATH: examples/mcb/main/mcb_host_autotuner_f28379d.slx
BLOCKTYPE_FREQUENCY: 5;3;4;1;5;3;3;1;7;1;2;1;2;19;1;2;1;22;1;1;2;2;1;3;4;1;2;6;2;1;1;1
CHECKSUM: 0BC245E79267F12162D3E6459E53F9AE
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Rx TX  PMSM Field Orient Control Autotuner Host  Copyright 2021-2023 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Use Motor switch to start motor. 3. Input speed reference which is approximately half of the rated speed of the motor. 4. Ensure the motor operation is stable by observing the speed signal in the scope. 4. Start tuning process using Autotuner switch. Keep PI Parameters switch in Autotuner during tuning process. 6. If you wish to repeat the experiment, put PI Parameters switch to Default position to write default PI parameters from init script to controllers. 7. Revert PI Parameters switch to Autotuner. Use Autotuner switch to start tuning again.  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_foc_autotuner_f28379d 2.You should see and verify the variables from the target model in the base workspace. 

BLOCK:
 Demux ; SFunction ; Terminator ;Action Port;Autotuner;AutotunerStart;Bitwise Operator;Change_detect;Compare To Constant;Data;Data Type Conversion;Data_Conditioning_Tx;Debug;Debug ;Debug_signals;Demux;Display;Display Status;Display_Value;Enable;Enable_PWM;Enabled Subsystem;Extract signals;Gain;Host Serial Receive;Host Serial Setup;Host Serial Transmit;If;If Action Subsystem;In;InitPIParams;Input;Ki_Daxis;Ki_Qaxis;Ki_Speed;Kp_Daxis;Kp_Qaxis;Kp_Speed;Latch progress;Logical Operator;Merge;Motor;Motor Enable;Mux;Out;Output;PI Parameters;PIParamInit;PI_params;Parse;Parse Data;Pi_params;PrevStatus;Radio Button;Rate Transition;Reference;Reference Speed (RPM);Relational Operator;SelectedSignals;Serial Communication;Shift Arithmetic;Speed Ref [RPM];Status;Status Display;String Constant;SubSystem;Subsystem;Sum;To Workspace;Tuning Status;Unit Delay;inData;status

BLOCKTYPE:
ActionPort;ArithShift;Bitwise Operator;Compare To Constant;Constant;DataTypeConversion;Demux;Display;DisplayBlock;EditField;EnablePort;Gain;If;Inport;Logic;Merge;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;StringConstant;Sum;Terminator;ToWorkspace;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_host_mode_control
PATH: examples/mcb/main/mcb_host_mode_control.slx
BLOCKTYPE_FREQUENCY: 1;2;16;32;23;12;17;82;1;1;16;103;3;16;16;1;1;1;16;1;2;1
CHECKSUM: F40CEB72ABBBD79A20E6BF18FB7D6BE6
PRODUCT: MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Subsystem RX   TX  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_operating_mode_f28379d 2.You should see and verify the variables from the target model in the base workspace.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Caution: Stop the motor when switching between the modes Host model for Control Parameter Gain Tuning (Manual) in Hardware and Plant Validation  Control Operating Mode Variables d-axis current controller Control loop gains Monitor Motor speed control mode Motor torque control mode q-axis current controller Speed controller  Copyright 2020-2023 The MathWorks, Inc. Open-loop mode

BLOCK:
Bus Creator;Bus Selector;Byte Pack;Change detect;Constant;Constnt;Dashboard control;Data Type Conversion;Data_Conditioning_Tx;Data_Log;Data_Type_Fixed_Point;Data_Type_Float;Enable;Enabled Subsystem;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Id Ctrl Ki Gain;Id Ctrl Kp Gain;Id Ref;Id Ref (PU);In;Iq Ctrl Ki Gain;Iq Ctrl Kp Gain;Iq Ref;Iq Ref (PU);IsChange;Ki Gain;Ki Gain_;Ki Gain__;Kp Gain;Kp Gain_;Kp Gain__;Merge;Mux;NotEqual;OR;Operating Mode;Out;Output;Pos lock Input (torque mode);Radio Button;Rate Transition;Reference;SCI_TX;Scope;Scope (Per-Unit);Serial Communication;Signal Sel ;Slider Switch;Speed Ctrl Ki Gain;Speed Ctrl Kp Gain;Speed Ref (PU);Speed Ref (speed mode);Speed limit (PU);Speed limit (Torque mode);Speed lmt (open loop);Speed ref (PU);SubSystem;Terminator;Unit Delay;Value;Voltage (open loop);Voltage ref (PU)

BLOCKTYPE:
BusCreator;BusSelector;Byte pack;Constant;DataTypeConversion;EditField;EnablePort;Inport;Logic;Merge;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;Scope;SliderSwitchBlock;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_host_model_f28069m
PATH: examples/mcb/main/mcb_host_model_f28069m.slx
BLOCKTYPE_FREQUENCY: 3;4;1;1;1;3;2;1;1;4;1;2;1;1;1;1;2;2;1;1;1
CHECKSUM: 02977FA9D235EB5B9011A29FFB2DD5BE
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
RX TX  Copyright 2020-2023 The MathWorks, Inc.  Steps: 1. Set serial port to target.comport in the init script of the target model. 2. Use Motor switch to enable and disable motor control. 3. Input speed request using Reference Speed edit box or sliding bar. 4. Observe the actual speed of motor and phase A current in the scope. 5. Start the motor in open loop under no load condition and transition to close loop for Sensorless Example. The model works in open loop for speed ref below 0.1pu.   PMSM / BLDC Control  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_foc_qep_f28069m mcb_pmsm_foc_qep_f28069LaunchPad mcb_pmsm_foc_hall_f28069m mcb_pmsm_foc_sensorless_f28069MLaunchPad mcb_bldc_sixstep_f28069mLaunchPad 2.The variables from the target model are loaded to the base workspace. 

BLOCK:
 Demux ; SFunction ; Terminator ;Convert;Data Type Conversion;Data_Conditioning_Rx;Data_Conditioning_Tx;Enable;Gain;HW_Selected;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia (amps);In;Input;Logical Operator;MATLAB Function;Motor;Motor Start / Stop;Mux;Output;Rate Transition;Reference;Reference Speed;Relational Operator;SCI_TX;Scope;Serial Communication;Slider;Speed (RPM);Speed demand (RPM);SubSystem;Terminator;Unit Delay

BLOCKTYPE:
Constant;DataTypeConversion;Demux;EditField;EnablePort;Gain;Inport;Logic;Mux;Outport;RateTransition;RelationalOperator;S-Function;Scope;SliderBlock;SliderSwitchBlock;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_inverter_powerloss
PATH: examples/mcb/main/mcb_inverter_powerloss.slx
BLOCKTYPE_FREQUENCY: 8;1;7;16;1;2;1;3;12;1;21;6;14;2;1;1;38;1;6;2;1;2;12;40;3;10;1;1;4;3;8;1;7;1;3;7;1;1;8;4;1;2;1;1;1;1
CHECKSUM: 1CC4EF38708B56723B2A628371612BB3
PRODUCT: MATLAB;Motor Control Blockset;Simscape;Simscape Electrical;Simulink
PRODUCT_BASECODE: MT
EXTERNALFILE_REFERENCE: mcb_ref_switchmodel___SubsystemReference_Block___
ANNOTATION:
 PMSM Field Oriented Control Losses in Inverter switches and Total Harmonic Distortion - Comparison between different PWM strategies  Steps: 1. Edit motor &amp; inverter parameters. 2. Simulate this model. 3. Explore function used for plotting power loss and THD. 4. Learn more about this example.  Copyright 2021 The MathWorks, Inc.

BLOCK:
A;Action Port;B;C;Clarke Transform;Connection Label;Constant;Control;Current Control;Current Sensor;Current_Controllers;DQ Limiter;Data Type Conversion;Demux;Discrete PI Controller with anti-windup & reset;Duty Cycles;Electrical Reference;From;Gain;Goto;IIR Filter;I_fb;I_ref;Iab;Iab_PU;Iab_meas_PU;Id;Id_ref;Ideal Rotational Motion Sensor;Ideal Temperature Source;Ideal Torque Source;IdqRef_PU;Idq_ref_PU;In Bus Element;Inverse Park Transform;Inverter;Inverter and Motor - Plant Model;Iq;Iq_ref;Ki;Kp;Load Torque;Logical Operator;Mechanical Rotational Reference;Mechanical to Electrical Position;Merge;Motor;Mux;NOT;N_fb;N_ref;Out Bus Element;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PMSM;PS-Simulink Converter;PU_Conversion;PWM;PWM Generator;PWM Selection;PWMMethod;PWM_Duty_Cycles;PWMmethod;Park Transform;Pos_Mech_PU;Pos_PU;R;RT;Reference;Repeating Sequence Stair;Sensor;Signal Specification;Simulink-PS Converter;Sine-Cosine Lookup;Solver Configuration ;Space Vector Generator;Speed;Speed Control;Speed_Meas_PU;Speed_Ref_PU;String Constant;SubSystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Tcase;Terminator;Thermal Reference;Theta;To Workspace;ToGateVoltage;Total Harmonic Distortion;V+;V-;V_ref;Vab;Vabc;Vabc_in_PU;Valphabeta;Vd_ref;Voltage Source;Vq_ref;Zero_Cancellation;rad/s->RPM

BLOCKTYPE:
ActionPort;Clarke Transform;ConnectionLabel;Constant;Controlled Temperature Source;Current Sensor;DQ Limiter;DataTypeConversion;Demux;Electrical Reference;From;Gain;Goto;IIR Filter;Ideal Rotational Motion Sensor;Ideal Torque Source;Inport;Inverse Park Transform;Logic;Mechanical Rotational Reference;Mechanical to Electrical Position;Merge;Mux;Outport;PID 1dof;PMIOPort;PMSM;PS Constant;PS-Simulink Converter;PWM Generator;PWM Modulation;Park Transform;RateTransition;Repeating Sequence Stair;SignalSpecification;Simulink-PS Converter;Sine-Cosine Lookup;Solver Configuration;StringConstant;Sum;SwitchCase;Terminator;Thermal Reference;ToWorkspace;Total Harmonic Distortion;Voltage Source


MODELNAME: mcb_ipmsm_fwc_autotuner_f28379d
PATH: examples/mcb/main/mcb_ipmsm_fwc_autotuner_f28379d.slx
CHECKSUM: 763B5501823C781115E5B0B43273721F
PRODUCT_BASECODE: MT
ANNOTATION:
 Enabling the Flux tuning command for state flow chart when speed reference is above base speed and flux controller is active (flux_error is negative)  Reducing max voltage limit input when reference speed value is higher than rated speed and flux loop tuning is active.  Note: Transmit headers before transmitting each data 11 : Kp_Id 21 : Ki_Id 31 : Kp_Iq 41 : Ki_Iq 51 : Kp_Speed 61 : Ki_Speed 81 : Kp_Flux 91 : Ki_Flux 71 : Status of Autotuner  Current Measurements Position & Speed Measurements QEP  Updating flux controller gains to new tunned gains only when speed reference value is more than rated speed and flux loop tuning was not bypassed. Kp_Id Ki_Id Kp_Iq Ki_Iq Kp_Speed Ki_Speed Kp_Flux Ki_Flux for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays  Copyright 2021-2023 The MathWorks, Inc.  Tuning PI Controllers for Field-Weakening Control of IPMSM Using FOC Autotuner  HW Prerequisites 1. TI F28379D LaunchPad 2. BOOSTXL-DRV8305 Booster pack 3. IPMSM motor with QEP  Steps: 1. Edit motor &amp; inverter parameters. 2. Use offset computation model to determine position offset. 3. Update offset in the pmsm.PositionOffset variable available in Init script. 4. Enter a &quot;Max Voltage Limit [PU]&quot; value. For details, see documentation. 5. Click Build, Deploy &amp; Start. 6. Control motor via host model. 7. Learn more about this example. Global Variables

BLOCK:
 ; Calculate Position and Speed; Demux ; SFunction ; Terminator ;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;ActiveLoop;Add;Add Offset;Autotuner Mode Control;AutotunerStart;Autotuner_Ctrl;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Bypass;Bypass_FWC;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Chart;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegen;Codegeneration;Compare To Constant;Const;Constant;Control_System;Conv;Convergence;Correction_Factor_sinePWM;Counter Limited;Current Control;CurrentTuningTime;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;DebugSignals;Debug_Signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;EnFluxTuning;Enable;EnableFluxTuning;Enable_PWM;End;Event Listener;FOC_Autotuner;FWC_Signal;FW_Controller;Feedbacks;Feedbacks_sim;Field Oriented Control Autotuner;FluxTuningTime;Flux_fb;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia & Pos;Ia_ADC;Iab;Iab_Meas_PU;Iab_meas_PU;Ib_ADC;Id;Id_Ctrl;Id_fb;Id_fwc;Idq;IdqRef;IdqRef_PU;Idq_Debug;Idq_Ref_PU;Idq_debug;Idq_fb;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;InitPIParams;Input;Input Scaling;Interior PMSM;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq limiter;IqRef_PU;Iq_Ctrl;Iq_Ref;Iq_Ref_PU;Iq_fb;Iq_ref;Iteration;Ki;Kp;Less Than;Load_Profile (Torque);Load_Trq;Logical Operator;MTPA Control Reference;Max Voltage Limit [PU];MaxVoltLimit;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_out;N_ref;OR;Offset;Offset voltage;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PID;PIDout_Daxis;PIDout_Flux;PIDout_Qaxis;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PI_Param_Init;PI_Params;PI_Params_Display_and_Logging;PI_Params_Out;PI_Params_Tx;PMSM Feed Forward Control;PU;PU_Conversion;PWM_Driver;PWM_Duty_Cycles;PWM_Enable;ParameterSelect;Park Transform;Parse;Perturbation_Daxis;Perturbation_Flux;Perturbation_Qaxis;Perturbation_Speed;PhaseCurr;Pos_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;SettlingTime;Shift Arithmetic;Sign;Signals;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed;Speed Control;Speed Measurement;SpeedProfile;SpeedRef;SpeedTuningTime;Speed_Meas_PU;Speed_Out;Speed_PU;Speed_Ref_In;Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref(rpm);Sqrt;Start;StartStop;Status;Stop;SubSystem;Sum;Switch;Switch to Initial PI Params;Switch to closed loop ;T_load_final;Terminator;Theta_e;Trigger;Ts;TuningEnd;TuningStart;Unit Delay;Update PI gains for Flux;Update PI gains for Id;Update PI gains for Iq;Update PI gains for Speed;UpdatePIParams;V-by-f;V_ref;Vabc;Vabc_PU;Vabc_Ref;Variant Sink;Variant Source;Variant Subsystem;Vd Ref;Vdq_ref;VmLimit;Vmax_fb;Vmax_limit;Vq Ref;Vref & Vmag;WaitTime;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;conv & Speedfb;d_ref;d_sat;deb;ePWM;eQEP;in;out;position_increment;q_ref;q_sat;rad;rpm2freq;speed;speed_control;stop;tune;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;FOCAutoTuner;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Interior PMSM;Inverse Park Transform;Logic;MTPA Control Reference;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PMSM FeedForward Control;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;RelationalOperator;S-Function;Saturate;Selector;SignalEditor;Signum;Sine-Cosine Lookup;Speed Measurement;Sqrt;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;4;5;8;7;1;2;8;6;1;1;1;1;1;15;77;2;1;13;33;32;22;2;4;21;1;10;9;1;4;1;1;10;1;20;10;4;1;4;4;130;2;1;1;20;1;2;1;2;2;2;31;110;4;1;1;1;1;11;1;14;1;1;4;3;1;1;1;1;1;5;22;16;8;2;1;1;1;1;1;2;3

PRODUCT:
C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Motor Control Blockset Documentation;Simulink;Stateflow


MODELNAME: mcb_ipmsm_fwc_autotuner_host_f28379d
PATH: examples/mcb/main/mcb_ipmsm_fwc_autotuner_host_f28379d.slx
BLOCKTYPE_FREQUENCY: 1;12;3;4;4;15;3;3;1;9;2;1;1;1;1;4;22;2;1;2;8;1;40;1;2;3;2;1;3;9;1;4;8;3;1;1;1
CHECKSUM: 27896832E6418C6511178CC803767934
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Rx TX  Autotuner  Copyright 2021-2022 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Use the Motor switch to start the motor 3. Use the &quot;Speed Ref [RPM]&quot; field to run the motor at base speed. Determine a steady value of &quot;Vm_Feedback&quot; debug signal. 4. Enter a value that is less than steady &quot;Vm_Feedback&quot; value in the &quot;Max Voltage Limit [PU]&quot; field. 5. Enter a reference speed in the &quot;Speed Ref [RPM]&quot; field. Note: The model tunes the flux loop only when reference speed is greater than the base speed. 6. Observe the &quot;Speed_Ref&quot; debug signal. Ensure that the motor reaches a steady speed state. 7. Start the tuning process using the Autotuner switch. Keep the PI Parameters switch in the &quot;Autotuner&quot; position during the tuning process. 8. Before you rerun the tuning process, ensure that you reset the controller gains to their default values by turning the PI Parameters switch to &quot;Default&quot;. You can start the tuning process again after turning the PI Parameters switch back to &quot;Autotuner&quot;. Note: Keeping &quot;Max Voltage Limit [PU]&quot; greater than &quot;Vm_Feedback&quot; will result in incomplete tuning due to the inactive flux loop.  Prerequisites: 1. Deploy the target model to the hardware. 2. The variables are updated by the target model in the base workspace.   PI Parameters  Tuning PI Controllers for Field-Weakening Control of IPMSM Using FOC Autotuner - Host  Copyright 2021-2023 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;AND;Abs;Action Port;Autotuner;AutotunerStart;Bitwise Operator;Change_detect;Compare To Zero;Constant;Data;Data Type Conversion;Data_Conditioning_Tx;Debug;Debug ;Debug_signals;Demux;Display;Display Status;Display_Value;Enable;Enable_PWM;Enabled Subsystem;Extract signals;Fail;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;If;If Action Subsystem;In;InitPIParams;Input;Ki_Daxis;Ki_Flux;Ki_Qaxis;Ki_Speed;Kp_Daxis;Kp_Flux;Kp_Qaxis;Kp_Speed;Logical Operator;Max Voltage Limit [PU] (when tuning flux loop);Merge;Motor;Motor Enable;Mux;Out;Output;PI Parameters;PIParamInit;PI_params;Parse;Parse Data;Radio Button;Rate Transition;Reference;Reference Speed (RPM);Relational Operator;SelectedSignals;Serial Communication;Shift Arithmetic;Speed Ref [RPM];Speed_ref;Status;Status Display;String Constant;SubSystem;Subsystem;Sum;Terminator;To Workspace;Tuning;Tuning Status;Unit Delay;Vmax Ref (PU);inData;status

BLOCKTYPE:
Abs;ActionPort;ArithShift;Bitwise Operator;Compare To Zero;Constant;DataTypeConversion;Demux;Display;DisplayBlock;EditField;EnablePort;From;Gain;Goto;If;Inport;InportShadow;LampBlock;Logic;Merge;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;StringConstant;Sum;Terminator;ToWorkspace;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_ipmsm_fwc_qep_f28379d
PATH: examples/mcb/main/mcb_ipmsm_fwc_qep_f28379d.slx
CHECKSUM: 848719B54460A1D755338075B8273DF2
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for BoostXL-DRV8305 connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable DRV8305 in CPU1 for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays  Note: 1) This example starts-up the motor in open-loop control and once the index-pulse of quadrature encoder is detected, it switches to closed-loop control. 2) The start-up logic above avoids a glitch in speed feedback during start-up. 3) Refer to &quot;mcb_pmsm_fwc_qep_f28379d/Current Control/Control_System/Open_Loop_Control&quot; for more details.  Global Variables  Copyright 2020-2023 The MathWorks, Inc.  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 3. Calibrate QEP offset 4. Update motor parameters with QEP offset 5. Generate code from hardware tab with &quot;Build, Deploy &amp; Start&quot; 6. Control motor via host model 7. Learn more about this example. Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor  Note: 1) To achieve higher speeds, increase the &quot;Max current&quot; value in &quot;Speed Control \ MTPA Control Reference&quot; block (e.g. set to 2xIrated). 2) It is recommended to monitor motors temperature for operation above base speed, while working with hardware.  PMSM Field Weakening Control with MTPA

BLOCK:
 Calculate Position and Speed;6PWM_Mode;ADC Calib Enable;ADC Interrupt;ADCINT;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average Inverter;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Bypass_FWC;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug;Debug_signal_;Debug_signals;Default ADC Offset;Delay;Demux;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;DutyCycles;Duty_Cycles;Duty_abc;Enable;Enable_FWC;Enable_PWM;Enable_fwc;End;Event Listener;FW_Controller;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;HW_Interrupt;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Ib;Iab_meas_PU;Ib_ADC;Id_control;Id_fb;Id_fwc;Id_ref;Idq_ref;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Interior PMSM;Inverse Park Transform;Inverter;Inverter Signals;Inverter and PMSM;Inverting / Non-inverting Current measurement amplifieer;Iq limiter;Iq_control;Iq_fb;Iteration;Ki;Kp;Less Than;Load_Profile (Torque);Load_Trq;Logical Operator;MTPA Control Reference;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;Offset;Offset voltage;One_by_Two;Open_Loop_Control;Open_loop_speed_ref;Optional_Read_SPI;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PMSM Feed Forward Control;PMSM Torque Estimator;PU;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Pos_meas_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Found;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Rate Transition;Read_ADC_Gain;Read_PWM_mode;Read_SPI;Reference;Reversal;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sign;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Ref_CCW (rpm);Speed_Ref_CW (rpm);Speed_Ref_In;Speed_Ref_PU;Speed_fb;Speed_ref;Sqrt;Start;StartUp_Delay;StartUp_Logic;SubSystem;Sum;Switch;Switch to closed loop ;T_load;T_ref;Terminator;Theta_e;Torque_and_Power;Unit Delay;V_ref;Vabc;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_OpenLoop;Vd_ref;Vmax_fb;Vmax_ref;Vq_OpenLoop;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wm_fb;Wrap;Zero;Zero_Cancellation;d_ref;d_sat;ePWM;eQEP;in;out;q_ref;q_sat;rad;rpm2PU;speed;speed_PU;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Interior PMSM;Inverse Park Transform;Logic;MTPA Control Reference;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PMSM FeedForward Control;PMSM Torque Estimator;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;RelationalOperator;Saturate;Selector;Signum;Sine-Cosine Lookup;Speed Measurement;Sqrt;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;1;8;5;1;2;6;1;1;2;1;1;1;2;54;1;1;7;23;11;25;2;5;13;2;3;1;3;1;5;2;14;5;4;2;4;4;91;1;1;1;14;1;2;1;2;2;2;31;81;4;1;1;1;1;1;4;1;9;1;4;2;3;1;1;1;4;16;12;9;2;3;1;1;1;1;4;3


MODELNAME: mcb_ipmsm_init_pos_est_fwc_sim_phfo_eemf
PATH: examples/mcb/main/mcb_ipmsm_init_pos_est_fwc_sim_phfo_eemf.slx
CHECKSUM: 29FB2E4EEAAEB0A0B435A51B9E923515
PRODUCT: MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements  Speed Measurements PHFO Position & Speed Measurements EEMF Ext speed in Speed mode Subsystem Motor Signals Delays  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 4. Start the motor with PHFO and transition to close loop. The model works with PHFO for speed ref below 0.1pu. 5. Learn more about this example.  Copyright 2023 The MathWorks, Inc.  Simulate initial position estimation and field-weakening control of IPMSM using pulsating high-frequency (PHF) injection and sensorless Extended-EMF observer

BLOCK:
ADCINT;AND;Abc;Abs;Add;Alpha;Average-Value Inverter;Avoid Inf in integrator;B;Beta;Bus Selector;Calc Speed in Torq mode;Calculate Phase Currents;Calculate position and speed;Clarke Transform;Closed Loop;CmdIn;CmdOut;Compare To Constant;Config;Constant;CosElecAngle;Current Control;Current Selection;Current_Controllers;D Axis Stator Voltage;DQ Limiter;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Delay;Demux;Discrete PI Controller with anti-windup & reset;Discrete-Time Integrator;Divide;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;Enable;Extended EMF Observer;FWC;Feedbacks;Feedbacks_sim;Filteration;From;Gain;Goto;HW_INT;IC;IIR Filter;IIR HPF;IIR LPF;IPE Selection;IPE_En;I_fb;I_ref;IaSta;Iab;Iab_ADC;Iab_FWC;Iab_PHF;Iab_fb;Iab_hf;Iab_meas_PU;IbSta;IcSta;Id;IdSyn;Id_Selection;Id_Syn;Idq;IdqRef_PU;IdqSyn;Idq_Ref;Idq_ref_PU;Info;Init_angle (rad);Input Scaling;Inverse Clarke Transform;Inverse Park Transform;Inverter;Inverter (Simulation);Inverter Signals;Inverter and Motor - Plant Model;Iq;Iq limiter;IqSyn;Iq_Syn;J;Ki;Kp;Latch;Ld;LdTrq / Spd;Less Than;Load_Profile (Torque);Load_Trq;Logical Operator;Lookup Table Dynamic;Lq;MTPA Control Reference;Machine Torque;Mechanical and Angle;Motor;Motor Parameters;MotorPosIn;MotorPosOut;MotorTrq;MtrTrq;Mux;NOT;OR;One_by_Two;Output Scaling;PHF;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PMSM Configuration;PMSM Electromagnetic;PMSM Equivalent Circuit;PMSM Feed Forward Control;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Park Transform;PhaseCurr;PhaseVolt;Pos_PU;Pos_SC;Position;Pp;Product;Pulsating High Freq Observer;Q Axis Stator Voltage;RT;Rate Limiter;Rate Transition;Reference;Reset;RotorAngle;RotorElecAngle;RotorElecSpd;RotorMechSpd;RotorSpd;Rs;SC;SCI_Rx_INT;Saturation;Selector;Sensor_Measurements;Sign;Sim_fb;Simulation;SinElecAngle;Sine_Cosine;SlewRate;Space Vector Generator;SpdIn;SpdOut;Spd_PU;Speed;Speed Command;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_PU;Speed_Ref (rpm) StepDown ;Speed_Ref (rpm) StepUp;Speed_Ref_Default;Speed_Ref_In;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref;Sqrt;Step;SubSystem;Sum;Switch;TLoad;T_load;T_ref;Terminator;ThetaIn;ThetaOut;Theta_e;Tload;Tmotor;Torque;Trigger;Triggered Subsystem;Unit Delay;VI_fb;V_ref;Vabc;Vabc_ref;VdSyn;Vd_Syn;Vd_ref;Vector Concatenate;VqSyn;Vq_Syn;Vq_ref;Wrapper;Zero_Cancellation;atan;d_ref;d_sat;f;iab;iab_HF;iab_LF;lambda_pm;q_ref;q_sat;rpm2PU;stop;w_in

BLOCKTYPE:
Abs;Average Value Inverter;BusSelector;Clarke Transform;Compare To Constant;Concatenate;Constant;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Extended EMF Observer;From;Function-Call Generator;Gain;Goto;IIR Filter;Inport;InportShadow;Inverse Clarke Transform;Inverse Park Transform;Logic;Lookup Table Dynamic;MTPA Control Reference;Mechanical to Electrical Position;Mux;Outport;PID 1dof;PMSM Configuration;PMSM FeedForward Control;PMSM HDL;PWM Modulation;Park Transform;Product;Pulsating High Freq Observer;RateLimiter;RateTransition;RelationalOperator;Saturate;Selector;Signum;Speed Measurement;Sqrt;Step;Sum;Switch;Terminator;TriggerPort;Trigonometry;UnitDelay;atan2

BLOCKTYPE_FREQUENCY:
3;1;1;1;2;1;35;1;6;24;5;10;5;2;17;4;1;25;2;8;23;7;96;10;2;2;13;1;1;1;18;75;3;1;1;1;1;2;20;1;2;8;1;1;2;2;1;1;5;15;24;13;3;1;3;3


MODELNAME: mcb_ipmsm_pos_est_f28379d
PATH: examples/mcb/main/mcb_ipmsm_pos_est_f28379d.slx
CHECKSUM: E8CE8C3BC56E85C5DFCE424ADD296F33
PRODUCT_BASECODE: MT
ANNOTATION:
Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Current Measurements HW Driver Blocks The above logic, enables the PHFO block when there is a rise edge in Enable input signal and disables the PHFO block when initial rotor position estimation is completed. Fast Serial Data Monitoring (32-bit) for inverter connected with LaunchXL-28379D System Outputs HW Driver Blocks Scaling Delays  &quot;Initi angle&quot; constant is connected with user input &quot;Input electrical rotor position&quot; to define initial rotor position for PMSM motor block  Estimation of Initial Rotor Angle (zero speed) Interior Permanent Magnet Synchronous Motor  Simulation Input & Output  Steps: 1. Edit motor &amp; inverter parameters 2. Input the rotor electrical angle (radians) in the edit box &quot;Input electrical rotor position&quot; 3. Simulate the model and observe the estimated rotor angle in display box &quot;Estimated electrical rotor position&quot; 4. Click Build, Deploy &amp; Start in the Hardware tab. 5. Start or stop algorithm via host model 6. Learn more about this example  HW Prerequisites 1. TI F28379D LaunchPad 2. BOOSTXL-DRV8305 Booster pack 3. IPMSM motor Global Variables Copyright 2021-2023 The MathWorks, Inc.

BLOCK:
+;-;3phase converter;6-pulse PWM generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Action Port;Add;Add Offset;Bias;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Code Generation;Code generation;Codegeneration;Constant;Converter (Three-Phase);Counter Limited;CurrIn;CurrOut;Current Sensor (Three-Phase);DC Voltage Source;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Default ADC Offset;Delay;Demux;Digital Output;Display;Divide;Dummy;Duty Cycles;Duty_Cycles;Electrical Reference;Embedded System;En;Enable;End;Estimated electrical rotor position (radians);Event Listener;Feedbacks;Feedbacks_sim;Flag;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Goto;Ground;HW Interrupt;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;HW_Outputs;Hardware Init;Heartbeat LED;Hold;Ia_ADC;Iab_pu;Iabc;Ib_ADC;Ideal Rotational Motion Sensor;Ideal Torque Source;If;If Action Subsystem;In;Index Vector;Init angle;Initial Position Estimation (IPE) Algorithm;Input Scaling;Input and Scaling;Input electrical rotor position (radians);Inverse Clarke Transform;Inverter Enable;Inverter Signals;Inverter and Motor;Inverting / Non-inverting Current measurement amplifieer;Inveter and Motor;Iteration;Line Voltage Sensor (Three-Phase);Load;Mechanical;Mechanical Rotational Reference;Mechanical to Electrical Position;Memory;Merge;ModWave;Mux;NOT;OR;Offset voltage;One_by_Two;Out;Output Scaling;PMSM;PS-Simulink Converter;PU_Conversion;PUtoRad;PWM_Duty_Cycles;PWM_Enable;PhaseCurr;Pulsating High Freq Observer;Q17 per unit conversion;R ;RED_LED;RT;Rate Transition;Reference;Relay;Repeating Sequence Interpolated;Reset Logic;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Rx_INT;SCI_Tx;SCi_Rx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Scale;Scale_to_PWM_Counter_PRD;Scaling and Output;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Signal Conversion;Sim;Sim_fb;Sim_feedback;Simulation;Simulation feedback;Simulation_Terminator;Simulink-PS Converter;Six-Pulse Gate Multiplexer;Solver Configuration;Start;StatusIn;StatusOut;Step;SubSystem;Sum;Switch;Terminator;ThIn;ThOut;Tm;Unit Delay;Vabc_In_PU;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;While Iterator;While Iterator Subsystem;Width;duty_abc;ePWM;g;measVI;stop;~;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Bias;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;Constant;Converter (Three-Phase);Counter Limited;Current Sensor (Three-Phase);DC Voltage Source;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;DisplayBlock;EditField;Electrical Reference;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;Ideal Rotational Motion Sensor;Ideal Torque Source;If;Inport;Inverse Clarke Transform;Line Voltage Sensor (Three-Phase);Logic;Mechanical Rotational Reference;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PMIOPort;PMSM;PS-Simulink Converter;Product;Pulsating High Freq Observer;RateTransition;Relay;Repeating Sequence Interpolated;Saturate;Selector;SignalConversion;Simulink-PS Converter;Six-Pulse Gate Multiplexer;Solver Configuration;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;8;1;2;1;1;2;1;26;1;1;1;1;2;2;6;16;1;1;12;2;1;1;1;4;1;4;1;6;1;13;5;4;1;1;1;4;69;1;1;10;3;1;2;2;1;20;57;6;1;4;2;1;7;1;1;2;2;1;7;1;1;3;9;4;10;1;3;1;1;1;1;2;3

PRODUCT:
C2000 Microcontroller Blockset;C2000 Microcontroller Blockset Documentation;Embedded Coder;MATLAB;Motor Control Blockset;Simscape;Simscape Electrical;Simulink


MODELNAME: mcb_ipmsm_pos_est_f28379d_host_model
PATH: examples/mcb/main/mcb_ipmsm_pos_est_f28379d_host_model.slx
BLOCKTYPE_FREQUENCY: 4;3;1;5;1;2;2;1;1;1;1;10;2;4;4;1;2;20;1;1;1;1;4;4;1;1;2;1
CHECKSUM: 647C09BD78239BFA54DF74F589EB3BD4
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX Rx  Estimation of Initial Rotor Angle (zero speed) Control Host Interior Permanent Magnet Synchronous Motor  Copyright 2021-2023 The MathWorks, Inc.  Prerequisites: 1. Deploy the target model to the hardware mcb_ipmsm_pos_est_f28379d 2. Verify the variables from the target model in the base workspace.     Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Simulate this model 3. Use Estimate position switch to start the Initial rotor position estimation algorithm. 4. Observe Measured position in Electrical radians at the display box &quot;Estimated rotor electrical position&quot; 5. To estimate a different rotor position, turn the Estimate Position switch to Stop, change the motor shaft position, and then restart the algorithm.       Initial Position Estimation (IPE)

BLOCK:
 Demux ; SFunction ; Terminator ;AND;Action Port;Change_detect;Closed loop PHF;Compare To Constant;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Display;Display Status;Display_Value;Dual Pulse;Enable;Enabled Subsystem;Estimate position ;Estimated rotor electrical position (Radians);From;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;IPE Complete;Id;If;If Action Subsystem;In;Input;Iq;Lamp Signals;Logical Operator;Merge;Mux;Open loop PHF;Out;Output;Reference;Relational Operator;Scope (Per-Unit);Serial Communication;Status;Status Display;String Constant;SubSystem;Terminator;Theta_est;Unit Delay;msg;scope;theta_est

BLOCKTYPE:
ActionPort;Compare To Constant;Constant;DataTypeConversion;Demux;Display;DisplayBlock;EnablePort;From;Goto;If;Inport;InportShadow;LampBlock;Logic;Merge;Mux;Outport;RelationalOperator;S-Function;Scope;SliderSwitchBlock;StringConstant;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_open_loop_control_f28069MLaunchPad
PATH: examples/mcb/main/mcb_open_loop_control_f28069MLaunchPad.slx
BLOCKTYPE_FREQUENCY: 1;1;1;3;2;2;1;1;1;16;1;1;3;1;7;4;1;3;1;2;6;2;1;1;30;1;2;1;9;23;1;3;1;1;1;1;2;2;6;2;1;1;3
CHECKSUM: F4CA710FDF1A58A2358549652B5C5E64
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring  Note: - This subsystem reads user inputs and assigns to variables in base workspace using an initialization script. - The script can be found at: Example -&gt; Model Properties -&gt; Callbacks -&gt; InitFcn - Ensure these variables are created in base workspace and loaded with correct values for algorithm export (generate code only for control algorithm) or customized models - The variables are listed in init callback   Note: If motor does not start, increase the Lower limit for voltage amplitude value  Open Loop Control of 3-phase motors  Copyright 2020-2023 The MathWorks, Inc. Note: This example requires a TI F28069M LaunchPad with a BOOSTXL-DRV8305 booster pack  Steps: 1. Update Configuration panel before simulation or codegeneration. 2. Simulate the model to output voltage in scope 3. Click on Build, Deploy &amp; Start in HARDWARE tab 4.Control motor via host model 5. Learn more about this example   PWM Frequency [Hz] Configuration  Base Speed [RPM]  Number of Pole Pairs Global Variable  Data type for control algorithm  

BLOCK:
3-Phase Sine Voltage Generator;ADC Interrupt;ADCINT;Abs;Action Port;Add;Amplitude;Base Speed;Bias;Boost Voltage;Code generation;Codegen;Combo Box;Communication;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Data;Data Serial Output;Data Store Memory;Data Store Read;Data Store Write;Data Type;Data Type Conversion;Data1_Log;Data2_Log;Data_Conditioning;Data_out;Data_width;Demux;Desired Speed;Digital Output;Divide;Duty Output;Edit;Enable;End;Event Listener;Frequency;Gain;HW Interrupt;HWDriverBlocks;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Hardware Initialization;Heartbeat LED;IA/IB Measurement;Iab_measured_ADC;If;In;Index Vector;Inverter Enable;Iteration;Lower Saturation;LowerSaturation;Merge;Mux;NOT;Number of pole pairs;One;Open Loop Control;Out;Output Scaling;PWM Duty Cycle;PWM Frequency;PWM Output;PWM_Counter_Period;PWM_Duty;Parameters;Position Generator;Product;RED_LED;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Limiter;Rate Transition;Reference;Relational Operator;SCI Receive;SCI Transmit;SCI_Rx;SCI_Rx_INT;Sample_Time;Saturate output to limits;Saturation;Scope;Sensors;Serial Receive;Sim;Simulation;Simulation_Terminator;SpeedRefToFreq;Speed_Ref;Speed_ref;Speed_ref_PU;Speed_ref_rpm (sim);Start;SubSystem;Sum;Switch;Terminator;V-by-f;Vabc;Vabc in PU;VabcCalc;Vabc_PU;Vamplitude;While Iterator;While Iterator Subsystem;Width;ePWM;position_increment;rpm2freq;stop

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;Bias;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;ComboBox;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Demux;DiscreteIntegrator;EditField;EventListener;Function-Call Generator;Gain;HardwareInterrupt;IIR Filter;If;Inport;Logic;Merge;MultiPortSwitch;Mux;Outport;Position Generator;Product;RateTransition;RelationalOperator;Saturate;Scope;Sum;Switch;Terminator;TriggerPort;WhileIterator;Width;ePWM Type 1-4


MODELNAME: mcb_open_loop_control_f28069M_DRV8312
PATH: examples/mcb/main/mcb_open_loop_control_f28069M_DRV8312.slx
BLOCKTYPE_FREQUENCY: 1;1;1;3;2;2;1;1;1;16;1;1;3;1;7;4;1;3;1;2;6;2;1;1;30;1;2;1;10;23;1;3;1;1;1;1;2;2;6;2;1;1;3
CHECKSUM: 981F7C7B82B260BE880ACCE1530162B2
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring  Note: - This subsystem reads user inputs and assigns to variables in base workspace using an initialization script. - The script can be found at: Example -&gt; Model Properties -&gt; Callbacks -&gt; InitFcn - Ensure these variables are created in base workspace and loaded with correct values for algorithm export (generate code only for control algorithm) or customized models - The variables are listed in init callback   Note: If motor does not start, increase the lower limit for voltage amplitude value  Global Variable  Copyright 2020-2023 The MathWorks, Inc. Open Loop Control of 3-phase motors Note: This example requires a TI F28069M Control Card with DRV8312 EVM  Base Speed [RPM]  Number of Pole Pairs Configuration  Data type for control algorithm  PWM Frequency [Hz]  Steps: 1. Update Configuration panel before simulation or codegeneration. 2. Simulate the model to output voltage in scope 3. Click on Build, Deploy &amp; Start in HARDWARE tab 4. Control motor via host model 5. Learn more about this example     

BLOCK:
3-Phase Sine Voltage Generator;ADC Interrupt;ADCINT;Abs;Action Port;Add;Amplitude;Base Speed;Bias;Boost Voltage;Code generation;Codegen;Combo Box;Communication;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Data;Data Serial Output;Data Store Memory;Data Store Read;Data Store Write;Data Type;Data Type Conversion;Data1_Log;Data2_Log;Data_Conditioning;Data_out;Data_width;Demux;Desired Speed;Digital Output;Divide;Duty Output;Edit;Enable;End;Event Listener;Frequency;Gain;HW Interrupt;HWDriverBlocks;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Hardware Initialization;Heartbeat LED;IA/IB Measurement;Iab_measured_ADC;If;In;Index Vector;Inverter Enable;Iteration;LED 1 Hz;Lower Saturation;LowerSaturation;Merge;Mux;NOT;Number of pole pairs;One;Open Loop Control;Out;Output;Output Scaling;PWM Duty Cycle;PWM Frequency;PWM Output;PWM_Counter_Period;PWM_Duty;Parameters;Position Generator;Product;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Limiter;Rate Transition;Reference;Relational Operator;SCI Receive;SCI Transmit;SCI_Rx;SCI_Rx_INT;Sample_Time;Saturate output to limits;Saturation;Scope;Sensors;Serial Receive;Sim;Simulation;Simulation_Terminator;SpeedRefToFreq;Speed_Ref;Speed_ref;Speed_ref_rpm (sim);Start;SubSystem;Sum;Switch;Terminator;V-by-f;Vabc;Vabc in PU;VabcCalc;Vabc_PU;Vamplitude;While Iterator;While Iterator Subsystem;Width;ePWM;position_increment;rpm2freq;stop

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;Bias;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;ComboBox;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Demux;DiscreteIntegrator;EditField;EventListener;Function-Call Generator;Gain;HardwareInterrupt;IIR Filter;If;Inport;Logic;Merge;MultiPortSwitch;Mux;Outport;Position Generator;Product;RateTransition;RelationalOperator;Saturate;Scope;Sum;Switch;Terminator;TriggerPort;WhileIterator;Width;ePWM Type 1-4


MODELNAME: mcb_open_loop_control_f28379d
PATH: examples/mcb/main/mcb_open_loop_control_f28379d.slx
BLOCKTYPE_FREQUENCY: 1;2;1;3;2;1;1;2;19;1;1;3;1;7;4;1;3;1;3;2;6;2;1;1;30;2;2;1;10;23;1;3;1;1;1;1;2;3;7;2;1;1;3
CHECKSUM: 4F0EE86153995F9B7AADF9A635A9AE65
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring  Note: - This subsystem reads user inputs and assigns to variables in base workspace using an initialization script. - The script can be found at: Example -&gt; Model Properties -&gt; Callbacks -&gt; InitFcn - Ensure these variables are created in base workspace and loaded with correct values for algorithm export (generate code only for control algorithm) or customized models - The variables are listed in init callback   Note: If motor does not start, increase the Boost voltage  Note: BOOSTXL-DRV8305 : Active High BOOSTXL-3PhGaNInv : Active Low Open Loop Control of 3-phase motors  Copyright 2020-2023 The MathWorks, Inc.  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv  PWM Frequency [Hz] Configuration  Base Speed [RPM]  Number of Pole Pairs  Inverter Enable Logic  Data type for control algorithm Global Variable  Steps: 1. Update Configuration panel before simulation or codegeneration. 2. Simulate the model to output voltage in scope 3. Click on Build, Deploy &amp; Start in HARDWARE tab 4. Control motor via host model 5. Learn more about this example   

BLOCK:
 Grounding the SPI clockfor the DRV830x;3-Phase Sine Voltage Generator;ADC Interrupt;ADCINT;ADC_B_IN;ADC_C_IN;Abs;Action Port;Add;Amplitude;Base Speed;Bias;Boost Voltage;Code generation;Codegen;Combo Box;Communication;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;DRV830x Enable;Data;Data Serial Output;Data Store Memory;Data Store Read;Data Store Write;Data Type;Data Type Conversion;Data1_Log;Data2_Log;Data_Conditioning;Data_out;Data_width;Demux;Digital Output;Divide;Duty Output;Edit;Enable;End;Event Listener;Frequency;Gain;HW Interrupt;HWDriverBlocks;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;Hardware Initialization;Heartbeat LED;Iab_measured_ADC;If;In;Index Vector;Inverter;Iteration;Lower Saturation;LowerSaturation;Merge;Mux;NOT;Number of pole pairs;One;Open Loop Control;Out;Output;Output Scaling;PWM Duty Cycle;PWM Frequency;PWM Output;PWM_Counter_Period;PWM_Duty;Parameters;Position Generator;Product;RED_LED;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Limiter;Rate Transition;Reference;Relational Operator;SCI Data;SCI Receive;SCI Transmit;SCI data out;SCI_Rx;SCI_Rx_INT;Sample_Time;Saturate output to limits;Saturation;Scope;Sensors;Serial Receive;Sim;Simulation;Simulation_Terminator;SpeedRef;SpeedRefToFreq;Speed_Ref;Speed_ref;Speed_ref_RPM;Speed_ref_rpm (sim);Start;SubSystem;Sum;Switch;Terminator;V-by-f;Vabc;Vabc in PU;VabcCalc;Vabc_PU;Vamplitude;While Iterator;While Iterator Subsystem;Width;ePWM;position_increment;rpm2freq;stop

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;Bias;C28x SCI Receive;C28x SCI Transmit;ComboBox;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Demux;DiscreteIntegrator;EditField;EventListener;F2837x GPIO Digital Output;Function-Call Generator;Gain;HardwareInterrupt;IIR Filter;If;Inport;Logic;Merge;MultiPortSwitch;Mux;Outport;Position Generator;Product;RateTransition;RelationalOperator;Saturate;Scope;Sum;Switch;Terminator;TriggerPort;WhileIterator;Width;ePWM Type 1-4


MODELNAME: mcb_open_loop_control_host_model
PATH: examples/mcb/main/mcb_open_loop_control_host_model.slx
BLOCKTYPE_FREQUENCY: 3;2;1;1;1;5;1;1;6;1;1;2;1;1;1;2;2;1;1;1
CHECKSUM: 58C1F5D699C449B25EDE7C0FAC6B3ACF
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX RX  Prerequisites: 1. Deploy the target model to the hardware F28069m + DRV8312 F28069m Launchpad F28379d Launchpad 2.You should see and verify the variables from the target model in the base workspace. Steps: 1. Select hardware in Target Selelction. Select Other option if you want to manually set the baud rate in Host Serial Setup block. 2. Select the port in Host Serial Setup, Host Serial Receive and Host Serial Transmit 3. Simulate this model 4. Use Motor Start / Stop switch to control the motor. 5. Enter speed request in RPM using Reference Speed edit box. Limit the reference speed to half of the rated speed. 6. Observe the ADC counts for phase current measurent in Scope. Open Loop Control Host Model Copyright 2020-2021 The MathWorks, Inc. Motor Control Panel

BLOCK:
 Demux ; SFunction ; Terminator ;Change_detect;Data Type Conversion;Data_Conditioning;Enable;Enabled Subsystem;HW_Selected;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia (ADC counts);Ib (ADC counts);In;Input;Logical Operator;MATLAB Function;Motor;Motor Start / Stop;Mux;Out;Output;Radio Button;Rate Transition;Reference;Reference Speed [RPM];Relational Operator;Scope;Serial Communication;Speed demand (RPM);SubSystem;Terminator;Unit Delay

BLOCKTYPE:
Constant;DataTypeConversion;Demux;EditField;EnablePort;Inport;Logic;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_param_est_f28069_DRV8312
PATH: examples/mcb/main/mcb_param_est_f28069_DRV8312.slx
CHECKSUM: 468E1763C3E689D6E14F058D180DC682
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink;Stateflow
PRODUCT_BASECODE: MT
ANNOTATION:
To correct Current Direction in DRV8312 Vdq_amp * sin(2 * pi * Freq * n * Ts))+Sine_Vdc Vdq_amp * sin(2 * pi * Freq * n * Ts)) Generating Space Vectors  0 - Vq 1 - Vd 2 - VdcMeas 3 - VqMeas 4 - VdMeas 5 - Speed 6 - Theta 7 - Iq 8 - Id 9 - Ia 10 - Ib 11 - PhaseDiff   Bits 31:5 Bits 4:0 data index 1st 2nd byte - 00 00 3ed byte - DetPar1 4th Byte(7 Bits) - DetPar2 last bit LSB - testEnable Parameter Estimation for Permanent Magnet Synchronous Motors Sensor Estimated Parameters Inputs from Host Data Store  Steps: 1. This example requires a TI F28069 controlCard with DRV8312-C2-KIT connected to a Three-Phase PMSM. 2. For parameter estimation using Hall sensor, find out Hall offset using mcb_pmsm_hall_offset_f28069m. 3. For parameter estimation using QEP sensor, find out QEP offset using mcb_pmsm_qep_offset_f28069m. 4. Open mcb_param_est_host_read model, update input details, and press Ctrl+D to update the workspace. 5. Build, Deploy &amp; Start this model in target hardware.6. Run mcb_param_est_host_read model to estimate motor parameters. Before building this model, press Ctrl+D in the mcb_param_est_host_read model to u Algorithm Parameters  Copyright 2020-2023 The MathWorks, Inc.

BLOCK:
 Calculate Position and Speed; Demux ; SFunction ; Terminator ;ADC Interru pt;ADC_Calibration;ActSpeed;Action Port;Add;AlgoParams;Algorithm Parameters;AllSig;Alogrithm;Alpha;AlternateData;Alternate_0_;B;Bemf;Beta;Bias;BiasedSineWaveLdMeas;Bitwise AND;Calculate Position from Hall;ChangeDet;ChangeDetect;Clarke Transform;ClarkePark;ClarkePark ;Compare To Constant;Constant;Control;Control Algorithm;Counter Limited;CurrentScaling;D;DRV8312 Reset;DRV8312 Set;DRV8312_Reset;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data conditioning;Data_Conditioning;Data_out;Data_width;Demux;Derating Function;DetectParam;Discrete PI Controller with anti-windup & reset;Divide;En;Enable;EnableMosfets;End;Equal;ErrorCase;EstPar;EstPara;EstParaIdx;Freq;From;GPIOToggle;Gain;Generating Raw Space Vectors;Goto;HW Interrupt;HWI_ADCINT;HWI_ECAP1_INT;HWI_ECAP2_INT;HWI_ECAP3_INT;HWI_SCIRXINTA;HW_INT;Hall;Hall Speed and Position;Hall Validity;Hall_Sensor_A;Hall_Sensor_B;Hall_Sensor_C;Halls;IA IB Measurement;IA/IB;IIR Filter;I_rated;Ia;Ia/Ib;IaIbVdc;IaIb_adc_counts;Ia_Ib_ADC_count or VdId or VqIq or VaVb;Ia_cal_val;Ib;Ib_cal_val;Id;Id Desired;Idx;If;In;Index Vector;Inputs;Inverse Park Transform;Iq;Iq desired;IqRef;Iq_ref;Iteration;J;Ki_iOut;Kp_iOut;LED_Toggle;Ld;Lq;MATLAB Function;MaxSpeed;Mechanical to Electrical Position;Memory Copy;Merge;Min;Multiport Switch;Mux;MuxAllSignals;NOT;Offset;OpenLoop;OpenLoop_CloseLoop;Out;PWM;PWM A/B/C;PWM scaling;PWM_Counter_Period;ParameterEstimationAlgorithm;Park Transform;PhaseDiff;PhaseDiffValidity;Pole_Voltage to Phase_Voltage;Pos/Speed;Pos_PU;Position Generator;Position_Speed_Sensing;Product;Q;QEP;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;R_board;Read Halls;RefSignal;RefSignal ;RefSignal1_;RefVd;RefVdVq;RefVq;Ref_pos;Ref_pos ;Ref_posOL;Reference;Reference signal conditioning;Rs;RsMeasTestTime;Rs_Measurement;Running;SCI Receive;SCI Transmit;SCI_Rx_INT;Saturation;SaveToMemory;SelSig;SelectSignal;Selector;SendSignalOverSerial;Serial Send;SerialReceive;Shift Arithmetic;Sig;Signal Selection;Signal Specification;SignalPU;SignalsPU;Sine;Sine-Cosine Lookup;SineWaveLqMeas;Space Vector Generator;Speed;Speed Measurement;Speed_PU;Start;SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Ta;Ta/Tb/Tc;Tb;Tc;Terminator;TestNum;Theta;Theta_e;Torque_Control_with_Speed_Limit;Trigger;Triggered Subsystem;Truth Table;Ts;Unit Delay;V_rated;Va;VaIaVbIb;VaVb_Uint;Vabc;Vabc_Vdc;Vao;Vb;Vb Va Measurement;Vbo;Vc Measurement;Vco;Vd;VdId;VdVq;Vd_Meas;Vd_dc;Vd_ref;Vdc;Vdc Measurement;Vdq_amp;Voltage Scaling;Vq;VqIq;Vq_Meas;Vq_ref;While Iterator;While Iterator Subsystem;Width;bytepack;cos;counter;curTime;currentPU_RWV;data;eCAP;eCAP1 Interrupt;eCAP2 Interrupt;eCAP3 Interrupt;ePWM;eQEP;estParIdx;estParIdxOut;estimatedParameter;estimatedParameterOut;idx;injFreqOut;inverter_V_max;pole_pairs;rawData;refSignal;refSignalOut;sigma;sin;sinBiased;speed;speedFB;speed_rated;testEnable;testEnableFromHost;testEnableFromTrgt;testEnableOut;testEnable_sigSel1_;testNumOut;u;y

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Bias;Bitwise Operator;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eCAP;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Demux;Derating Function;EnablePort;From;Gain;Goto;Hall Speed and Position;Hall Validity;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Inverse Park Transform;Logic;Mechanical to Electrical Position;Memory Copy;Merge;MinMax;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RelationalOperator;S-Function;Saturate;Selector;SignalSpecification;Sine-Cosine Lookup;Speed Measurement;Sum;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;36;8;2;9;2;1;1;3;1;2;2;22;1;42;48;54;37;21;1;8;57;8;30;1;3;5;2;1;165;4;1;4;2;7;2;1;5;23;102;2;1;2;2;9;1;1;4;7;3;2;3;1;12;9;2;11;7;10;1;1;3


MODELNAME: mcb_param_est_f28379D_DRV8305
PATH: examples/mcb/main/mcb_param_est_f28379D_DRV8305.slx
CHECKSUM: B133031DAB0B4C9B622350440F1304D4
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink;Stateflow
PRODUCT_BASECODE: MT
ANNOTATION:
Vdq_amp * sin(2 * pi * Freq * n * Ts))+Sine_Vdc Vdq_amp * sin(2 * pi * Freq * n * Ts)) GPIO 54 GPIO 55 GPIO 57 Generating Space Vectors  0 - Vq 1 - Vd 2 - VdcMeas 3 - VqMeas 4 - VdMeas 5 - Speed 6 - Theta 7 - Iq 8 - Id 9 - Ia 10 - Ib 11 - PhaseDiff  GPIO 54 GPIO 55 GPIO 57 GPIO 54 GPIO 55 GPIO 57 GPIO 54 GPIO 55 GPIO 57 1st 2nd byte - 00 00 3ed byte - DetPar1 4th Byte(7 Bits) - DetPar2 last bit LSB - testEnable Parameter Estimation for Permanent Magnet Synchronous Motors Sensor Data Store Inputs from Host Estimated Parameters  Steps: 1. This example requires LaunchXL-F28379D with BoostXL-DRV8305 connected to a Three-Phase Brushless Motor. 2. For parameter estimation using Hall sensor, find out Hall offset using mcb_pmsm_hall_offset_f28379d. 3. For parameter estimation using QEP sensor, find out QEP offset using mcb_pmsm_qep_offset_f28379d. 4. Open mcb_param_est_host_read model, update input details, and press Ctrl+D to update the workspace. 5. Build, Deploy &amp; Start this model in target hardware.6. Run mcb_param_est_host_read model to estimate motor parameters.   Explore more: For parameter estimation without position sensors refer to mcb_param_est_sensorless_f28379D_DRV8305,  Algorithm Parameters  Copyright 2020-2023 The MathWorks, Inc.

BLOCK:
 Calculate Position and Speed; Demux ; SFunction ; Terminator ;6PWM_Mode;ADC Interru pt;ADC_A_IN;ADC_B_IN;ADC_Calibration;ADC_Gain_Setting;ActSpeed;Action Port;Add;AlgoParams;Algorithm Parameters;AllSig;Alogrithm;Alpha;AlternateData;Alternate_0_;Atomic Hall Reading;B;Bemf;Beta;Bias;BiasedSineWaveLdMeas;Bitwise AND;Bitwise Operator;Byte Pack;Calculate Position from Hall;ChangeDet;ChangeDetect;Clarke Transform;ClarkePark;ClarkePark ;Compare To Constant;Constant;Control;Control Algorithm;Count;Counter Limited;CurrentScaling;D;DRV8305 Reset;DRV8305 Set;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data_out;Data_width;Demux;Derating Function;DetectParam;Digital Output;Dir;Disable Interrupts for Atomic Read;Discrete PI Controller with anti-windup & reset;Display;Divide;En;Enable;EnableMosfets;End;Equal;ErrorCase;EstPar;EstPara;EstParaIdx;Event Listener;Freq;From;GPIOToggle;Gain;Generating Raw Space Vectors;Goto;HW Interrupt;HWI_ADCB1_INT;HWI_ECAP1_INT;HWI_ECAP2_INT;HWI_ECAP3_INT;HWI_SCIA_RX_INT;HW_INT;Hall;Hall Sensor A;Hall Sensor B;Hall Sensor C;Hall Speed and Position;Hall Validity;HallChange;HallState;Hall_A;Hall_B;Hall_C;Halls;IA/IB;IIR Filter;I_rated;Ia;Ia/Ib;IaIbVdc;IaIb_adc_counts;Ia_Ib_ADC_count or VdId or VqIq or VaVb;Ia_cal_val;Ib;Ib_cal_val;Id;Id Desired;Idx;If;In;Index Vector;Initialize Function;Inputs;Inverse Park Transform;Iq;Iq desired;IqRef;Iq_ref;Iteration;J;Ki_iOut;Kp_iOut;LED_Toggle;Ld;Lq;MATLAB Function;MaxSpeed;Mechanical to Electrical Position;Memory Copy;Merge;Min;Multiport Switch;Mux;MuxAllSignals;NOT;Offset;OpenLoop;OpenLoop_CloseLoop;Out;PWM;PWM A/B/C;PWM scaling;PWM_Counter_Period;ParameterEstimationTests;Park Transform;PhaseDiff;PhaseDiffValidity;Pole_Voltage to Phase_Voltage;Pos/Speed;Pos_PU;Position Generator;Position_Speed_Sensing;Product;Q;QEP;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;R_board;Read GPIO DAT register;Read Halls;RefSignal;RefSignal ;RefSignal_;RefVd;RefVdVq;RefVq;Ref_pos;Ref_pos ;Ref_posOL;Reference;Reference signal conditioning;Rs;RsMeasTestTime;Rs_Measurement;Running;Rx_single;SCI Receive;SCI Transmit;SCI_Rx_INT;SPI Master Transfer;Saturation;SaveToMemory;SelSig;SelectSignal;Selector;SendSignalOverSerial;Serial Send;SerialReceive;Shift Arithmetic;Sig;Signal Selection;SignalPU;SignalsPU;Sine;Sine-Cosine Lookup;SineWaveLqMeas;Space Vector Generator;Speed;Speed Measurement;SpeedCount;SpeedValidity;Speed_PU;Start;SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Ta;Ta/Tb/Tc;Tb;Tc;Terminator;TestNum;Theta;Theta_e;Torque_control_with_speed_limit;Trigger;Triggered Subsystem;Truth Table;Ts;Unit Delay;V_rated;Va;Va Measurement;VaIaVbIb;VaVb_Uint;Vabc;Vabc_Vdc;Vao;Vb;Vb Measurement;Vbo;Vc Measurement;Vco;Vd;VdId;VdVq;Vd_Meas;Vd_dc;Vd_ref;Vdc;Vdc Measurement;Vdq_amp;Voltage Scaling;Vq;VqIq;Vq_Meas;Vq_ref;While Iterator;While Iterator Subsystem;Width;bytepack;cos;count_to_PU;counter;curTime;currentPU_RWV;eCAP;eCAP1 Interrupt;eCAP2 Interrupt;eCAP3 Interrupt;ePWM;eQEP;estParIdx;estParIdxOut;estimatedParameter;estimatedParameterOut;injFreqOut;inverter_V_max;pole_pairs;refSignal;refSignalOut;refSignal_;sigma;sin;sinBiased;speed;speedFB;speed_rated;testEnable;testEnableFromHost;testEnableFromTrgt;testEnableOut;testEnable_sigSel1_;testNumOut;u;y

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Bias;Bitwise Operator;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eCAP;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Demux;Derating Function;Display;EnablePort;EventListener;F2837x GPIO Digital Output;From;Gain;Goto;Hall Speed and Position;Hall Validity;Hall sensor reader;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Inverse Park Transform;Logic;Mechanical to Electrical Position;Memory Copy;Merge;MinMax;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RelationalOperator;S-Function;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Sum;Switch;SwitchCase;System Outputs;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
6;36;14;2;19;1;1;1;3;1;2;5;24;1;42;48;54;22;21;1;2;8;1;2;57;9;30;1;3;4;5;2;1;162;4;1;4;2;7;2;1;6;24;109;2;1;2;2;9;1;1;4;7;3;3;1;13;9;2;1;11;7;10;1;1;2;3


MODELNAME: mcb_param_est_host_read
PATH: examples/mcb/main/mcb_param_est_host_read.slx
BLOCKTYPE_FREQUENCY: 11;2;4;3;1;34;1;2;15;6;6;18;3;1;9;1;55;12;6;2;2;28;2;5;5;2;1;1;1;1;9;10;9;1;2;2
CHECKSUM: E840F166CEC67E39DC7A3F0E95C2F0BC
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
 Click here for more details on above parameters Advanced Algorithm Parameters  Openloop Vd reference Voltage for Rs estimation :  pu (volts)  Frequency Sweep Range for Ld and Lq estimation:  to  Hz  DC bias for Vd during Ld &amp; Lq estimation :  Amplitude for Vd &amp; Vq during Ld &amp; Lq estimation :  Iq reference for torque control / Nominal Current :  Under Voltage limit :  percentage of Input DC Voltage  Over Current limit :  percentage of Nominal Current  Rs estimation time:  seconds  Frequency step size for Ld and Lq estimation:  Hz  End speed for Inertia estimation :  pu (RPM)  pu (volts)  pu (volts) pk - pk  Bits 31:5 Bits 4:0 data index Note: This subsystem is used to glow status LEDs for each parameter test  0 - Vq 1 - Vd 2 - VdcMeas 3 - VqMeas 4 - VdMeas 5 - Speed 6 - Theta 7 - Iq 8 - Id 9 - Ia 10 - Ib 11 - Phase Diff  1st 2nd byte - 00 00 3rd byte - DetPar1 4th Byte(7 Bits) - DetPar2 last bit LSB - testEnable  Note: Following inputs are not required for sensorless Rs Ld Lq Bemf Motor Inertia  Required Inputs Select Board  Nominal Voltage:  Nominal Current:  Nominal Speed:  rpm  V  A (peak value)  Pole pairs:  Input DC Voltage: Friction constant  Ohm  H N.m.s Over Current Under Voltage Serial Communication  Estimated Motor Parameters  Signal from Target  Test Status  Copyright 2020 - 2023 The MathWorks, Inc.  Per Unit Position  Position Offset:  Communication Port  Sensor Selection:  Steps 1. Provide required inputs. 2. Press Ctrl+D to update the workspace 3. Build, Deploy &amp; Start required target models 4. Select port in Host Serial Setup, Host Serial Receive and Host Serial Transmit 5. Run this model to estimate motor parameters 6. To modify the parameters of the estimation algorithm click here 5. Learn more about this example  Total QEP Slits:  Vpk_LL/krpm  H  Kg.m^2  V  Target Models (F28379D + DRV8305): mcb_param_est_f28379D_DRV8305 mcb_param_est_sensorless_f28379D_DRV8305 Target Models (F28069M + DRV8312): mcb_param_est_f28069_DRV8312 mcb_param_est_sensorless_f28069_DRV8312 Models to calibrate Hall Offset: mcb_pmsm_hall_offset_f28069m mcb_pmsm_hall_offset_f28379d Models to calibrate QEP Offset: mcb_pmsm_qep_offset_f28069m mcb_pmsm_qep_offset_f28379d   Phase difference between V &amp; I is in linear region Ld Test Lq Test  Fault Status

BLOCK:
 Demux ; SFunction ; Terminator ;AND;Action Port;AlgoParams;Algorithm;Bitwise AND;Bitwise OR;BoardSel;Callback Button;Change_detect;Combo Box;Compare To Constant;Constant;CurrentPU_RWV;DC bias;Data;Data Type Conversion;Data_Conditioning;Data_Conditioning_Tx;Demux;DetectParam;Display;Edit;Enable;Enabled Subsystem;EnabledSubsystem;ErrorCode;ErrorConditions;Fixed_Point_Target;Floating_Point_Target;From;FromTarget;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;I_rated;Idx;In;Index Vector;Iq ref;Iq_ref;Lamp;LatchIdx;LatchZero;Logical Operator;Mux;Open Loop Vd reference;Out;Overall_Delay;PU2RWV;Parameters;Position_Offset;Product;RWV;R_board;RefVdVqScaling;Reference;Relational Operator;RsMeasTestTime;Scope;SelTestHost;SelectedSignal;Sensor_Selection;SerialReceive;SerialSend;Shift Arithmetic;SigFromTarget;SignalConditioning;SignalScaling;Slider Switch;SpeedScaling;Status;SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Terminator;ThetaScaling;To Workspace;Unit Delay;UserInput;V_bus;V_rated;Vd_dc;Vd_ref_open_loop;Vdq_amp;VoltagePU_RWV;amplitude;boardSelection;bytepack;chageDetect;changeDetect;changeDetected;checkStatus;count;data;errorID;estParIdx;estParam;estParamIdx;estimatedParameter;freq_high;freq_low;freq_step;frequency higher;frequency lower;idx;index;inertia_end_speed;inverter_V_max;over currrent;over_current;pole_pairs;qepSlits;radians2deg;rawInput;selSig;selSignal;sigSel;speed_rated;status;testEnable;testEnable_sigSel1_;testEnable_sigSel1_2 ;under voltage;under_voltage;unused

BLOCKTYPE:
ActionPort;ArithShift;Bitwise Operator;ComboBox;Compare To Constant;Constant;Counter ;CustomCallbackButton;DataTypeConversion;Demux;DisplayBlock;EditField;EnablePort;From;Gain;Goto;Inport;LampBlock;Logic;MultiPortSwitch;Mux;Outport;Product;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Sum;Switch;SwitchCase;Terminator;ToWorkspace;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_param_est_sensorless_f28069_DRV8312
PATH: examples/mcb/main/mcb_param_est_sensorless_f28069_DRV8312.slx
CHECKSUM: 405B27895873D021A0F77732E03AC485
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
To correct Current Direction in DRV8312 Integrator Integrator Position Calculation Vdq_amp * sin(2 * pi * Freq * n * Ts))+Sine_Vdc Vdq_amp * sin(2 * pi * Freq * n * Ts)) Generating Space Vectors  0 - Vq 1 - Vd 2 - VdcMeas 3 - VqMeas 4 - VdMeas 5 - Speed 6 - Theta 7 - Iq 8 - Id 9 - Ia 10 - Ib 11 - PhaseDiff   Debug Vab  Bits 31:5 Bits 4:0 data index 1st 2nd byte - 00 00 3ed byte - DetPar1 4th Byte(7 Bits) - DetPar2 last bit LSB - testEnable Estimated Parameters Flux Observer Data Store  Explore more: For parameter estimation using Hall or QEP sensors, refer to mcb_param_est_f28069_DRV8312. Inputs from Host Parameter Estimation for Permanent Magnet Synchronous Motors  Steps: 1. This example requiresTI F28069 controlCard with DRV8312 EVM connected to a Three-Phase Brushless Motor. 2. Open mcb_param_est_host_read model, update input details, and press Ctrl+D to update the workspace. 3. Build, Deploy &amp; Start this model in target hardware.4. Run mcb_param_est_host_read model to estimate motor parameters.  Algorithm Parameters  Copyright 2020-2023 The MathWorks, Inc.

BLOCK:
; ; Demux ; SFunction ; Terminator ;3-Phase Sine Voltage Generator;ADC Interrupt;ADC_Calibration;AND;Abs;ActSpeed;Action Port;Add;AlgoParams;Algorithm Parameters;AllSig;Alogrithm;Alpha;AlternateData;Alternate_0_;B;Bemf;Beta;Bias;BiasedSineWaveLdMeas;Bitwise AND;ChangeDet;ChangeDetect;Clarke Transform;ClarkePark;ClarkePark ;Compare To Constant;Constant;Control;Control Algorithm;Correction_Factor_sinePWM;Counter Limited;CurrentScaling;D;DRV8312 Reset;DRV8312 Set;DRV8312_Reset;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data Type Propagation;Data conditioning;Data_Conditioning;Data_out;Data_width;Delay;Demux;Derating Function;DetectParam;Direction;Discrete PI Controller with anti-windup & reset;Divide;Duty Cycles;En;Enable;EnableMosfets;End;Equal;ErrorCase;EstPar;EstPara;EstParaIdx;Flux Observer;FluxObserverSubsystem;Freq;Frequency;From;GPIOToggle;Gain;Generating Raw Space Vectors;Goto;HW Interrupt;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;IA IB Measurement;IA/IB;IIR Filter;I_base;I_rated;Ia;Ia/Ib;IaIbVdc;IaIb_adc_counts;Ia_Ib_ADC_count or VdId or VqIq or VaVb;Ia_cal_val;Ialpha;IalphaScaled*R;Ib;Ib_cal_val;Ibeta;IbetaScaled*R;Id;Id Desired;Idx;If;In;Index Vector;Inputs;Inverse Park Transform;Iq;Iq desired;IqRef;Iq_ref;Iteration;J;Ki_iOut;Kp_iOut;LED_Toggle;Ld;Lq;MATLAB Function;MaxSpeed;Merge;Multiport Switch;Mux;MuxAllSignals;NOT;OR;One;Open Loop Start-Up;OpenLoop;OpenLoop2CloseLoop;OpenLoop_CloseLoop;Out;PWM;PWM A/B/C;PWM scaling;PWM_Counter_Period;ParameterEstimationAlgorithm;Park Transform;PhaseDiff;PhaseDiffValidity;Pole_Voltage to Phase_Voltage;Pos/Speed;Pos_Speed;Position;Position Generator;PositionGain;Product;Q;R_board;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);RedSignal;RefSignal;RefSignal ;RefSignal1_;RefVd;RefVdVq;RefVq;Ref_pos;Ref_pos ;Ref_posOL;Reference;Reference signal conditioning;Reset;Rs;RsMeasTestTime;Rs_Measurement;Running;SCI Receive;SCI Transmit;SCI_Rx_INT;Sample_Time;Saturation;SaveToMemory;Scaling;SelSig;SelectSignal;Selector;SendSignalOverSerial;Serial Send;SerialReceive;Shift Arithmetic;Sig;Signal Selection;SignalPU;SignalsPU;Sine;Sine-Cosine Lookup;SineWaveLqMeas;Space Vector Generator;Speed;Speed Measurement;SpeedMeasurementSubsystem;Start;SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Ta;Ta/Tb/Tc;Tb;Tc;Terminator;TestNum;Theta;Torque_Control_with_Speed_Limit;Trigger;Triggered Subsystem;Ts;Unit Delay;V-by-f;V_alpha;V_base;V_beta;V_rated;Va;VaIaVbIb;VaVb_Uint;Vab;Vabc;Vabc_Vdc;Valpha;Valpha ;ValphaScaled;Vao;Vb;Vb Va Measurement;Vbeta;VbetaScaled;Vbo;Vc Measurement;Vco;Vd;VdId;VdVq;Vd_Meas;Vd_dc;Vd_ref;Vdc;Vdc Measurement;Vdq_amp;Vfb_openloop;Voltage Scaling;Vq;VqIq;Vq_Meas;Vq_ref;While Iterator;While Iterator Subsystem;Width;atan;bytepack;cos;counter;curTime;currentPU_RWV;data;ePWM;estParIdx;estParIdxOut;estimatedParameter;estimatedParameterOut;idx;injFreqOut;inverter_V_max;pole_pairs;position_increment;psiAlpha;psiBeta;rawData;refSig;refSignal;refSignalOut;rpm2freq (0.1xspeed_rated);scaling;scalingLd;scalingR;sigma;sin;sinBiased;speed;speedFB;speedPU;speed_rated;testEnable;testEnableFromHost;testEnableFromTrgt;testEnableOut;testEnable_sigSel1_;testNumOut

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Bias;Bitwise Operator;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;Clarke Transform;Compare To Constant;Constant;Counter Limited;Data Type Propagation;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Derating Function;DiscreteIntegrator;EnablePort;From;Gain;Goto;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Inverse Park Transform;Logic;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;RelationalOperator;S-Function;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Sum;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;atan2;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;4;1;36;4;2;5;2;1;1;3;5;27;1;2;36;43;37;38;2;6;17;1;1;4;65;20;33;2;4;1;203;7;1;8;2;4;28;106;2;1;2;3;23;1;1;8;5;3;1;22;11;2;6;4;11;1;1;2;3


MODELNAME: mcb_param_est_sensorless_f28379D_DRV8305
PATH: examples/mcb/main/mcb_param_est_sensorless_f28379D_DRV8305.slx
CHECKSUM: B1B0CBBB57E787790415A2FE01F7321D
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Integrator Integrator Position Calculation 60/(DelayLength*SampleTimeAsync(1)*PU_System.N_base*(2^32)) Speed measurement Vdq_amp * sin(2 * pi * Freq * n * Ts))+Sine_Vdc Vdq_amp * sin(2 * pi * Freq * n * Ts)) Generating Space Vectors  0 - Vq 1 - Vd 2 - VdcMeas 3 - VqMeas 4 - VdMeas 5 - Speed 6 - Theta 7 - Iq 8 - Id 9 - Ia 10 - Ib 11 - PhaseDiff  1st 2nd byte - 00 00 3ed byte - DetPar1 4th Byte(7 Bits) - DetPar2 last bit LSB - testEnable Flux Observer Estimated Parameters Data Store Inputs from Host Parameter Estimation for Permanent Magnet Synchronous Motors  Explore more: For parameter estimation using Hall or QEP sensors, refer to mcb_param_est_f28379D_DRV8305.  Steps: 1. This example requires LaunchXL-F28379D with BoostXL-DRV8305 connected to a Three-Phase Brushless Motor. 2. Open mcb_param_est_host_read model, update input details, and press Ctrl+D to update the workspace. 3. Build, Deploy &amp; Start this model in target hardware.4. Run mcb_param_est_host_read model to estimate motor parameters.  Algorithm Parameters  Copyright 2020-2023 The MathWorks, Inc.

BLOCK:
; ; Demux ; SFunction ; Terminator ;2^32/;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Interrupt;ADC_A_IN;ADC_B_IN;ADC_Calibration;ADC_Gain_Setting;AND;Abs;ActSpeed;Action Port;Add;AlgoParams;Algorithm Parameters;AllSig;Alogrithm;Alpha;AlternateData;Alternate_0_;B;Bemf;Beta;Bias;BiasedSineWaveLdMeas;Bitwise AND;Byte Pack;ChangeDet;ChangeDetect;Clarke Transform;ClarkePark;ClarkePark ;Compare To Constant;Constant;Control;Control Algorithm;Correction_Factor_sinePWM;Counter Limited;CurrentScaling;D;DQ Limiter;DRV8305 Reset;DRV8305 Set;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Propagation;Data_out;Data_width;Delay;DelayLength;Demux;Derating Function;DetectParam;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Duty Cycles;En;Enable;EnableMosfets;End;Equal;ErrorCase;EstPar;EstPara;EstParaIdx;Event Listener;Flux Observer;FluxObserverSubsystem;FluxObvserver;Freq;Frequency;From;GPIOToggle;Gain;Generating Raw Space Vectors;Goto;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;IA/IB;IIR Filter;I_base;I_rated;Ia;Ia/Ib;IaIbVdc;IaIb_adc_counts;Ia_Ib_ADC_count or VdId or VqIq or VaVb;Ia_cal_val;Ialpha;IalphaScaled*R;Ib;Ib_cal_val;Ibeta;IbetaScaled*R;Id;Id Desired;Idx;If;In;Index Vector;Initialize Function;Inputs;Inverse Park Transform;Iq;Iq desired;IqRef;Iq_ref;Iteration;J;Ki_iOut;Kp_iOut;LED_Toggle;Ld;Lq;MATLAB Function;MaxSpeed;Merge;Multiport Switch;Mux;MuxAllSignals;NOT;OR;One;Open Loop Start-Up;OpenLoop;OpenLoop2CloseLoop;OpenLoop_CloseLoop;Out;PWM;PWM A/B/C;PWM scaling;PWM_Counter_Period;PWM_HW;ParameterEstimationTests;Park Transform;PhaseDiff;PhaseDiffValidity;Pole_Voltage to Phase_Voltage;Pos/Speed;Pos_Speed;Position;Position Generator;PositionGain;PositionPU;Product;Q;R_board;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);RefSignal;RefSignal ;RefSignal1_;RefSignal_;RefVd;RefVdVq;RefVq;Ref_pos;Ref_pos ;Ref_posOL;Reference;Reference signal conditioning;Reset;Rs;RsMeasTestTime;Rs_Measurement;Running;Rx_single;SCI Receive;SCI Transmit;SCI_Rx_INT;SPI Master Transfer;SampleTime;Sample_Time;Saturation;SaveEstParam_Serial Send;SaveToMemory;Scaling;SelSig;SelectSignal;Selector;SendSignalOverSerial;Serial Send;SerialReceive;Shift Arithmetic;Sig;Signal Selection;SignalPU;SignalsPU;Sine;Sine-Cosine Lookup;SineWaveLqMeas;Space Vector Generator;Speed;SpeedCount;SpeedMeasurementSubsystem;SpeedToCount;Speed_measurement;Start;SubSystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Ta;Ta/Tb/Tc;Tb;Tc;Terminator;TestNum;Theta;Torque_control_with_speed_limit;Trigger;Triggered Subsystem;Ts;Unit Delay;V-by-f;V_alpha;V_base;V_beta;V_rated;Va;Va Measurement;VaIaVbIb;VaVb_Uint;Vabc;Vabc_Vdc;Valpha;Valpha ;ValphaScaled;Vao;Vb;Vb Measurement;Vbeta;VbetaScaled;Vbo;Vc Measurement;Vco;Vd;VdId;VdVq;Vd_Meas;Vd_dc;Vd_ref;Vdc;Vdc Measurement;Vdq_amp;Vfb_openloop;Voltage Scaling;Vq;VqIq;Vq_Meas;Vq_ref;While Iterator;While Iterator Subsystem;Width;atan;bytepack;cos;count_to_PU;counter;curTime;currentPU_RWV;ePWM;estParIdx;estParIdxOut;estimatedParameter;estimatedParameterOut;injFreqOut;inverter_V_max;pole_pairs;position_increment;psiAlpha;psiBeta;refSig;refSignal;refSignalOut;refSignal_;rpm2freq (0.1xspeed_rated);scaling;scalingLd;scalingR;sigma;sin;sinBiased;speed;speedFB;speedPU;speed_rated;stop;testEnable;testEnableFromHost;testEnableFromTrgt;testEnableOut;testEnable_sigSel1_;testNumOut

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Bias;Bitwise Operator;Byte pack;C28x SCI Receive;C28x SCI Transmit;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;Data Type Propagation;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;Derating Function;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;From;Gain;Goto;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Inverse Park Transform;Logic;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;RelationalOperator;S-Function;Saturate;Selector;Sine-Cosine Lookup;Sum;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;atan2;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;6;1;34;2;2;3;1;1;1;3;8;32;1;1;2;36;45;38;25;3;17;1;1;2;4;1;2;61;22;33;2;4;1;206;7;1;9;2;5;30;105;2;1;2;3;25;1;1;8;3;3;23;10;2;4;4;15;1;1;2;2;3


MODELNAME: mcb_pmsm_PosCtrl_f28379d
PATH: examples/mcb/main/mcb_pmsm_PosCtrl_f28379d.slx
CHECKSUM: 0EBFFF2274B6D989B9F8660B6E40D0BB
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) Input Drivers Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ  Note: Data is logged in host model via serial communication  Note: Communication format bit 0: Enable bits 12 to 15: Debug signal selection Scaling Delays  Copyright 2020-2023 The MathWorks, Inc. Permanent Magnet Synchronous Motor Position Control  Steps: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset 4. Click Build, Deploy &amp; Start in the Hardware tab. 5. Control motor via host model 6. Learn more about this example  Reference Position [degree]  Measured Position [degree] Simulation Input & Output  HW Prerequisites 1. TI F8379D LaunchPad 2. BOOSTXL-DRV8305 Booster pack or BOOSTXL-3PhGaNInv 3.PMSM motor with QEP sensor Global Variables

BLOCK:
 ; Calculate Position and Speed;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Calculate Position;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Current Control;Current Sense Gain;Current sense gain;Current_Controllers;DQ Limiter;DRV Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycle;Duty_Cycles;Duty_abc;Edit;Embedded Processor;EnClosedLoop;Enable;Enable_PWM;End;Event Listener;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Gain;Get_ADC_Counts;Get_ADC_Volt;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Iab;Iab_meas_PU;Ib_ADC;Id;Id_control;Id_ref;Ida_ref_PU;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter Enable;Inverter and Motor - Plant Model;InverterSignal;Iq;Iq_control;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Log Position (sim);Logical Operator;MechPos_PU;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;P_Controller_Position;Park Transform;Parse;PhaseCurr;Pos;Pos And Speed;Pos and Speed;PosRef (degree);PosRef_PU;Pos_PU;Pos_Ref;Pos_Ref_PU;Pos_fb;Pos_fb_PU;Position Generator;Position Ref Selector;Position and Speed Control;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;ReferencePosition;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor Drivers;Sensor signals;Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Sim_Feedback;Sim_fb;Sim_feedback;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Measurement;Speed_PU;Speed_Ref_PU;Speed_ref(rpm);Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop ;T_load;Terminator;Theta_e;Theta_m;Trigger;V-by-f;V_ref;Vabc;Vabc in PU;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wrap;codegen;ePWM;eQEP;in;out;pos_ctrl;position_increment;rad;rpm2freq;speed;speed_control;stop;unParse;zero crossing in Anti CW direction;zero crossing in CW direction;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;DisplayBlock;EditField;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;4;1;8;3;1;2;4;1;1;2;1;1;1;2;51;1;1;7;13;11;23;1;6;18;1;2;1;1;7;1;4;1;3;2;18;3;4;2;2;4;99;1;11;2;1;2;2;2;27;86;3;1;1;1;5;1;9;5;2;1;1;1;17;1;9;12;2;2;1;1;1;2;3


MODELNAME: mcb_pmsm_SIUnit_host_model
PATH: examples/mcb/main/mcb_pmsm_SIUnit_host_model.slx
BLOCKTYPE_FREQUENCY: 2;3;4;6;1;1;1;12;1;2;12;1;1;2;1;1;1;1;1;2;1;2;1
CHECKSUM: 59DA18272B06B04637F14B8B23FB18D8
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX RX FOC Host for SI Unit Example Copyright 2020-2023 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Simulate this model 3. Use Motor switch to control the motor. 4. Enter Reference speed in RPM using edit box           Motor  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_foc_qep_f28379d_SIUnit 2.You should see and verify the variables from the target model in the base workspace. 

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug_signals;Enable;Enable_PWM;Enabled Subsystem;FWC Enable;Host Serial Receive;Host Serial Setup;Host Serial Transmit;In;Input;Logical Operator;MATLAB Function;Motor Start Stop;Mux;Out;Output;Parse;Radio Button;Rate Transition;Reference;Reference Speed [RPM];Relational Operator;Scope;Scope (Per-Unit);Serial Communication;Shift Arithmetic;Signal ;Slider Switch;Speed demand (RPM);SubSystem;Sum;Unit Delay

BLOCKTYPE:
ArithShift;Bitwise Operator;Constant;DataTypeConversion;Demux;EditField;EnablePort;Inport;Logic;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Sum;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_pmsm_adrc_host_model_f28379d
PATH: examples/mcb/main/mcb_pmsm_adrc_host_model_f28379d.slx
BLOCKTYPE_FREQUENCY: 2;3;8;8;3;2;1;1;1;1;1;16;1;1;2;17;2;1;2;2;1;2;1;1;2;2;1;2;1
CHECKSUM: 089E11E732D1FFF1C25762D73AC38E7F
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Rx TX  PMSM Control Host Active Disturbance Rejection Control Copyright 2022-2023 The MathWorks, Inc.  Note: 1. Set the serial port to target.comport in the init script of the target model. 2. Use Motor Control Type switch to control motor. 3. Input speed request using Reference Speed block. 4. Observe the debug signals in scope. Caution: When the motor is running, do not change the Motor Control Type switch position directly from PI to ADRC or ADRC to PI. Instead, use the switch to stop the motor first before making a transition to a new controller type  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_adrc_qep_f28379d 2. The variables from the target model are loaded to the base workspace. 

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Convert_to_SI_Units;Ctrl_type;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug1 (SI units);Debug2 (SI units);Debug_signals;Demux;Display;Display_Value;Enable;Enable_PWM;Enabled Subsystem;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_Ib;Ia_Pos;Id_control;In;Input;Iq_control;IsEnable;IsPIEn;Logical Operator;MATLAB Function;Motor Control Type;Multiport Switch;Mux;Out;Output;Parse;Product;Radio Button;Rate Transition;Reference;Reference Speed (RPM);Relational Operator;Scope (Per-Unit);SelectedSignals;Serial Communication;Shift Arithmetic;Speed_control;SubSystem;Sum;Unit Delay;debug_;u

BLOCKTYPE:
ArithShift;Bitwise Operator;Constant;DataTypeConversion;Demux;Display;EditField;EnablePort;From;Gain;Goto;Inport;Logic;MultiPortSwitch;Mux;Outport;Product;RadioButtonGroup;RateTransition;RelationalOperator;RotarySwitchBlock;S-Function;Scope;Sum;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_pmsm_adrc_qep_f28379d
PATH: examples/mcb/main/mcb_pmsm_adrc_qep_f28379d.slx
CHECKSUM: E866F929FC917C047A86FCAB8D50374B
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays  Note: Uncomment above subsystem to see vector plot Select the control type from radio button  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv connected to a PMSM Motor with QEP Sensor  Copyright 2022-2023 The MathWorks, Inc. PMSM control using Active Disturbance Rejection Control  Explore more: 1. Edit motor &amp; inverter parameters 2. For Simulation, Use Select Control type for Simulation radio button to select the control type 3. For hardware deployment, follow the steps a. Use Offset computation model to find out position offset. b. Update offset in Init script to variable pmsm.PositionOffset c. Build, Deploy &amp; Start d. Control motor via host model 6. Learn more about this example.

BLOCK:
 ; Calculate Position and Speed;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;ADRC_Controller_Id;ADRC_Controller_Iq;ADRC_Controller_Speed;ADRC_Controllers;AND;Abs;Action Port;Active Disturbance Rejection Control;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Ctrl_type;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable_PWM;End;Event Listener;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Pos;Iab;Iab_PU;Iab_meas_PU;Iabc;Ib_ADC;Id;Id_control;Id_ref;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq_control;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Position;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Radio Button;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Reversal;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref;Speed_Ref_Final (rpm);Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref(rpm);Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop ;T_load;Terminator;Theta_e;Theta_mech;Theta_rad;V-by-f;V_ref;Vabc;Vabc in PU;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vector Plot;Vector plot;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;debug_terminator;ePWM;eQEP;in;out;position_increment;rad;rpm2PU;rpm2freq;speed;speed_PU;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;Active Disturbance Rejection Control (ADRC);ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RadioButtonGroup;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4;mcb_vectorplot

BLOCKTYPE_FREQUENCY:
1;4;1;8;3;4;1;2;5;1;1;2;1;1;1;2;53;1;2;7;17;12;24;1;4;15;1;2;6;1;4;1;7;1;17;7;4;1;4;4;113;5;1;11;2;2;2;2;2;23;93;3;1;1;1;4;1;1;9;3;2;1;1;4;12;1;18;12;1;1;1;1;1;2;3;1

PRODUCT:
C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink;Simulink Control Design


MODELNAME: mcb_pmsm_dtc_f28379d
PATH: examples/mcb/main/mcb_pmsm_dtc_f28379d.slx
CHECKSUM: 6FAFAA5ED3267D884AAF19ECC56DC8A5
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Enable inverter in CPU1 for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1 Hz Delays Scaling Current Measurements Position & Speed Measurements for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit)  Equations used: PsiAlpha = Ld * Ialpha + FluxPM * cos (theta) PsiBeta = Lq * Ibeta + FluxPM * sin(theta) Flux = sqrt( PsiAlpha^2 + PsiBeta^2) Torque estimated = (3/2) * PolePairs * ((PshiAlpha * Ibeta) - (PsiBeta * Ialpha)) Permanent Magnet Synchronous Motor - Direct Torque Control  Steps: 1. Edit motor &amp; inverter parameters 2. Select type of position feedback using radio button 3. If quadrature encoder is used use Offset computation model to find out position offset. 4. Update offset in Init script to variable pmsm.PositionOffset 5. Simulate this model and observe the results in Simulation Data Inspector 6. Build, Deploy &amp; Start 7. Control motor via host model 8. Learn more about this example.  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 or BOOSTXL-3PhGaNInv booster pack connected to a PMSM Motor  Copyright 2021-2023 The MathWorks, Inc.

BLOCK:
6PWM_Mode;ADC Gain Setting;ADCINT;ADC_B;ADC_B_IN;ADC_C;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Alpha;Average-Value Inverter;Beta;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Flux Ref;Calculate Phase Currents;Clarke Transform;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Counter Limited;DC component removal;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable_PWM;End;Event Listener;Feedbacks;Feedbacks_sim;Flux Observer;Flux Torque;FluxRef;FluxTorque;FluxTorque_debug;Flux_Ref;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;Ia_Pos;Iab;Iab_ADC;Iab_PU;Iab_meas_PU;Id_control;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifier;Iq_control;Iteration;Ki;Kp;Limit to Base speed;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset voltage;One_by_Two;Open_Loop_Control;Out;Output Scaling;PI_Controller_Speed;PI_Controller_Torque;PI_Controller_flux;PI_Controllers;PU;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Parse;PhaseCurr;Pos_PU;Pos_PU_Out;Pos_fb_Drivers;Position;Position Feedback;Position Generator;Product;Q17 per unit conversion;QEP;QEP_In;Quadrature Decoder;Quadrature Encoder;RED_LED;RT;Radio Button;Ramp;Ramp Generator;Rate Transition;Reference;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Scope;Selector;Sensor_Measurements;Sensorless;Serial Receive;Shift Arithmetic;SigIN;SigOUT;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed / Pos;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_PU;Speed_Ref;Speed_Ref_CW (rpm);Speed_Ref_OL;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref;Sqrt;Square;Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop ;T_fb;T_load;T_ref;T_ref_PU;Terminator;Theta_PU;Torque;Torque Control;Torque flux estimator;Torque_Ref;Tref_PU;Trigger;Unit Delay;VI_fb;V_ref;Vabc;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_OpenLoop;Vd_ref;Vq_OpenLoop;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;cos;ePWM;eQEP;elect2mech;flux;flux_fb;flux_ref;in;out;rad;rpm2PU;sim;sine;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;Flux Observer;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Position Generator;Product;Quadrature Decoder;RadioButtonGroup;RateTransition;Saturate;Scope;Selector;Sine-Cosine Lookup;Speed Measurement;Sqrt;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;4;8;3;1;2;4;1;1;2;1;1;1;4;47;1;1;6;18;11;23;1;5;15;1;2;4;1;4;1;1;7;2;22;7;5;2;7;4;95;1;13;4;1;2;2;2;26;84;3;1;1;6;1;1;10;6;1;4;1;2;1;3;16;1;9;9;2;2;1;2;1;1;2;3


MODELNAME: mcb_pmsm_dtc_host_f28379d
PATH: examples/mcb/main/mcb_pmsm_dtc_host_f28379d.slx
BLOCKTYPE_FREQUENCY: 2;3;4;6;1;1;1;1;12;1;2;12;1;1;2;1;1;1;1;1;2;1;2;1
CHECKSUM: 2799F7CAFB2B397ED6A4B41BDD6E3CE9
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX Rx  PMSM Direct Torque Control Host  Copyright 2021-2023 The MathWorks, Inc.  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_dtc_f28379d 2.The variables from the target model are loaded to the base workspace.   Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Simulate this model 3. Use Start / Stop Motor switch to control the motor. 4. Enter Reference speed in RPM (limit to base speed) using edit box. 5. Use the radio button to select the pair of debug signals. Observe these signals in Scope. 

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug_signals;Display_Value;Enable;Enable_PWM;Enabled Subsystem;FWC Enable;Gain;Host Serial Receive;Host Serial Setup;Host Serial Transmit;In;Input;Logical Operator;Motor;Motor Enable;Mux;Out;Output;Parse;Radio Button;Rate Transition;Reference;Reference Speed (RPM);Reference Speed [RPM];Relational Operator;Scope;Scope (Per-Unit);Serial Communication;Shift Arithmetic;Signal ;SubSystem;Sum;Unit Delay

BLOCKTYPE:
ArithShift;Bitwise Operator;Constant;DataTypeConversion;Demux;EditField;EnablePort;Gain;Inport;Logic;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Sum;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_pmsm_foc
PATH: examples/mcb/main/mcb_pmsm_foc.slx
ANNOTATION: Current Measurements Field-Oriented Control for PMSM Copyright 2020-2023 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 1;1;1;6;1;2;16;1;3;1;4;2;4;1;3;2;9;2;2;46;1;7;1;8;30;3;1;1;1;2;1;3;1;2;1;1;6;3;3
CHECKSUM: 2B278C670B0A8C8DBF69C18398594062
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
 ; Calculate Speed;3-Phase Sine Voltage Generator;AND;Abs;Add;Bus Selector;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Commands;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Current Control;Current_Controllers;DQ Limiter;Data Store Read;Data Store Write;Data Type Conversion;Debug;DebugDemux;DebugSignals;Delay;Demux;Direction;Discrete PI Controller with anti-windup & reset;Divide;Duty;Duty Cycles;Duty_Cycles;EnClosedLoop;Enable;From;Gain;Goto;IIR Filter;I_fb;I_ref;Ia_ADC;Iab_meas_PU;Ib_ADC;Id;Id_Ref;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;In;IndexFinder;IndexFound;Input Scaling;Inverse Park Transform;Iq;Iq_ref;Ki;Kp;Logical Operator;Mechanical to Electrical Position;Mux;NOT;N_fb;N_ref;Offset;One;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;Pos_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Reference;Sample_Time;Saturation;SensorSignals;SensorSigs;Signal Conversion;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_meas_PU;Speed_ref(rpm);SubSystem;Sum;Switch;Terminator;Theta_e;V-by-f;V_ref;Vabc in PU;Vd_ref;Vq_ref;debug_terminator;position_increment;rpm2freq;speed;speed_PU

BLOCKTYPE:
3-Phase Sine Voltage Generator;Abs;ArithShift;BusSelector;Clarke Transform;Compare To Constant;Constant;DQ Limiter;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;DiscreteIntegrator;EnablePort;From;Gain;Goto;IIR Filter;Inport;Inverse Park Transform;Logic;Mechanical to Electrical Position;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Saturate;SignalConversion;Sine-Cosine Lookup;Speed Measurement;Sum;Switch;Terminator


MODELNAME: mcb_pmsm_foc_autotuner
PATH: examples/mcb/main/mcb_pmsm_foc_autotuner.slx
BLOCKTYPE_FREQUENCY: 1;6;1;3;11;1;6;6;6;7;4;7;6;3;1;7;1;7;7;3;42;1;1;1;7;30;3;1;1;13;1;1;1;3;7;1;4;4;1
CHECKSUM: 1AB2EF6DCDB2122410E6AE4B76C1CC63
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Scaling Delays Tuning PI controllers for current and speed using FOC Autotuner  Copyright 2020 The MathWorks, Inc.  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate the model to compute the PI gains

BLOCK:
ADCINT;AT_StrtStp;Add;AutoTuneStratStop;Autotuner_StartStop;Average Inverter;Average-Value Inverter;Bus Selector;Clarke Transform;Compare To Constant;Constant;Control_System;Crnt_Prtb;Crnt_StrtStp;Current Control;CurrentLoop_AutoTune_In;Current_Controllers;DQ Limiter;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Delay;Demux;Desired Speed;Discrete PI Controller with anti-windup & reset;Display;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;Enable;FOC AutotunerSwitch;FOC_AutoTune_Signals;FOC_AutoTuner;FOC_Autotuner_Output;FOC_Autotuner_Perterb;FOC_Autotuner_Signals;Feedbacks_sim;Field Oriented Control Autotuner;Foc_Autotuner_Output;From;Gain;Get_PU;Get_PU ;Goto;IIR Filter;I_fb;I_ref;Iab_meas_PU;Id;Id_ref;IdqRef_PU;Idq_ref_PU;Info;Input;Input Scaling;Inverse Park Transform;Inverter and Motor - Plant Model;Iq;Iq_ref;Ki;Kp;Load_Profile (Torque);Load_Trq;Mechanical to Electrical Position;Mod;Mux;N_fb;N_ref;One_by_Two;Out;Output Scaling;PI Gains;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PI_Params_Display_and_Logging;PU;Park Transform;Perterb_Speed;PhaseCurr;Pos_PU;RT;Rate Transition;Reference;Reversal;Rpm_Ref;Scheduler;Selector;Sensor_Measurements;Sim_fb;Sine-Cosine Lookup;Space Vector Generator;Spd_Act;Spd_PI_In;Spd_Prtb;Spd_StrtStp;Speed Control;Speed Measurement;Speed Ref;Speed_Meas_PU;Speed_Ref_Final (rpm);Speed_Ref_Init (rpm);Speed_Ref_PU;Speed_fb;Speed_ref;StartStop;SubSystem;Sum;Surface Mount PMSM;Switch;T_load;Terminator;Trigger;Update PI gains for Id;Update PI gains for Iq;Update PI gains for Speed;V_ref;Vabc;Vabc in PU;Vabc_ref;Vd Ref;Vd_ref;Vq Ref;Vq_ref;loop startstops;perturbation_spd;rad;rpm2PU;speed_PU

BLOCKTYPE:
Average Value Inverter;BusSelector;Clarke Transform;Compare To Constant;Constant;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;Display;EnablePort;FOCAutoTuner;From;Function-Call Generator;Gain;Goto;IIR Filter;Inport;Inverse Park Transform;Math;Mechanical to Electrical Position;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;RateTransition;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort


MODELNAME: mcb_pmsm_foc_autotuner_f28379d
PATH: examples/mcb/main/mcb_pmsm_foc_autotuner_f28379d.slx
CHECKSUM: 6C23B12531D745B139311EDB620916BB
PRODUCT_BASECODE: MT
ANNOTATION:
 Note: Transmit headers before transmitting each data 11 : Kp_Id 21 : Ki_Id 31 : Kp_Iq 41 : Ki_Iq 51 : Kp_Speed 61 : Ki_Speed 71 : Status of Autotuner  Current Measurements Position & Speed Measurements QEP for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays  Copyright 2021-2023 The MathWorks, Inc. Tuning PI controllers for current and speed using FOC Autotuner  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv connected to a PMSM Motor with QEP Sensor  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example

BLOCK:
 ; Calculate Position and Speed; Demux ; SFunction ; Terminator ;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;ActiveLoop;Add;Add Offset;Autotuner Mode Control;AutotunerStart;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Chart;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegen;Codegeneration;Compare To Constant;Constant;Control_System;Conv;Convergence;Correction_Factor_sinePWM;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;DebugSignals;Debug_Signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Desired_Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable_PWM;End;Event Listener;FOC_Autotuner;Feedbacks;Feedbacks_sim;Field Oriented Control Autotuner;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia & Pos;Ia_ADC;Iab;Iab_Meas_PU;Iab_meas_PU;Ib_ADC;Id;Id_Ctrl;Id_fb;Id_ref;Idq;IdqRef;Idq_Debug;Idq_Ref_PU;Idq_debug;Idq_fb;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;InitPIParams;Input;Input Scaling;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;IqRef_PU;Iq_Ctrl;Iq_Ref;Iq_Ref_PU;Iq_fb;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PID;PIDout_Daxis;PIDout_Qaxis;PIParams;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PI_Param_Init;PI_Params;PI_Params_Display_and_Logging;PI_Params_Out;PI_Params_Tx;PU;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;ParameterSelect;Park Transform;Parse;Perturbation_Daxis;Perturbation_Qaxis;Perturbation_Speed;PhaseCurr;Pos_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Signal Editor;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_PU;Speed_Ref_In;Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref(rpm);Start;StartStop;StartTuning;Stop;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to Initial PI Params;Switch to closed loop ;T_load;T_load_final;Terminator;Theta_e;Trigger;Ts;Update PI gains for Id;Update PI gains for Iq;Update PI gains for Speed;UpdatePIParams;V-by-f;V_ref;Vabc;Vabc_PU;Vabc_Ref;Variant Sink;Variant Source;Variant Subsystem;Vd Ref;Vd_ref;Vq Ref;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;conv & Speedfb;ePWM;eQEP;in;out;position_increment;rad;rpm2freq;speed;speed_control;stop;torque change;tune;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;FOCAutoTuner;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;S-Function;Saturate;Selector;SignalEditor;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;4;1;8;7;1;2;8;6;1;1;1;1;1;8;59;2;1;16;23;26;19;1;4;13;1;8;8;1;4;1;1;9;1;19;9;4;1;3;4;111;3;1;13;2;1;2;2;2;24;91;3;1;1;1;7;1;11;1;3;3;1;1;1;5;16;1;11;7;2;1;1;1;1;2;3

PRODUCT:
C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Motor Control Blockset Documentation;Simulink;Stateflow


MODELNAME: mcb_pmsm_foc_autotuner_speedgoat
PATH: examples/mcb/main/mcb_pmsm_foc_autotuner_speedgoat.slx
CHECKSUM: F9C8CBDE1C02B45096D54FF5E08F74E9
PRODUCT: MATLAB;Motor Control Blockset;Motor Control Blockset Documentation;Simulink;Simulink Real-Time
PRODUCT_BASECODE: MT
ANNOTATION:
Kp_Id Ki_Id Kp_Iq Ki_Iq Kp_Speed Ki_Speed Scaling Delays Speedgoat Outputs Speedgoat Inputs Open loop speed ref input is limited to 500 RPM to 1200 RPM in either direction  Note: 1. Update parameters in Init script. 2. Simulate the model to see speed response. 3. Build the model, load and run the application on hardware. Refer documentation for instructions to run model. 4. Open Data Inspector to see logged signals (including PI parameters). 5. Update the PI parameters in Init script, FOC Autotuner can be disabled using Radio button selection below for consecutive runs.  Tuning PI controllers for current and speed using FOC Autotuner on Real-Time Target  Note: This example requires Speedgoat Baseline Real-Time Target machine with IO-397 and Electric motor control kit  Copyright 2020-2023 The MathWorks, Inc.

BLOCK:
 ; Calculate Position and Speed; Demux ; Inverter Enable; SFunction ; Terminator ;3-Phase Sine Voltage Generator;AND;AT_StrtStp;Abs;Action Port;Add;Allow task overrun during tuning;Amp to Volt;AutoTuneStratStop;Autotuner Enable;Autotuner_StartStop;Average-Value Inverter;Bus Creator;Bus Selector;Clarke Transform;Closed Loop;ClosedLoopEnable;Compare To Constant;Condition Encoder;Constant;Control Algorithms;Control system;Controller Input;Controller Inputs;ControllerInputs;Controller_Inputs;Correction_Factor_sinePWM;Count;Covert to Per Unit;Current;Current Control;Current Controllers;Current Measurement;Current Measurement Offset Calibration;Current Offset;Current measurement gain;CurrentLoop_AutoTune_In;Currents in SI Units;DQ Limiter;Data Type Conversion;Delay;Demux;Digital output;Direction;Disable Closed Loop;Discrete PI Controller with anti-windup & reset;Display PI Params;Divide;Duty_Cycles;EnClosedLoop;EnOutput;Enable;Enable Closed Loop;FOC_AutoTune_Signals;FOC_AutoTuner;FOC_Autotuner_Output;FOC_Autotuner_Perterb;FOC_Autotuner_Signals;Field Oriented Control Autotuner;Foc_Autotuner_Output;Frequency;From;Gain;Get_PU;Goto;IIR Filter;IO397 Analog Input;I_fb;I_ref;Iab fb;Iab_fb;Iab_meas_PU;Id;Id_Ref;Id_fb;Id_ref;IdqRef_PU;Idq_Ref_PU;Idq_ref_PU;If;If Action Subsystem;In;Info;Input;Interior PMSM;Inverse Park Transform;Inverter Inputs;Inverter and Motor;Inverter and Motor Plant Model;Iq;Iq_Ref;Iq_fb;Iq_ref;Ki;Kp;Limit Speed Ref;Load_Profile (Torque);Load_Trq;Log Offset;Log signals;Logical Operator;Loop_Start_Stop;Loop_Start_Stops;Math Function;Mechanical to Electrical Position;Merge;Mod;Mode;Mode Switch;Motor Drive;Multiply;Mux;NOT;N_fb;N_ref;Offset;Offset Calibration Mode;One;One_by_Two;Open Loop;Open Loop Speed Reference;OpenLoopEnable;Out;Output;OutputScaling;Overload Options;PI Parameters for Id Iq Speed;PID_Gains;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PWM Duty Cycles;PWM generation (5);PWM_Duty_Cycles;PWM_Enable;Park Transform;Perterb_Speed;Perturbation_Speed;Perturbations;Perunit to RPM;PhaseCurr;Pos fb;Pos_In;Pos_PU;Pos_fb;Position Generator;Position Select;Product;QAD;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RT;Radio Button;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Reset;Sample_Time;Saturation;Selector;Sensor_Measurements;Setup;Sine-Cosine Lookup;Space Vector Generator;Spd_Act;Spd_Ref_Disable;Speed;Speed Control;Speed Measurement;SpeedRefToFreq;Speed_Meas_PU;Speed_Ref;Speed_Ref_In;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref;Speedgoat Drivers;StartStop;SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;System Inputs;Terminator;Theta;ThetaIn;Theta_e;Up counter;V-by-f;V_ref;Vabc;Vabc in PU;VabcCalc;Vabc_ClosedLoop;Vabc_OpenLoop;Vd;Vd_Calib;Vd_ref;Vdq Select;Voltage;Vq;Vq_Calib;Vq_ref;Wrap to Positive;Zero Position;Zero offset during calibration;controllerOutput;inverterEnable;motorCommands;position_increment;pwmCompare;rpm2freq;u;y

BLOCKTYPE:
3-Phase Sine Voltage Generator;Abs;ActionPort;Average Value Inverter;BusCreator;BusSelector;Clarke Transform;Compare To Constant;Constant;DQ Limiter;DataTypeConversion;Delay;Demux;DiscreteIntegrator;Display;EnablePort;FOCAutoTuner;From;Gain;Goto;IIR Filter;If;Inport;InportShadow;Interior PMSM;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Merge;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RadioButtonGroup;RateTransition;S-Function;Saturate;Selector;SignalEditor;Sine-Cosine Lookup;Speed Measurement;Speedgoat Encoder Counter;Sum;Switch;SwitchCase;Terminator;ad_IO397;do_fpga_a2;pwm_fpga_5;qad_fpga_a3;setup_fpga_3;slrtOverloadOptions

BLOCKTYPE_FREQUENCY:
1;1;8;1;2;14;1;3;34;1;14;7;12;1;1;5;1;15;21;12;3;2;105;3;1;1;7;2;1;4;20;76;3;1;1;1;2;1;2;15;1;4;1;1;1;1;1;11;12;1;15;1;1;1;1;1;1


MODELNAME: mcb_pmsm_foc_f28379d_dyno
PATH: examples/mcb/main/mcb_pmsm_foc_f28379d_dyno.slx
CHECKSUM: 87D28BFE3161E068C93AB91993146497
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Enable EnMtrCtrl (motor1 current control), if Enable (from host model) is true and EnClosedLoop (QEP Index found) is true Current Measurements Position & Speed Measurements QEP for BoostXL-DRV8305 connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) Signal Index used in Multiport switch Mtr1 -------- 1. Id_ref 2. Id_meas 3. Vd_out 4. Iq_ref 5. Iq_meas 6. Vq_out 7. Te 8. Pm 9. Speed_meas 10. Ia_meas 11. Ib_meas 12. Pos Mtr2 -------- 13. Id_ref 14. Id_meas 15. Vd_out 16. Iq_ref 17. Iq_meas 18. Vq_out 19. Te 20. Pm 21. Speed_meas 22. Ia_meas 23. Ib_meas 24. Pos 25.Speed ref  Add 2 seconds delay from Enable and Closed-loop enable. This ensures motor with speed control starts and settles before motor with torque control starts. In simulation, delay 0.5 second after Enable and EnClosedLoop (Index found). QEP Position & Speed Measurements Current Measurements System Outputs for BoostXL-DRV8305 connected with LaunchXL-28379D  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Enable inverter for Motor 1 Enable inverter for Motor 2 System Outputs Block priorities are set to ensure the sequence of operation. for BoostXL-DRV8305 connected to LaunchXL-28379D Heartbeat LED 1HZ Delays Scaling Scaling Delays  Motor 2 shaft is mechanically coupled with Motor 1 and follow the speed of Motor 1. Motor 1 is loaded by Motor 2. Input 0 voltage till Motor 2 torque control is enabled.  Note: 1. Be cautious when using &quot;Imag_pos&quot; values other than 90 or 270 degrees. These values generate current along the d-axis that creates magnetizing effect. Excess current along d-axis can create saturation/damage magnets.  PMSM Motor-Dyno  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset for both motors. 3. Update offset in Init script to variable pmsm_motor1.PositionOffset pmsm_motor2.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model6. Learn more about this example. Note: This example requires a TI F28379D LaunchPad with two BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv connected to a PMSM Motor-Dyno with QEP Sensors Copyright 2020-2023 The MathWorks, Inc.

BLOCK:
 ; Calculate Position and Speed;3-Phase Sine Voltage Generator;ADC Calib Enable;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bottom DRV8305 EN;Bus Creator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Calibrate ADC offset for motor 1 current sensor;Calibrate ADC offset for motor 2 current sensor;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Compare To Constant;Constant;Control_System;Convert_PU;Correction_Factor_sinePWM;Counter Limited;Current control for motor;Current_Controllers;DQ Limiter;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signals;Default ADC Offset;Delay;Delay 0.5 sec;Delay to start motor1 (codegen);Delay to start motor2 (sim);Demux;Desired Imag;Desired Imagpos;Desired Speed;Desried Imag ref;Digital Output;Direction;Disable EnMtr2TrqCtrl;Discrete PI Controller with anti-windup & reset;Divide;Dummy;Duty Cycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable DRV8305 for motor 1 and motor ;Enable EnMtr2TrqCtrl;Enable EnMtr2TrqCtrl after 2 sec delay;Enable Motor2 after a delay;Enable MotorCtrl;Enable_PWM;Enabled Subsystem;End;Event Listener;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;GPIO;GPIO Trig;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_ADCC1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Init;HW_Init (Codegen);HW_Init (sim);HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Iab_meas_PU;Ib_ADC;Id;Ida_ref_PU;IdqRef_PU;Idq_ref_PU;If;If Action Subsystem;ImagRef;Imag_Pos_PU;Imag_Ref_PU;Imag_pos_deg;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Interrupt;Inverse Park Transform;Inverter;Inverter 1 Enable;Inverter 2 Enable;Inverter Signals;Inverter enable;Inverter_delay;Inverting / Non-inverting Current measurement amplifieer;Iq;IqRef_PU;IqRef_current_to_PU;Iteration;Ki;Kp;Logical Operator;MTPA Control Reference;Mechanical to Electrical Position;Memory;Merge;Mod;Motor 1 - Speed control;Motor 2 - Torque control;Motor1 and Motor2 coupled;Motor1 speed ref in rpm;Motor1_Measurements;Motor2 Imag_pos_deg;Motor2 Imag_ref in A;Motor2_Measurements;Mtr1 Inverter;Mtr2 Inverter;Mtr2_Speed_PU;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PMSM Feed Forward Control;PMSM Torque Estimator;PU;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;Parse SCI Rx;PhaseCurr;Pos_PU;Pos_to_PU;Position Generator;Product;Pulse Generator;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Rx;SCI Receive;SCI Transmit;SCI_Rx;SCI_Rx_INT;SCI_Tx;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selected Signal;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Serial Receive;Serial Rx;Shift Arithmetic;Signal Packing;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Limiter;Speed Measurement;Speed control for motor;Speed_Meas_PU;Speed_Ref_In;Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_max (rpm);Speed_ref(rpm);Speedref;Start;SubSystem;Subsystem;Sum;Switch;Switch to closed loop ;Terminator;Theta_e;Torque control for motor;Trigger;Trq_ref;Unit Delay;V-by-f;V_ref;Vabc;Vabc in PU;Vabc_ref;Variant Sink;Variant Source;Vd_ref;Vector Control Reference;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wm_fb;Wrap;debug;ePWM;eQEP;in;motor1_duty;motor2_duty;mtr1_debug;mtr2_debug;mtr2_speed_PU;out;position_increment;rad;rpm2PU;rpm2freq;sim_fb_motor;speed;speed_PU;speed_motor;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusCreator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Derating Function;DiscreteIntegrator;DiscretePulseGenerator;DiscreteTransferFcn;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;MTPA Control Reference;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PMSM FeedForward Control;PMSM Torque Estimator;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;Vector Control Reference;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;8;1;13;4;2;2;4;2;4;1;2;1;2;2;2;100;1;3;10;25;21;38;2;6;23;1;1;2;2;14;1;7;2;15;3;32;15;8;3;4;7;151;2;20;1;4;2;4;2;2;38;132;5;2;2;2;2;1;7;2;14;5;3;2;2;2;26;2;16;10;5;2;2;2;1;1;1;6


MODELNAME: mcb_pmsm_foc_hall_f28069m
PATH: examples/mcb/main/mcb_pmsm_foc_hall_f28069m.slx
CHECKSUM: A3E97215B82579F0B205B1C963CE22F9
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring (16-bit)  Note: The glitch filter rejects lower values of the speed count input, which resutls in motor speed greater than 10 times Base speed Enable PWM output Heartbeat LED 1HZ Heartbeat LED 1HZ Scaling Delays  Copyright 2020 - 2023 The MathWorks, Inc. Field-Oriented Control for PMSM with Hall sensor Note: This example requires a TI F28069m with DRV8312 connected to a PMSM Motor with Hall Sensor  Explore more: 1. Edit motor &amp; inverter parameters 2. Use offset computatation model to find out position offset 3. Update offset in Init script to variable pmsm.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
0A in ADC counts;ADC Calib Enable;Action Port;Add;Add Offset;Atomic Hall Reading;Average-Value Inverter;Bias;Bitwise AND;Bus Selector;Calculate ADC Offset ;Calculate Position from Hall;Capture Event Select;Capture Event Selection;Clarke Transform;Code Generation;Code generation;CodeGen;Codegeneration;Compare To Constant;Constant;Control_System;Convert ADC value to PU;Count;Counter;Counter Limited;CounterIn;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV_8312 EVM is using an inverted amplifier circuit for current sensing;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning;Data_Log;Data_Logging;Data_out;Data_width;DebugDemux;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Dir;Disable Interrupts for Atomic Read;Discrete PI Controller with anti-windup & reset;Divide;Duty Cycles;Duty_Cycles;Duty_abc;Enable;End;Event Listener;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Function-Call Generator;Function-Call Split;Function-Call Subsystem;Get ADC Count;Get Current Sense Voltage;Get_PU;Glitch Filter;Goto;Ground;HW Interrupt;HWI_ADCINT;HWI_ECAP1_INT;HWI_ECAP2_INT;HWI_ECAP3_INT;HWI_SCIRXINTA;HW_INT;Hall Sensor A;Hall Sensor B;Hall Sensor C;Hall Speed and Position;Hall State;Hall Validity;HallSignal;HallState;HallValidity;Hallchange;Halls;Hardware Init;Heartbeat LED;IA/IB Measurement;IIR Filter;I_fb;I_ref;Iab_Meas_ADC;Iab_Meas_PU;Iab_Sim;Iab_fb;Iab_fb_Sim;Iab_meas_ADC;Iab_meas_PU;Id;Id_ref;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;Info;Input;Input Scaling;Integrity_Check;Inverse Park Transform;Inverter;Inverter Signals;Inverter and Motor - Plant Model;Iq;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Memory Copy;Merge;Min;Mod;Mux;NOT;N_fb;N_ref;No_Integrity_issue;Offset voltage;One_by_Two;Out;Output;Output ;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;PhaseCurr;Pos_PU;Pos_Sim;Pos_fb;Pos_fb_Sim;Q17 per unit conversion;RED_LED;RT;Rate Transition;Read_Sensor (codegen);Read_Sensor (sim);Reference;Refresh_Halls;Relational Operator;Reversal;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed;Speed Control;Speed Measurement;SpeedCount;SpeedValidity;Speed_Meas_PU;Speed_PU;Speed_Ref_Final (rpm);Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Start;SubSystem;Subsystem;Sum;Surface Mount PMSM;Switch;T_load;Terminator;Theta;Trigger;Unit Delay;V_ref;Vabc;Vabc in PU;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vq_ref;While Iterator;While Iterator Subsystem;Width;debug_terminator;eCAP;eCAP1 Interrupt;eCAP2 Interrupt;eCAP3 Interrupt;eCAP_Out;ePWM;function;rpm2PU;stop;u;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eCAP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;EnablePort;EventListener;ForIterator;From;Function-Call Generator;FunctionCallSplit;Gain;Goto;Ground;Hall Speed and Position;Hall Validity;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Memory Copy;Merge;MinMax;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Product;RateTransition;RelationalOperator;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;System Outputs;Terminator;TriggerPort;UnaryMinus;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
2;16;7;1;2;5;1;3;1;1;3;1;2;38;1;1;8;17;23;29;1;2;14;3;1;1;9;6;1;7;9;15;1;3;5;3;8;74;1;5;1;2;2;8;6;1;1;23;104;3;1;1;2;11;1;2;1;1;1;3;10;1;7;1;15;7;2;1;1;2;1;1;3


MODELNAME: mcb_pmsm_foc_hall_f28379d
PATH: examples/mcb/main/mcb_pmsm_foc_hall_f28379d.slx
CHECKSUM: 7DA0C0CD4295457F7BA4ED2E1A4A782B
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
GPIO 54 GPIO 55 GPIO 57 GPIO 54 GPIO 55 GPIO 57  Note: The glitch filter rejects lower values of the speed count input, which resutls in motor speed greater than 10 times Base speed for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) GPIO 54 GPIO 55 GPIO 57 GPIO 54 GPIO 55 GPIO 57 GPIO 54 GPIO 55 GPIO 57 Heartbeat LED 1HZ Scaling Delays  Copyright 2020-2023 The MathWorks, Inc. Field Oriented Control of PMSM with Hall sensors  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv connected to a PMSM Motor with Hall sensor  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset. 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
0A in ADC counts;6PWM_Mode;ADC Calib Enable;ADC Gain Setting;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;Action Port;Add;Add Offset;Atomic Hall Reading;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Position from Hall;Capture Event Select;Capture Event Selection;Clarke Transform;Code Generation;Code generation;CodeGen;Codegeneration;Compare To Constant;Constant;Control_System;Convert ADC value to PU;Convert meas angle to PU;Count;Counter;Counter Limited;CounterIn;Current Control;Current Sense Gain;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Dir;Disable Interrupts for Atomic Read;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;Duty_Cycles;Duty_abc;Enable;Enable_PWM;End;Event Listener;For Iterator;For Iterator Subsystem;From;Function-Call Generator;Function-Call Split;Function-Call Subsystem;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_ADC_Volt;Get_PU;Glitch Filter;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_ECAP1_INT;HWI_ECAP2_INT;HWI_ECAP3_INT;HWI_SCIA_RX_INT;HW_INT;Hall Sensor A;Hall Sensor B;Hall Sensor C;Hall Speed and Position;Hall State;Hall Validity;HallChange;HallSignal;HallState;HallValidity;Hall_A;Hall_B;Hall_C;Halls;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_Pos;Iab;Iab meas;Iab meas ADC;Iab_Meas_ADC;Iab_PU;Iab_Sim;Iab_fb_Sim;Iab_meas_ADC;Iab_meas_PU;Id;Id_control;Id_ref;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;Info;Input;Input Scaling;Integrity_Check;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq_control;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Memory Copy;Merge;Min;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;No_Integrity_issue;Offset voltage;Out;Output;Output ;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;Pos_PU;Pos_Sim;Pos_fb_Sim;Pos_mech;Position;Q17 per unit conversion;RED_LED;RT;Rate Transition;Read GPIO DAT register;Read Halls;Read_Sensor (codegen);Read_Sensor (sim);Reference;Refresh_Halls;Relational Operator;Reversal;SCI Receive;SCI Transmit;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed;Speed Control;Speed Measurement;SpeedCount;SpeedValidity;Speed_Meas_PU;Speed_PU;Speed_Ref_Final (rpm);Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Start;SubSystem;Subsystem;Sum;Surface Mount PMSM;Switch;T_load;Terminator;Theta;Trigger;Unit Delay;V_ref;Vabc;Vabc in PU;Vabc_out_PU;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vq_ref;While Iterator;While Iterator Subsystem;Width;Zero_Cancellation;eCAP;eCAP1 Interrupt;eCAP2 Interrupt;eCAP3 Interrupt;eCAP_Out;ePWM;function;rpm2PU;speed_PU;speed_control;stop;u;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eCAP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;FunctionCallSplit;Gain;Goto;Ground;Hall Speed and Position;Hall Validity;Hall sensor reader;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Memory Copy;Merge;MinMax;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Product;RateTransition;RelationalOperator;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;System Outputs;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;16;19;1;2;24;1;1;2;1;3;1;2;48;1;1;10;19;25;31;1;2;16;2;4;1;3;1;8;6;1;15;8;15;1;3;5;5;3;8;96;1;7;1;2;2;8;6;1;2;24;131;3;1;1;2;12;1;2;2;1;1;3;11;1;9;1;13;7;1;1;2;1;1;2;3


MODELNAME: mcb_pmsm_foc_host_model_dyno
PATH: examples/mcb/main/mcb_pmsm_foc_host_model_dyno.slx
BLOCKTYPE_FREQUENCY: 2;3;22;10;2;2;3;1;1;3;1;22;1;1;2;15;2;1;4;4;1;1;1;1;1;4;1;2;1
CHECKSUM: E9E3C84819FB7A2F40EF6B5062CBBF5F
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Rx TX  PMSM Dyno Control Host  Copyright 2020-2023 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Use Motor Start / Stop switch to control motor. 3. Input speed request for Motor 1 using Motor 1 Reference Speed edit box. 4. Input Iq ref for Motor 2 using Motor 2 - Imag Ref edit box. 5. Observe the debug signals in scope.  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_foc_f28379d_dyno 2.The variables from the target model are loaded to the base workspace. 

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Convert_to_SI_Units;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug Signals;Debug1 (SI units);Debug2 (SI units);Debug_signals;Demux;Display;Display_Value;Enable;Enable_PWM;Enabled Subsystem;FWC Enable;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_Ia;Ia_Ib;Id_control;Imag_pos;Imag_ref;In;Input;Iq_control;Logical Operator;Motor ;Motor 1 - Reference Speed (RPM);Motor 2 - Imag Pos (deg);Motor 2 - Imag Ref (A);Motor Enable;Multiport Switch;Mux;Out;Output;Parse;Pm_Pm;Pm_Te;Pos;Product;Radio Button;Rate Transition;Reference;Reference Speed (RPM);Relational Operator;Scope (Per-Unit);Serial Communication;Shift Arithmetic;Speed_control;SubSystem;Sum;Te_Te;Unit Delay;Vdq;debug_

BLOCKTYPE:
ArithShift;Bitwise Operator;Constant;DataTypeConversion;Demux;Display;EditField;EnablePort;From;Gain;Goto;Inport;Logic;MultiPortSwitch;Mux;Outport;Product;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Sum;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_pmsm_foc_host_model_f28379d
PATH: examples/mcb/main/mcb_pmsm_foc_host_model_f28379d.slx
BLOCKTYPE_FREQUENCY: 2;3;9;6;2;2;1;1;1;1;1;14;1;1;2;15;2;1;2;2;1;1;1;1;1;2;1;2;1
CHECKSUM: 16294CF8C18FB7F934A3F2F9301F8A5C
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Rx TX  PMSM Control Host  Copyright 2020-2023 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Use Motor switch to control motor. 3. Input speed request using Reference Speed edit box. 4. Observe the debug signals in scope. 5. Start the motor in open loop under no load condition and transition to close loop for Sensorless Example. The model works in open loop for speed ref below 0.1pu.  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_foc_qep_f28379d mcb_pmsm_foc_hall_f28379d mcb_pmsm_foc_sensorless_f28379d mcb_pmsm_foc_mpc_qep_f28379d 2.The variables from the target model are loaded to the base workspace. 

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Convert_to_SI_Units;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug1 (SI units);Debug2 (SI units);Debug_signals;Demux;Display;Display_Value;Enable;Enable_PWM;Enabled Subsystem;FWC Enable;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_Ib;Ia_Pos;Id_control;In;Input;Iq_control;Logical Operator;Motor;Motor Enable;Multiport Switch;Mux;Out;Output;Parse;Product;Radio Button;Rate Transition;Reference;Reference Speed (RPM);Relational Operator;Scope (Per-Unit);SelectedSignals;Shift Arithmetic;Speed_control;SubSystem;Subsystem;Sum;Unit Delay;debug_


MODELNAME: mcb_pmsm_foc_mpc_qep_f28379d
PATH: examples/mcb/main/mcb_pmsm_foc_mpc_qep_f28379d.slx
CHECKSUM: E12474610ACD99A37B64B6E5ACD14AD9
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays When using the Stationary Reference Frame of the Vector plot, use a Terminator block for the output of the Mechanical to Electrical Position block to avoid warnings.   Note: Uncomment above subsystem to see vector plot  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor  Copyright 2021-2023 The MathWorks, Inc. Permanent Magnet Synchronous Motor Field Oriented Control using Model Predictive Controller   Steps: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
 Calculate Position and Speed;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Current Control;Current_ControllerMPC;Current_ControllerPID;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable_PWM;End;Event Listener;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Pos;Iab;Iab_PU;Iab_meas_PU;Iabc;Ib_ADC;Id;Id_control;Id_ref;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq_control;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;MPC Controller;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Position;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Reversal;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref;Speed_Ref_Final (rpm);Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref(rpm);Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop ;T_load;Terminator;Theta_e;Theta_mech;Theta_rad;V-by-f;V_ref;Vabc;Vabc in PU;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd;Vector Plot;Vector plot;Vq;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;debug_terminator;ePWM;eQEP;in;out;position_increment;rad;rpm2PU;rpm2freq;speed;speed_PU;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;MPC;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4;mcb_vectorplot

BLOCKTYPE_FREQUENCY:
1;4;1;8;3;1;2;4;1;1;2;1;1;1;2;49;1;1;6;12;10;23;1;5;16;1;2;6;1;4;1;4;1;17;4;4;1;3;4;105;1;12;1;2;2;2;2;2;24;88;3;1;1;1;4;1;9;3;2;1;1;4;11;1;8;9;1;1;1;1;1;2;3;1

PRODUCT:
C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Model Predictive Control Toolbox;Motor Control Blockset;Simulink


MODELNAME: mcb_pmsm_foc_param_est_runtime_host_model_f28379d
PATH: examples/mcb/main/mcb_pmsm_foc_param_est_runtime_host_model_f28379d.slx
BLOCKTYPE_FREQUENCY: 2;3;11;8;2;2;1;1;1;1;1;18;1;1;2;15;2;1;2;3;1;1;2;1;1;3;1;2;1
CHECKSUM: 62A0CAADB8216645387E4031CE4FE83F
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Rx TX  PMSM Control Host Copyright 2020-2022 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Use Motor switch to control motor. 3. Input speed request using Reference Speed edit box. 4. Observe the debug signals in scope. 5. Start the motor in open loop under no load condition and transition to close loop for Sensorless Example. The model works in open loop for speed ref below 0.1pu.  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_param_est_runtime_f28379d 2.The variables from the target model are loaded to the base workspace. 

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Convert_to_SI_Units;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug1 (SI units);Debug2 (SI units);Debug_signals;Demux;Display;Display_Value;Enable;Enable_PWM;Enabled Subsystem;Estimate Runtime Parameter;Estimate_runtime_parameter;EstimatedRs_SpeedRef;FWC Enable;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_Ib;Ia_Pos;Id_control;In;Input;Iq_control;Logical Operator;Motor;Motor Enable;Multiport Switch;Mux;Out;Output;Parse;Product;Radio Button;Rate Transition;Reference;Reference Speed (RPM);Relational Operator;Scope (Per-Unit);SelectedSignals;Shift Arithmetic;Speed_control;SubSystem;Subsystem;Sum;Unit Delay;debug_


MODELNAME: mcb_pmsm_foc_qep_f28069LaunchPad
PATH: examples/mcb/main/mcb_pmsm_foc_qep_f28069LaunchPad.slx
CHECKSUM: 9CD169682E4C1E7AA79455C4EE494541
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring (32-bit) Current Measurements for BoostXL-DRV8305 connected with LaunchXL-28069M System Outputs HW Driver Blocks for BoostXL-DRV8305 connected to LaunchXL-28069M System Outputs Heartbeat LED 1HZ Scaling Delays Field-Oriented Control for PMSM with QEP sensor  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.  Copyright 2020-2023 The MathWorks, Inc. Note: This example requires a TI F28069m LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor

BLOCK:
 ; Calculate Speed;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADCINT;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bus Selector;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Code Generation;Code generation;CodeGeneration;Codegeneration;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x_Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning;Data_Log;Data_Logging;Data_out;Data_width;DebugDemux;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;End;Event Listener;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get Current Sense Voltage;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Hardware Init;Hearbeat LED;Heartbeat LED;IA/IB Measurement;IIR Filter;I_fb;I_ref;Ia_ADC;Iab_meas_PU;Ib_ADC;Id;Id_Ref;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset in PU;Info;Input;Input Scaling;Inverse Park Transform;Inverter;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;One;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;PhaseCurr;Pos_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Reversal;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref_Final (rpm);Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_meas_PU;Speed_ref(rpm);Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop;T_load;Terminator;Theta_e;Trigger;V-by-f;V_ref;Vabc;Vabc in PU;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vq_ref;While Iterator;Width;Wrap;Zero_Cancellation;debug_terminator;ePWM;eQEP;in;out;position_increment;rad;rpm2PU;rpm2freq;speed;speed_PU;stop;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;BusSelector;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;2;1;8;1;1;2;1;3;1;1;1;1;2;40;1;1;5;10;9;20;1;4;13;1;2;5;1;1;5;2;14;5;4;2;3;4;74;1;9;2;1;2;2;1;23;61;3;1;1;1;4;1;10;3;1;1;1;4;11;1;6;10;2;1;1;1;1;2;3


MODELNAME: mcb_pmsm_foc_qep_f28069m
PATH: examples/mcb/main/mcb_pmsm_foc_qep_f28069m.slx
CHECKSUM: 20DF9C47527432E1C1D87A2A9615267F
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring (32-bit) Current Measurements HW Driver Blocks Enable PWM output Hardware Initialization Heartbeat LED 1HZ Heartbeat LED 1HZ Scaling Delays  Copyright 2020-2023 The MathWorks, Inc. Note: This example requires a TI F28069m with DRV8312 connected to a PMSM Motor with QEP Sensor Field-Oriented Control for PMSM with QEP sensor  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset Computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
 ; Calculate Speed;3-Phase Sine Voltage Generator;ADC Calib Enable;ADCINT;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bus Selector;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Code Generation;Code generation;CodeGeneration;Codegeneration;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV8312 Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning;Data_Log;Data_Logging;Data_out;Data_width;DebugDemux;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Divide;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;End;Event Listener;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get Current Sense Voltage;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Hardware Init;Heartbeat LED;IA/IB Measurement;IIR Filter;I_fb;I_ref;Ia_ADC;Iab_meas_PU;Ib_ADC;Id;Id_ref;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset in PU;Info;Input;Input Scaling;Inverse Park Transform;Inverter;Inverter Signals;Inverter and Motor - Plant Model;Iq;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;One;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;PhaseCurr;Pos_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Reversal;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref_Final (rpm);Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_meas_PU;Speed_ref(rpm);Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop;T_load;Terminator;Theta_e;Trigger;Unary Minus;V-by-f;V_ref;Vabc;Vabc in PU;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vq_ref;While Iterator;Width;Wrap;Zero_Cancellation;debug_terminator;ePWM;eQEP;in;out;position_increment;rad;rpm2PU;rpm2freq;speed;speed_PU;stop;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;BusSelector;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;EnablePort;EventListener;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;UnaryMinus;VariantSink;VariantSource;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;2;1;8;1;1;2;1;3;1;1;1;1;2;38;1;1;5;10;9;20;1;4;12;1;5;1;1;5;2;13;5;4;2;3;4;74;1;9;2;1;2;2;1;24;61;3;1;1;1;4;1;10;3;1;1;1;4;11;1;6;10;2;1;1;1;1;1;3


MODELNAME: mcb_pmsm_foc_qep_f28379d
PATH: examples/mcb/main/mcb_pmsm_foc_qep_f28379d.slx
CHECKSUM: ED9CD2E60AC9E5A0D0F9631FD7861019
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays  Note: Uncomment above subsystem to see vector plot  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv connected to a PMSM Motor with QEP Sensor  Copyright 2020-2023 The MathWorks, Inc. Permanent Magnet Synchronous Motor Field Oriented Control  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
 ; Calculate Position and Speed;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable_PWM;End;Event Listener;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Pos;Iab;Iab_PU;Iab_meas_PU;Iabc;Ib_ADC;Id;Id_control;Id_ref;Ida_ref_PU;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq_control;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Position;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Reversal;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref;Speed_Ref_Final (rpm);Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref(rpm);Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop ;T_load;Terminator;Theta_e;Theta_mech;Theta_rad;Trigger;V-by-f;V_ref;Vabc;Vabc in PU;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vector Plot;Vector plot;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;debug_terminator;ePWM;eQEP;in;out;position_increment;rad;rpm2PU;rpm2freq;speed;speed_PU;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4;mcb_vectorplot

BLOCKTYPE_FREQUENCY:
1;4;1;8;3;1;2;4;1;1;2;1;1;1;2;49;1;1;6;12;10;23;1;4;14;1;2;6;1;4;1;4;2;17;4;4;2;3;4;99;1;11;2;2;2;2;2;24;82;3;1;1;1;4;1;9;3;2;1;1;4;12;1;8;9;2;1;1;1;1;2;3;1


MODELNAME: mcb_pmsm_foc_qep_f28379d_SIUnit
PATH: examples/mcb/main/mcb_pmsm_foc_qep_f28379d_SIUnit.slx
CHECKSUM: 0AD0EA2591666F34AC43CBB881F71B31
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable Inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays Permanent Magnet Synchronous Motor Field Oriented Control in SI units Copyright 2020 - 2023 The MathWorks, Inc.  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv connected to a PMSM Motor with QEP Sensor  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset compuation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset. 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
 ; Calculate Position and Speed;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calibration Enable;ADC Gain Setting;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average_Value_Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Convert to Duty Cycles;Correction_Factor_sinePWM;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable_PWM;End;Event Listener;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Pos;Iab;Iab_PU;Iab_meas;Ib_ADC;Id;Id_control;Id_ref;Ida_ref;Idq;IdqRef;Idq_debug;Idq_ref;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter Signals;Inverter and Motor - Plant Model;Inverter_delay;Iq;Iq_control;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Normalize;Normalize [-0.5 to 0.5];Offset;Offset voltage;One;Open Loop Start-Up;Out;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;Park Transform;Parse;PhaseCurr;Pos;Position;Position Generator;Product;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RPM to rad/s;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Reversal;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;SVPWM;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas;Speed_Ref;Speed_Ref_Final (rpm);Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_meas;Start;SubSystem;Subsystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop;T_load;Terminator;Theta_e;Trigger;V-by-f;V_ref;Va;Vabc;Vao;Variant Sink;Variant Source;Variant Subsystem;Vb;Vbo;Vc;Vco;Vd_ref;Vdc;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;debug_terminator;ePWM;eQEP;in;out;position_increment;rad/s to RPM;rpm2freq;speed;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;DiscreteTransferFcn;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;4;1;8;2;2;4;1;1;1;1;1;1;2;49;1;1;6;13;10;21;1;4;13;1;1;2;6;1;4;1;4;2;17;4;4;2;3;4;96;1;11;1;1;2;2;2;22;77;3;1;1;1;7;1;10;3;2;1;1;4;16;1;8;9;2;1;1;1;1;2;3


MODELNAME: mcb_pmsm_foc_sensorless_IFStartUp_f28379d
PATH: examples/mcb/main/mcb_pmsm_foc_sensorless_IFStartUp_f28379d.slx
CHECKSUM: C02E1BC67F896D13E44490D0B7D995FB
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable inverter in CPU1 for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1 Hz Scaling Delays Permanent Magnet Synchronous Motor Field Oriented Control  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Start the motor in open loop and transition to close loop. The model works in open loop for speed ref below 0.1pu. 7. Learn more about this example.  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 or BOOSTXL-3PhGaNInv booster pack connected to a PMSM Motor  Copyright 2023 The MathWorks, Inc.

BLOCK:
6PWM_Mode;ADC Gain Setting;ADCINT;ADC_B;ADC_B_IN;ADC_C;ADC_C_IN;ADC_Gain_Setting;AND;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Calculate position and speed;Clarke Transform;Closed Loop;Code Generation;Code generation;Codegeneration;Constant;Counter Limited;Current Control;Current_Controllers;DC component removal;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data Type Propagation;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable_PWM;End;EstimatorSelector;Event Listener;Extended EMF Observer;Feedbacks;Feedbacks_sim;Flux Observer;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;I-F Controller;IIR Filter;I_fb;I_ref;Ia_Pos;Iab;Iab_ADC;Iab_PU;Iab_meas_PU;Id;Id_control;Idq;IdqRef_PU;Idq_Ref;Idq_debug;Idq_ref_PU;Idq_ref_PU_Out;If;If Action Subsystem;In;Index Vector;Input Scaling;InputSignals;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifier;Iq;Iq_control;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Low_Speed_Control;Mechanical to Electrical Position;Memory;Merge;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset voltage;One_by_Two;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Pos_PU_Out;Position;Position/Speed;Q17 per unit conversion;RED_LED;RT;Radio Button;Rate Limiter;Rate Transition;Reference;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;SigIN;SigOUT;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;SlewRate;Sliding Mode Observer;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref;Speed_Ref_CW (rpm) Final;Speed_Ref_CW (rpm) Initial;Speed_Ref_PU;Speed_fb;Start;Step;SubSystem;Sum;Surface Mount PMSM;Switch;Switch Case;T_load;Terminator;Trigger;Unit Delay;VI_fb;V_ref;Vabc;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vq_ref;While Iterator;While Iterator Subsystem;Width;Zero_Cancellation;debug_terminator;ePWM;elect2mech;rpm2PU;speed_PU;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;Clarke Transform;Constant;Counter Limited;DQ Limiter;Data Type Propagation;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;Extended EMF Observer;F2837x GPIO Digital Output;Flux Observer;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;I-F Controller;IIR Filter;If;Inport;Inverse Park Transform;Logic;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Product;RadioButtonGroup;RateLimiter;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Sliding Mode Observer;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;11;3;1;2;4;1;1;2;1;1;43;1;1;1;7;13;11;22;2;2;18;2;3;1;1;4;1;1;8;2;12;8;4;2;1;4;4;93;1;8;1;2;3;2;26;79;3;1;1;2;1;2;10;2;2;1;1;1;3;11;1;12;1;10;2;2;1;1;1;1;2;3


MODELNAME: mcb_pmsm_foc_sensorless_f28069MLaunchPad
PATH: examples/mcb/main/mcb_pmsm_foc_sensorless_f28069MLaunchPad.slx
CHECKSUM: ADFD7CB0E08254E458722F7D211179A3
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring (32-bit) Current Measurements for BoostXL-DRV8305 connected with LaunchXL-28069M System Outputs HW Driver Blocks for BoostXL-DRV8305 connected to LaunchXL-28069M System Outputs Heartbeat LED 1HZ Scaling Delays Permanent Magnet Synchronous Motor Field Oriented Control  Copyright 2020-2023 The MathWorks, Inc. Note: This example requires a TI F28069m LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Start the motor in open loop and transition to close loop. The model works in open loop for speed ref below 0.1pu. 7. Learn more about this example.

BLOCK:
6PWM_Mode;ADC Calib Enable;ADCINT;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bus Selector;Calculate ADC Offset ;Calculate Phase Currents;Calculate position and speed;Clarke Transform;Closed Loop;Code Generation;Code generation;CodeGeneration;Codegeneration;Constant;Counter Limited;Current Control;Current_Controllers;DC component removal;DQ Limiter;DRV Enable;DRV830x_Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning;Data_Log;Data_Logging;Data_out;Data_width;DebugDemux;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;Enable;End;EstimatorSelector;Event Listener;Extended EMF Observer;Feedbacks;Feedbacks_sim;Flux Observer;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get Current Sense Voltage;Goto;Ground;HW Inputs;HW Interrrupt;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Hardware Init;Heartbeat LED;IA/IB Measurement;IIR Filter;I_fb;I_ref;Iab_ADC;Iab_meas_PU;Id;Id_Ref;Idq;IdqRef_PU;Idq_Ref;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;Input;Input Scaling;InputSignals;Inverse Park Transform;Inverter;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifier;Iq;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mux;NOT;N_fb;N_ref;Offset voltage;Open_Loop_Control;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;PhaseCurr;Pos_PU;Pos_PU_Out;Position Generator;Position/Speed;Q17 per unit conversion;RED_LED;RT;Radio Button;Rate Limiter;Rate Transition;Reference;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;SigIN;SigOUT;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;SlewRate;Sliding Mode Observer;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref;Speed_Ref_CW (rpm);Speed_Ref_PU;Speed_Ref_Selector;Speed_meas_PU;Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch Case;T_load;Terminator;Trigger;Unit Delay;VI_fb;V_ref;Vabc;Variant Sink;Variant Source;Variant Subsystem;Vd_OpenLoop;Vd_ref;Vq_OpenLoop;Vq_ref;While Iterator;Width;Zero_Cancellation;debug_terminator;ePWM;elect2mech;rpm2PU;speed_PU;stop;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;BusSelector;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;Clarke Transform;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;Extended EMF Observer;Flux Observer;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;RadioButtonGroup;RateLimiter;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Sliding Mode Observer;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
2;2;11;1;1;2;1;3;1;1;1;35;1;1;5;14;9;18;1;2;16;2;2;1;1;1;1;8;2;10;8;4;2;4;4;64;1;8;1;2;3;1;23;59;3;1;1;1;2;1;2;9;3;1;1;1;1;2;10;1;9;1;11;2;2;1;1;1;1;2;3


MODELNAME: mcb_pmsm_foc_sensorless_f28379d
PATH: examples/mcb/main/mcb_pmsm_foc_sensorless_f28379d.slx
CHECKSUM: E72935D4980EE0174773888201F687C9
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink;Stateflow
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable inverter in CPU1 for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1 Hz Scaling Delays Compute initial values before enabling the closed-loop control Input Output Permanent Magnet Synchronous Motor Field Oriented Control  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Start the motor in open loop and transition to close loop. The model works in open loop for speed ref below 0.1pu. 7. Learn more about this example.  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 or BOOSTXL-3PhGaNInv booster pack connected to a PMSM Motor

BLOCK:
 Demux ; SFunction ;6PWM_Mode;ADC Gain Setting;ADCINT;ADC_B;ADC_B_IN;ADC_C;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Accumulate;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Calculate position and speed;Clarke Transform;Closed Loop;Code Generation;Code generation;Codegeneration;Compare To Constant;Compute Contro-loopl Initial Values;Constant;Counter Limited;Current Control;Current_Controllers;DC component removal;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;Enable_PWM;End;EstimatorSelector;Event Listener;Extended EMF Observer;Feedbacks;Feedbacks_sim;Flux Observer;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;I Park Transform;IIR Filter;I_fb;I_ref;Ia_Pos;Iab;Iab_ADC;Iab_PU;Iab_meas_PU;Id;Id0_closedloop;Id0_in;Id0_out;Id_Controlloop_Init;Id_control;Idq;Idq_Ref;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;Input;Input Scaling;InputSignals;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifier;Iq;IqRef_PU;Iq_control;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset voltage;One_by_Two;Open_Loop_Control;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Pos_PU_Out;Position;Position Generator;Position/Speed;Product;Q17 per unit conversion;RAMP_STEP_SIZE;RED_LED;RT;Radio Button;Ramp limiter;Rate Limiter;Rate Transition;Reference;RunMode.ComputeId;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Scope;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;SigIN;SigOUT;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;SlewRate;Sliding Mode Observer;Space Vector Generator;SpdCmd;SpdRef;SpdRef_out;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref;Speed_Ref_CW (rpm);Speed_Ref_PU;Speed_fb;Start;State Machine Handler;State Machine OL - CL;SubSystem;Subsystem;Sum;Surface Mount PMSM;Switch;Switch Case;T_load;Terminator;Theta;Theta_e_prev;Trigger;Unit Delay;V Park Transform;VI_fb;V_ref;Vabc;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_OpenLoop;Vd_computed;Vd_ref;Vq_OpenLoop;Vq_computed;Vq_ref;While Iterator;While Iterator Subsystem;Width;Zero_Cancellation;debug_terminator;ePWM;elect2mech;f;rpm2PU;speed_PU;speed_control;stop;theta_e;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;Extended EMF Observer;F2837x GPIO Digital Output;Flux Observer;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;RadioButtonGroup;RateLimiter;RateTransition;S-Function;Saturate;Scope;Selector;Sine-Cosine Lookup;Sliding Mode Observer;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;1;11;3;1;2;4;1;1;2;1;2;1;40;1;1;15;26;19;22;2;4;18;2;5;1;1;4;1;1;7;2;13;9;4;2;4;4;95;1;11;1;2;3;2;25;89;3;1;3;1;5;1;2;12;1;3;3;2;2;1;1;3;17;1;9;1;10;3;1;1;1;1;1;2;3


MODELNAME: mcb_pmsm_foc_sim
PATH: examples/mcb/main/mcb_pmsm_foc_sim.slx
BLOCKTYPE_FREQUENCY: 1;1;1;1;22;10;2;3;3;10;3;3;38;1;3;2;1;6;29;3;1;1;1;9;2;1;1;1;3;7;1;2
CHECKSUM: 7A2C618DA15B27BC24391974DB879704
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP Scaling Delays  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model PMSM Field Oriented Control  Motor Control Blockset v1.0 Copyright 2020 The MathWorks, Inc.

BLOCK:
 Calculate Position and Speed;Add;Add Offset;Average-Value Inverter;Bus Selector;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Constant;Control_System;Current Control;Current_Controllers;Data Type Conversion;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Delay;Demux;Discrete PI Controller with anti-windup & reset;Duty Cycles;Duty_Cycles;Duty_abc;Feedbacks_sim;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Votage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;IIR Filter;I_fb;I_ref;Ia_ADC;Iab_meas_PU;Ib_ADC;Id;Id_ref;Ida_ref_PU;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;In;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq_ref;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Mod;Mux;N_fb;N_ref;Offset;Offset voltage;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;Park Transform;PhaseCurr;Pos_PU;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RT;Rate Transition;Reference;Saturate at ADC Vref;Saturate at inverter Vref;Selector;Sensor_Measurements;Sim_fb;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;SpeedRef;Speed_Meas_PU;Speed_Ref_PU;Speed_fb;SubSystem;Sum;Surface Mount PMSM;Switch to closed loop ;T_load;Terminator;Theta_e;V_ref;Vabc;Vabc in PU;Vd_ref;Vq_ref;Wrap;Zero_Cancellation;debug_terminator;in;out;rad;speed;speed_PU;~1.65V in ADC counts

BLOCKTYPE:
ArithShift;Average Value Inverter;BusSelector;Clarke Transform;Constant;DataTypeConversion;Delay;Demux;From;Gain;Goto;IIR Filter;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Quadrature Decoder;RateTransition;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Terminator


MODELNAME: mcb_pmsm_foc_sim_RL
PATH: examples/mcb/main/mcb_pmsm_foc_sim_RL.slx
BLOCKTYPE_FREQUENCY: 1;1;1;1;2;24;2;10;2;7;1;2;3;1;14;3;3;75;1;4;6;1;7;39;3;1;1;1;1;1;10;2;5;1;1;1;1;1;10;1;7;1
CHECKSUM: 5FCC75E966603F7DA836ACE4C40B8D62
PRODUCT: MATLAB;Motor Control Blockset;Reinforcement Learning Toolbox;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
reward = -(Q1*id_error^2 + Q2*Iq_error^2 + R*action^2) ) Current Measurements Position & Speed Measurements QEP Scaling Delays  Note: This example demonstrates PMSM speed control with Reinforcement learning control  Steps: 1. Use live script to compare reinforcement learning and PI. 2. Learn more about this example.  Copyright 2021 The MathWorks, Inc. Permanent Magnet Synchronous Motor - Reinforcement Learning

BLOCK:
 Calculate Position and Speed;Add;Add Offset;Average-Value Inverter;Bus Selector;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Compare To Constant;Constant;Control_System;Current Control;Current Controller Systems;Current Sense Gain;Current_Controllers;DQ Limiter;Data Type Conversion;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Delay;Demux;Digital Clock;Discrete PI Controller with anti-windup & reset;Discrete-Time Integrator;Duty;Duty_abc;From;FromWs;Gain;Get ADC Count;Get Current Sense Voltage;Get_ADC_Volt;Get_PU;Get_PU ;Get_QEP_Counts;Goto;IIR Filter;I_fb;I_ref;Ia_ADC;Iab_meas_PU;Ib_ADC;Id;Id_ref;Ida_ref_PU;Idq;Idq_ref;Idq_ref_PU;In;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter and Motor;Iq;Iq_ref;IsDone;Ki;Kp;Logical Operator;Mechanical to Electrical Position;Mod;Motor load;Mux;N_fb;N_ref;OR;Observations;Offset;Offset voltage;Output Scaling;PI Controllers;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU_Conversion;PWM_Duty;Park Transform;PhaseCurr;Pos_PU;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RL Agent;RT;Rate Transition;Reference;Reinforcement Learning;Reward;Saturate at ADC Vref;Saturate at inverter Vref;Scope;Selector;Sensor_Measurements;Signal Builder;Sim_fb;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed ref in PU;Speed_fb;Speed_meas;Speed_ref;Speef_fb;Square;SubSystem;Sum;Surface Mount PMSM;Switch to closed loop ;Terminator;Theta_e;Theta_rad;Unit Delay;V_ref;Vabc;Vabc in PU;Vabc_duty;Vd;Vd_ref;Vq;Vq_ref;Wrap;Zero_Cancellation;action;done;id;id err;id error;id ref;idq_ref_PU;in;iq;iq err;iq error;iq ref;observations;out;rad;reward;speed;speed fb;speed ref;speed_PU;stop;~1.65V in ADC counts

BLOCKTYPE:
ArithShift;Average Value Inverter;BusSelector;Clarke Transform;Compare To Constant;Constant;DQ Limiter;DataTypeConversion;Delay;Demux;DigitalClock;DiscreteIntegrator;From;FromWorkspace;Gain;Goto;IIR Filter;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Product;Quadrature Decoder;RL Agent;RateTransition;Saturate;Scope;Selector;Sigbuilder block;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Terminator;UnitDelay


MODELNAME: mcb_pmsm_foc_system
PATH: examples/mcb/main/mcb_pmsm_foc_system.slx
CHECKSUM: 4DD70BB689D6223FCB807301E2327708
PRODUCT_BASECODE: MT
EXTERNALFILE_REFERENCE: mcb_pmsm_foc.slx___Model_Block___
ANNOTATION:
for BoostXL-DRV8305 connected to LaunchXL-28069M System Outputs Heartbeat LED 1HZ Fast Serial Data Monitoring (32-bit) for BoostXL-DRV8305 connected with LaunchXL-28069M System Outputs Sensor Peripherals and Commands Scaling Delays Note: This example is configured for TI F28069m LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor. Field-Oriented Control for PMSM with QEP sensor  Copyright 2020-2023 The MathWorks, Inc.  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Calibrate QEP offset 4. Update motor parameters with QEP offset 5. Build, Deploy &amp; Start 6. Control motor via host model 7. Learn more about this example.

BLOCK:
6PWM_Mode;ADC Calib Enable;ADC_Gain_Setting;Action Port;Add;Add Offset;Average Inverter;Average-Value Inverter;Bias;Bus Creator;Bus Selector;Calculate ADC Offset ;Code Generation;Code generation;CodeGeneration;Codegeneration;Commands;Constant;Counter Limited;DRV Enable;DRV830x_Enable;Data;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning;Data_Log;Data_Logging;Data_out;Data_width;Debug;Default ADC Offset;Delay;Demux;Digital Output;Display;Divide;Duty;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;Embedded Processor;Enable;End;Event Listener;FOC Control Algorithm;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;Get ADC Count;Get Current Sense Voltage;Get_PU;Get_PU ;Get_QEP_Counts;Ground;HW Interrupt;HWI_SCIRXINTA;Hardware Init;Heartbeat LED;IA/IB Measurement;IIR Filter;If;If Action Subsystem;In;Index Vector;IndexOffset in PU;Info;Input;Inverter;Inverter Driver Peripherals;Inverter Signals;Inverter and Motor - Plant Model;Iteration;Load_Profile (Torque);Load_Trq;Memory;Merge;Mod;Mux;NOT;Offset voltage;Out;PU;PhaseCurr;RED_LED;RT;Rad/sec2RPM;Rate Transition;Reference;Reversal;SCI Receive;SCI Transmit;SCI_Data;SCI_INT;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Scope;Selector;Sensor Driver Blocks;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Sim;Sim_fb;Simulation;Simulation_Terminator;Speed_Ref_Final (rpm);Speed_Ref_Init (rpm);Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop;T_load;Terminator;Vabc;Variant Sink;Variant Source;Variant Subsystem;While Iterator;Width;Wrap;ePWM;eQEP;in;out;rad;rpm2PU;stop;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;ActionPort;Average Value Inverter;Bias;BusCreator;BusSelector;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Constant;Counter Limited;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;ForIterator;Function-Call Generator;Gain;Ground;HardwareInterrupt;IIR Filter;If;Inport;Logic;Math;Memory;Merge;ModelReference;MultiPortSwitch;Mux;Outport;Product;RateTransition;Saturate;Scope;Selector;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
2;8;1;2;1;1;3;1;1;1;24;1;6;16;1;2;9;2;2;1;1;1;8;4;1;1;4;42;1;2;2;2;1;1;14;36;2;8;2;1;1;4;5;1;3;7;1;1;1;1;1;2;3


MODELNAME: mcb_pmsm_freq_est_f28379d
PATH: examples/mcb/main/mcb_pmsm_freq_est_f28379d.slx
CHECKSUM: 134422529A767E88369E305319F29265
PRODUCT_BASECODE: MT
ANNOTATION:
Turn ON Red LED continously Blink Red LED When FRE is active, turn ON LED continously. Otherwise Blink LED. No FRE mode is active FRE mode is active Header 11 - Id array of Real number part Header 21- Id array of Imag number part Mux output to match the number of frequency used for perturbation. Note: Ensure fre_i_time is more than the experiment length in Frequency Response Estimator block. Estimates frequency response seen by the d-current controller. Header 31 - array of Real number part Header 41- array of Imag number part Mux output to match the number of frequency used for perturbation. Note: Ensure fre_i_time is more than the experiment length in Frequency Response Estimator block. Estimates frequency response seen by the d-current controller. For code optimization, use the array only if Debug signal is selected as 5. Current Measurements Position & Speed Measurements QEP for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks State-machine control for frequency estimation in d-current control, q-current control loop and speed control loop. Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Scaling Delays  Note: Uncomment above subsystem to see vector plot Data format  Debug Signal Bit 4:7 X Bit 3 Fre Abort Bit 2 Fre Trig Bit 1 En Bit 0 X   Debug Signal Bit 4:7 X Bit 3 Fre Abort Bit 2 Fre Trig Bit 1 En Bit 0 X  Data format Header 51 - Speed array of Real number part Header 61- Speed array of Imag number part Mux output to match the number of frequency used for perturbation. Note: Ensure fre_spd_time is more than the experiment length in Frequency Response Estimator block. Estimates frequency response seen by the speed controller. Global memory  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv connected to a PMSM Motor with QEP Sensor  Copyright 2020-2023 The MathWorks, Inc. Permanent Magnet Synchronous Motor Field Oriented Control  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Run Simulation and Plot freq response 7. Learn more about this example

BLOCK:
 ; Calculate Position and Speed; Demux ; SFunction ; Terminator ;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;AbortFre;Abort_Fre;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Blink LED;Blink LED in hardware;Bus Creator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Cast;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegeneration;Compare To Constant;Complex to Real-Imag;Constant;Control_System;Copy FRE array;Correction_Factor_sinePWM;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;EnIdFre;EnIqFre;EnSpdFre;Enable;Enable_PWM;Enabled Subsystem;End;Event Listener;FRE Abort;FRE Trigger;FRE is enabled;FRE is not enabled;FRE_Abort;FRE_trig;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;Fre_Trig;Freq Seq Control;Frequency Response Estimator;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Pos;Iab;Iab_PU;Iab_meas_PU;Iabc;Ib_ADC;Id;Id FRE Enable;Id Fre Active;Id Fre not active;Id_control;Id_fb;Id_loop_fre;Id_ref;Ida_ref_PU;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq FRE Enable;Iq Fre Active;Iq Fre not active;IqRef;IqRef+Perturb;Iq_control;Iq_fb;Iq_loop_fre;Iq_ref;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Position;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;RunTimeMeasurement;SCI (Code Generation);SCI (Simulation);SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial -Receive;Shift Arithmetic;Sim;Sim_fb;Simulation;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref;Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_loop_fre;Speed_ref(rpm);Speedfb;Start;StartIdFre;StartIqFre;StartSpdFre;Stateflow;Step;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop ;T_load;Terminator;Theta_e;Theta_mech;Theta_rad;To Workspace;TrigFre;Trig_Fre;Ts;V-by-f;Vabc;Vabc in PU;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd;Vd+Perturb;Vd+perturb;Vd_ref;Vector Plot;Vector plot;Vq;Vq+Perturb;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;ePWM;eQEP;fre data;fre data processing;in;out;position_increment;rad;rpm2PU;rpm2freq;speed;speed_PU;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusCreator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;ComplexToRealImag;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;Frequency Response Estimator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;S-Function;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;ToWorkspace;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4;mcb_vectorplot

BLOCKTYPE_FREQUENCY:
1;4;1;18;7;1;2;8;1;1;1;2;1;1;1;2;3;56;2;1;12;24;14;32;1;4;20;1;2;6;1;5;1;3;4;2;17;4;4;1;3;9;121;1;12;2;2;2;6;2;26;105;3;1;1;1;4;1;11;1;3;3;1;1;5;12;1;7;12;3;1;1;1;1;1;2;3;1

PRODUCT:
C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink;Simulink Control Design;Stateflow


MODELNAME: mcb_pmsm_freq_host_f28379d
PATH: examples/mcb/main/mcb_pmsm_freq_host_f28379d.slx
BLOCKTYPE_FREQUENCY: 5;3;4;13;6;3;4;1;1;1;2;1;1;22;1;1;1;1;2;29;2;3;1;4;2;2;2;1;5;1;1;2;3;2;1;2;1
CHECKSUM: E76B6D54964E52B921564E30229612FC
PRODUCT: Embedded Coder;MATLAB;Simulink;System Identification Toolbox
PRODUCT_BASECODE: MT
ANNOTATION:
Used in Dashboard UI Used in Dashboard UI  PMSM Frequency Response Estimation Control Host  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Use Motor Start / Stop switch to control motor. 3. Enter the requested speed in Reference Speed block. 4. Observe the debug signals in scope. 5. Start the Motor and click FRE Trigger to start frequency estimation in the target hardware. 6. Select the Debug signals &quot;Raw FRE data&quot; to recieve the raw FRE data. 7. Wait until the &quot;FRE Status&quot; LED turns green, which indicates that the FRE data is received. 8. Click FRE Plot to plot the plant frequency data for the Speed control loop, Id Current control loop and Iq Current control loop. 9. Simulate the target model and compare simulation FRE results with the hardware test results. 10. Learn more about this example Note: Click FRE Plot when FRE Status&quot; LED turns green.  Reference Speed (RPM)  Copyright 2020 - 2023 The MathWorks, Inc.  Motor  FRE Status

BLOCK:
 Demux ; SFunction ; Terminator ;Action Port;Bitwise Operator;Change_detect;Constant;Convert_to_SI_Units;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug1 (SI units);Debug2 (SI units);Debug_signals;Demux;Display;Display_Value;Edit;Enable;Enable_PWM;Enabled Subsystem;FRE Abort;FRE Status Select;FRE Text Status;FRE Trig;FRE Trigger;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_Ib;Ia_Pos;Id_control;In;Input;Iq_control;Lamp;Logical Operator;Merge;Motor;Multiport Switch;Mux;Out;Output;Parse;Parse Data;Product;Push Button;Radio Button;Rate Transition;Raw FRE Data Receive LED Status;Reference;Reference Speed (RPM);Relational Operator;Rx;Scope;Scope (Per-Unit);SelectedSignals;Shift Arithmetic;Speed_control;String Constant;SubSystem;Subsystem;Sum;Switch Case;Switch Case Action Subsystem;TX;To Workspace;Unit Delay;debugSignal;debug_;i_freq;inData;oIdFreqData;oIqFreqData;oSpdFreqData;odataReady;plot en;plotEn;spd_freq

BLOCKTYPE:
ActionPort;ArithShift;Bitwise Operator;Constant;DataTypeConversion;Demux;Display;DisplayBlock;EditField;EnablePort;From;Gain;Goto;Inport;LampBlock;Logic;Merge;MultiPortSwitch;Mux;Outport;Product;PushButtonBlock;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;StringConstant;Sum;SwitchCase;Terminator;ToWorkspace;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_pmsm_fwc_host_model
PATH: examples/mcb/main/mcb_pmsm_fwc_host_model.slx
BLOCKTYPE_FREQUENCY: 2;3;9;9;2;2;1;1;1;1;1;17;1;1;3;16;2;1;2;2;1;1;2;1;1;2;1;2;1
CHECKSUM: 4CD251A05965AB6AE74D9CF916EE14E3
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
RX TX  PMSM Field Weakening Control Host  Copyright 2020-2023 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target mode. 3. Use Motor switch to control motor. 4. Input speed request using Reference Speed edit box. 5. Observe the debug signals in scope.  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_fwc_qep_f28069LaunchPad mcb_pmsm_fwc_qep_f28379d 2. Verify that the variables from the target model are loaded to the base workspace. 

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Convert_to_SI_Units;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug1 (SI units);Debug2 (SI units);Debug_signals;Demux;Display;Display_Value;Enable;Enable_FWC;Enable_PWM;Enabled Subsystem;FWC Enable;Field Weakening Control ;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_Ib;Id_control;In;Input;Iq_control;Logical Operator;Motor ;Motor Enable;Multiport Switch;Mux;Out;Output;Parse;Product;Radio Button;Rate Transition;Reference;Reference Speed (RPM);Reference Speed [RPM];Relational Operator;Scope (Per-Unit);SelectedSignals;Serial Communication;Shift Arithmetic;Speed_control;SubSystem;Sum;Target_F;Target_F28379D_Fixed_Point;Target_F28379D_Float;Torque and Power;Unit Delay;debug_


MODELNAME: mcb_pmsm_fwc_qep_f28069LaunchPad
PATH: examples/mcb/main/mcb_pmsm_fwc_qep_f28069LaunchPad.slx
CHECKSUM: 6D8FDE3EF0338B63D5F3AD9A8E70DFA1
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for BoostXL-DRV8305 connected with LaunchXL-28069M System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks for BoostXL-DRV8305 connected to LaunchXL-28069M System Outputs Heartbeat LED 1HZ Scaling Delays  Note: 1) This example starts-up the motor in open-loop control and once the index-pulse of quadrature encoder is detected, it switches to closed-loop control. 2) The start-up logic above avoids a glitch in speed feedback during start-up. 3) Refer to &quot;mcb_pmsm_fwc_qep_f28069LaunchPad/Current Control/Control_System/Open_Loop_Control&quot; for more details.   Copyright 2020-2023 The MathWorks, Inc. Note: This example requires a TI F28069m LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor  Note: 1) To achieve higher speeds, increase the &quot;Max current&quot; value in &quot;Speed Control \ MTPA Control Reference&quot; block (e.g. set to 2xIrated). 2) It is recommended to monitor motors temperature for operation above base speed, while working with hardware.   Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 3. Calibrate QEP offset 4. Update motor parameters with QEP offset 5. Generate code from hardware tab with &quot;Build, Deploy &amp; Start&quot; 6. Control motor via host model 7. Learn more about this example. PMSM Field Weakening Control with MTPA

BLOCK:
 Calculate Position and Speed;6PWM_Mode;ADC Calib Enable;ADCINT;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Bypass_FWC;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x_Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug;Debug_signal_;Debug_signals;Default ADC Offset;Delay;Demux;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;DutyCycles;Duty_Cycles;Duty_abc;Enable;Enable_FWC;Enable_PWM;Enable_fwc;End;Event Listener;FW_Controller;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Inputs;HW Interrupt;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Hardware Init;Heartbeat LED;IA/IB Measurement;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Ib;Iab_ADC;Iab_meas_PU;Ib_ADC;Id_control;Id_fb;Id_fwc;Id_ref;Idq_ref;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Interior PMSM;Inverse Park Transform;Inverter;Inverter Signals;Inverter and PMSM;Inverting / Non-inverting Current measurement amplifieer;Iq limiter;Iq_control;Iq_fb;Iteration;Ki;Kp;Less Than;Load_Profile (Torque);Load_Trq;Logical Operator;MTPA Control Reference;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;Offset;Offset voltage;One_by_Two;Open_Loop_Control;Open_loop_speed_ref;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PMSM Feed Forward Control;PMSM Torque Estimator;PU;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Pos_meas_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Found;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Rate Transition;Reference;Reversal;SCI Receive;SCI Transmit;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sign;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_PU;Speed_Ref_CCW (rpm);Speed_Ref_CW (rpm);Speed_Ref_In;Speed_Ref_PU;Speed_fb;Speed_ref;Sqrt;Start;StartUp_Delay;StartUp_Logic;SubSystem;Sum;Switch;Switch to closed loop ;T_load;T_ref;Terminator;Theta_e;Torque_and_Power;Trigger;Unit Delay;V_ref;Vabc;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_OpenLoop;Vd_ref;Vmax_fb;Vmax_ref;Vq_OpenLoop;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wm_fb;Wrap;Zero;d_ref;d_sat;ePWM;eQEP;in;out;q_ref;q_sat;rad;rpm2PU;speed;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Interior PMSM;Inverse Park Transform;Logic;MTPA Control Reference;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PMSM FeedForward Control;PMSM Torque Estimator;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;RelationalOperator;Saturate;Selector;Signum;Sine-Cosine Lookup;Speed Measurement;Sqrt;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
2;1;8;5;1;2;6;1;1;3;1;1;1;1;2;52;1;1;7;23;11;20;2;5;13;2;3;1;1;5;2;14;5;4;2;4;4;85;1;1;1;14;1;2;1;2;2;2;29;72;4;1;1;1;1;1;4;1;9;1;4;2;3;1;1;1;4;16;12;9;2;3;1;1;1;1;2;3


MODELNAME: mcb_pmsm_fwc_qep_f28379d
PATH: examples/mcb/main/mcb_pmsm_fwc_qep_f28379d.slx
CHECKSUM: A1E74216ECDA310E05A56F7BA5ED7BB0
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for BoostXL-DRV8305 connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable DRV8305 in CPU1 for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays  Note: 1) This example starts-up the motor in open-loop control and once the index-pulse of quadrature encoder is detected, it switches to closed-loop control. 2) The start-up logic above avoids a glitch in speed feedback during start-up. 3) Refer to &quot;mcb_pmsm_fwc_qep_f28379d/Current Control/Control_System/Open_Loop_Control&quot; for more details.  Global Variables  Copyright 2020-2023 The MathWorks, Inc.  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 3. Calibrate QEP offset 4. Update motor parameters with QEP offset 5. Generate code from hardware tab with &quot;Build, Deploy &amp; Start&quot; 6. Control motor via host model 7. Learn more about this example. Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor  Note: 1) To achieve higher speeds, increase the &quot;Max current&quot; value in &quot;Speed Control \ MTPA Control Reference&quot; block (e.g. set to 2xIrated). 2) It is recommended to monitor motors temperature for operation above base speed, while working with hardware.  PMSM Field Weakening Control with MTPA

BLOCK:
 Calculate Position and Speed;6PWM_Mode;ADC Calib Enable;ADC Interrupt;ADCINT;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average Inverter;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Bypass_FWC;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug;Debug_signal_;Debug_signals;Default ADC Offset;Delay;Demux;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;DutyCycles;Duty_Cycles;Duty_abc;Enable;Enable_FWC;Enable_PWM;Enable_fwc;End;Event Listener;FW_Controller;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_Inputs;HW_Int;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Ib;Iab_meas_PU;Ib_ADC;Id_control;Id_fb;Id_fwc;Id_ref;Idq_ref;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Interior PMSM;Inverse Park Transform;Inverter;Inverter Signals;Inverter and PMSM;Inverting / Non-inverting Current measurement amplifieer;Iq limiter;Iq_control;Iq_fb;Iteration;Ki;Kp;Less Than;Load_Profile (Torque);Load_Trq;Logical Operator;MTPA Control Reference;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;Offset;Offset voltage;One_by_Two;Open_Loop_Control;Open_loop_speed_ref;Optional_Read_SPI;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PMSM Feed Forward Control;PMSM Torque Estimator;PU;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;PhaseCurr;Pos_PU;Pos_meas_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Found;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Rate Transition;Read_ADC_Gain;Read_PWM_mode;Read_SPI;Reference;Reversal;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sign;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Measurement;Speed_Ref_CCW (rpm);Speed_Ref_CW (rpm);Speed_Ref_In;Speed_Ref_PU;Speed_fb;Speed_ref;Sqrt;Start;StartUp_Delay;StartUp_Logic;SubSystem;Sum;Switch;Switch to closed loop ;T_load;T_ref;Terminator;Theta_e;Torque_and_Power;Unit Delay;V_ref;Vabc;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_OpenLoop;Vd_ref;Vmax_fb;Vmax_ref;Vq_OpenLoop;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wm_fb;Wrap;Zero;Zero_Cancellation;d_ref;d_sat;ePWM;eQEP;in;out;q_ref;q_sat;rad;rpm2PU;speed;speed_PU;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Interior PMSM;Inverse Park Transform;Logic;MTPA Control Reference;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PMSM FeedForward Control;PMSM Torque Estimator;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;RelationalOperator;Saturate;Selector;Signum;Sine-Cosine Lookup;Speed Measurement;Sqrt;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;1;8;5;1;2;6;1;1;2;1;1;1;2;54;1;1;7;23;11;25;2;5;13;2;3;1;3;1;5;2;14;5;4;2;4;4;91;1;1;1;14;1;2;1;2;2;2;31;81;4;1;1;1;1;1;4;1;9;1;4;2;3;1;1;1;4;16;12;9;2;3;1;1;1;1;4;3


MODELNAME: mcb_pmsm_hall_offset_f28069m
PATH: examples/mcb/main/mcb_pmsm_hall_offset_f28069m.slx
CHECKSUM: A3BB1A392F4553A0E00C8C52C21FE0DE
PRODUCT_BASECODE: MT
ANNOTATION:
Heartbeat LED 1HZ Fast Serial Data Monitoring (16-bit)  Note: - This subsystem reads the user inputs and assigns them to the variables in the base workspace by using an initialization script. - To determine the script name, navigate to Model Settings in the Modeling tab and open Model Properties &gt; Callbacks &gt; InitFcn. - Ensure that these variables are created in the base workspace and have correct values for algorithm export (generate code only for control algorithm) or customized models. - You can find these variables in init callback.   Send -1 when calibration is not ongoing HW Driver Block HW Driver Blocks Offset Computation with Hall sensor  Copyright 2020-2023 The MathWorks, Inc.  PWM Frequency [Hz]  Number of Pole Pairs Configuration  Steps: 1. Enter parameters in the Configuration panel. 2. Click Build, Deploy &amp; Start in the Hardware tab. 3. Perform calibration by using host model. 4. If the motor does not start or rotate smoothly, increase Vd Ref in Per Unit voltage (that can have a maximum value of 1) in the Configuration panel. 5. If the current drawn by the connected motor is too high, reduce the value mentioned in step 4. 6. Learn more about this example.   Data type for control algorithm  Global variables Note: This example requires a TI F28069m controller card mounted on DRV8312 inverter connected to a PMSM Motor with Hall Sensor  Vd Ref in Per Unit voltage

BLOCK:
AND;Action Port;Add;Bias;Bitwise AND;Calculate Position from Hall;Capture Event Select;Capture Event Selection;Combo Box;Compare To Constant;Constant;Control_System;Count;Count for 2 sec;Counter Limited;Data;Data Serial Output;Data Store Memory;Data Store Read;Data Store Write;Data Type;Data Type Conversion;Data1_Log;Data2_Log;Data_Conditioning;Data_out;Data_width;Delay;Demux;Digital Output;Disable host after 22 seconds;Duty Output;Edit;EnPWM;EnPWMOut;Enable;Enable PWM for 20 seconds;EnableHost;End;Eps;Event Listener;Find Offset;From;Gain;Goto;HW Interrupt;HWI_ADCINT;HWI_ECAP1_INT;HWI_ECAP2_INT;HWI_ECAP3_INT;HWI_SCIRXINTA;HW_Int;Hall Sensor A;Hall Sensor B;Hall Sensor C;Hall Speed and Position;Hall State;Hall Validity;Heartbeat LED;IA/IB Measurement;IIR Filter;Iab_meas_ADC;If;If Action Subsystem;In;Index Vector;Input;Inverse Park Transform;Iteration;LED;Memory Copy;Merge;Min;Multiply;Mux;NOT;Number of pole pairs;Offset;Offset Calculation;Out;Output ;Output Scaling;PWM Frequency;PWM_Duty;PWM_Duty Cycle;PWM_Output;Parameters;PosGen;Pos_PU;Position Generator;Reference;SCI Receive;SCI Transmit;SCI_Rx_INT;Saturate to motor.calibSpeed RPM;Scale_to_PWM_Counter_PRD;Serial Receive;Shift Arithmetic;Sine-Cosine Lookup;Space Vector Generator;Start;SubSystem;Subsystem;Sum;Switch;Terminator;Theta;Theta_Open;Theta_hall;Trigger;Up Counter;Vabc in PU;Vd_Ref;Vq;While Iterator;While Iterator Subsystem;Width;eCAP;eCAP1 Interrupt;eCAP2 Interrupt;eCAP3 Interrupt;ePWM;stop

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Bias;Bitwise Operator;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eCAP;ComboBox;Compare To Constant;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;EditField;EnablePort;EventListener;From;Gain;Goto;Hall Speed and Position;Hall Validity;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Memory Copy;Merge;MinMax;MultiPortSwitch;Mux;Outport;PWM Modulation;Position Generator;Saturate;Sine-Cosine Lookup;Sum;Switch;Terminator;TriggerPort;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;11;3;2;3;2;1;1;3;1;4;25;1;6;12;18;7;3;5;3;6;1;3;3;3;1;3;5;1;5;26;1;3;6;6;1;1;8;36;1;1;1;1;4;6;7;5;1;1;3


MODELNAME: mcb_pmsm_hall_offset_f28379d
PATH: examples/mcb/main/mcb_pmsm_hall_offset_f28379d.slx
CHECKSUM: 807DC8BB2B17EA5BD0735B54252D1FC2
PRODUCT_BASECODE: MT
ANNOTATION:
GPIO 54 GPIO 55 GPIO 57 GPIO 54 GPIO 55 GPIO 57 GPIO 54 GPIO 55 GPIO 57 Heartbeat LED 1HZ Fast Serial Data Monitoring (32-bit) Fast Serial Data Monitoring (16-bit) GPIO 54 GPIO 55 GPIO 57  Note: - This subsystem reads the user inputs and assigns them to the variables in the base workspace by using an initialization script. - To determine the script name, navigate to Model Settings in the Modeling tab and open Model Properties &gt; Callbacks &gt; InitFcn. - Ensure that these variables are created in the base workspace and have correct values for algorithm export (generate code only for control algorithm) or customized models. - You can find these variables in init callback.  HW Driver Blocks HW Driver Block  Send -1 when calibration is not ongoing Offset Computation for Hall Sensor  Copyright 2020-2023 The MathWorks, Inc.  Number of Pole Pairs Configuration  PWM Frequency [Hz]  Inverter Enable Logic  Data type for control algorithm  Note: This example requires a TI F28379D launchpad with BOOSTXL-DRV8305 or BOOSTXL-3PhGaNInv connected to a PMSM Motor with Hall Sensor  Vd Ref in Per Unit voltage  Global variables  Steps: 1. Enter parameters in the Configuration panel. 2. Click Build, Deploy &amp; Start in the Hardware tab. 3. Perform calibration by using host model. 4. If the motor does not start or rotate smoothly, increase Vd Ref in Per Unit voltage (that can have a maximum value of 1) in the Configuration panel. 5. If the current drawn by the connected motor is too high, reduce the value mentioned in step 4. 6. Learn more about this example. 

BLOCK:
ADC_B_IN;ADC_C_IN;AND;Action Port;Add;Atomic Hall Reading;Bias;Bitwise Operator;Byte Pack;Calculate Position from Hall;Capture Event Select;Capture Event Selection;Code Generation;Combo Box;Compare To Constant;Constant;Control_System;Count;Count for 2 sec;Counter Limited;DRV830x Enable;Data;Data Serial Output;Data Store Memory;Data Store Read;Data Store Write;Data Type;Data Type Conversion;Data1_Log;Data2_Log;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Delay;Demux;Digital Output;Dir;Disable Interrupts for Atomic Read;Disable host after 22 seconds;Dummy;Duty Output;Edit;EnPWM;EnPWMOut;Enable;Enable PWM for 20 seconds;EnableHost;End;Eps;Event Listener;Find Offset;From;Gain;Goto;HW Interrupt;HWI_ADCB1_INT;HWI_ECAP1_INT;HWI_ECAP2_INT;HWI_ECAP3_INT;HWI_SCIA_RX_INT;HW_Int;Hall Sensor A;Hall Sensor B;Hall Sensor C;Hall Speed and Position;Hall State;Hall Validity;HallChange;HallState;Hall_A;Hall_B;Hall_C;Halls;Heartbeat LED;IIR Filter;Iab_meas_ADC;If;If Action Subsystem;In;Index Vector;Input;Input Scaling;Inverse Park Transform;Inverter;Iteration;LED;Memory Copy;Merge;Min;Multiply;Mux;NOT;Number of pole pairs;Offset;Offset Calculation;Out;Output ;Output Scaling;PWM Duty Cycle;PWM Frequency;PWM_Duty;PWM_Output;Parameters;PosGen;Pos_PU;Position Generator;Read GPIO DAT register;Read Halls;Reference;SCI Receive;SCI Transmit;SCI_Rx_INT;SCI_Tx;Saturate to motor.calibSpeed RPM;Scale_to_PWM_Counter_PRD;Serial Receive;Shift Arithmetic;Sine-Cosine Lookup;Space Vector Generator;SpeedCount;SpeedValidity;Start;SubSystem;Subsystem;Sum;Switch;Terminator;Theta;Theta_Open;Theta_hall;Trigger;Up Counter;Vabc in PU;Vd_Ref;While Iterator;While Iterator Subsystem;Width;eCAP;eCAP1 Interrupt;eCAP2 Interrupt;eCAP3 Interrupt;ePWM;stop

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Bias;Bitwise Operator;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eCAP;ComboBox;Compare To Constant;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;EditField;EnablePort;EventListener;F2837x GPIO Digital Output;From;Gain;Goto;Hall Speed and Position;Hall Validity;Hall sensor reader;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Memory Copy;Merge;MinMax;MultiPortSwitch;Mux;Outport;PWM Modulation;Position Generator;Saturate;Sine-Cosine Lookup;Sum;Switch;System Outputs;Terminator;TriggerPort;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
2;11;12;2;16;1;2;1;3;2;4;25;1;6;11;18;8;3;6;3;6;1;2;3;3;3;1;3;4;5;1;5;31;1;4;7;6;1;1;9;54;1;1;1;1;4;6;1;8;5;1;1;3


MODELNAME: mcb_pmsm_host_model_PosCtrl
PATH: examples/mcb/main/mcb_pmsm_host_model_PosCtrl.slx
BLOCKTYPE_FREQUENCY: 1;2;3;6;1;1;1;1;1;2;12;1;2;13;1;1;2;1;1;1;1;1;2;1;2;1
CHECKSUM: D3E2DF688EB9505BADD4E8D46B5D4E0B
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
 Note: Communication format bit 0: Enable bits 12 to 15: Debug signal selection TX Rx  Position Control Host  Copyright 2020-2023 The MathWorks, Inc.  Reference Position [Degrees]  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_PosCtrl_f28379d 2.You should see and verify the variables from the target model in the base workspace.   Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Simulate this model 3. Use Motor switch to control the motor. 4. Enter Reference position in degrees using edit box 5. Observe Measured position in degrees at the display box   Measured Position [Degrees]        

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug_signals;Display;Display_Value;Edit;Enable;Enable_PWM;Enabled Subsystem;Gain;Get PU Position;Host Serial Receive;Host Serial Setup;Host Serial Transmit;In;Input;Logical Operator;Motor;Motor Enable;Mux;Out;Output;Parse;Radio Button;Rate Transition;Reference;Reference Angular Position (degrees);Relational Operator;Scope;Scope (Per-Unit);Serial Communication;Shift Arithmetic;Signal ;SubSystem;Sum;Unit Delay

BLOCKTYPE:
ArithShift;Bitwise Operator;Constant;DataTypeConversion;Demux;Display;DisplayBlock;EditField;EnablePort;Gain;Inport;Logic;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Sum;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_pmsm_host_offsetComputation_f28069m
PATH: examples/mcb/main/mcb_pmsm_host_offsetComputation_f28069m.slx
BLOCKTYPE_FREQUENCY: 1;9;1;4;12;1;5;1;1;2;4;2;2;2;1;14;4;2;22;1;2;2;1;1;1;3;1;6;6;1;1;1;1;1;1;1
CHECKSUM: 7BA53E9C24AC3E16D4329C7474D9C40E
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
RX TX PMSM Position Sensor (Hall / QEP) Offset Calibration Host  Steps: 1. Select port in Host Serial Setup, Host Serial Receive and Host Serial Transmit 2. Simulate this model to start calibration. Motor starts running when calibration begins 3. After calibration completes, simulation ends and motor stops automatically. 4. Push the Emergency Motor Stop button to stop the motor during emergency.   Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_hall_offset_f28069m mcb_pmsm_qep_offset_f28069m mcb_pmsm_qep_offset_f28069mLaunchPad 2.You should see and verify the variables from the target model in the base workspace.   Calibration Status  Calibration Output  Communication Port  Copyright 2020-2023 The MathWorks, Inc.  Note: If motor is not rotating in correct direction, turn off the power supply to the target, interchange any two motor phase connections, and simulate the host model again. If motor is not rotating, check hardware setup. 

BLOCK:
 Demux ; SFunction ; Terminator ;AND;Abs;Action Port;Calibration Halted;Calibration Status;Change_detect;Check Direction;Check Position;Clock;Compare To Constant;Constant;Data Type Conversion;Data_Conditioning;Direction;Display;Divide;Emergency Stop;Enable;Enabled Subsystem;From;Goto;Honor simulation stop input 5 seconds after startup;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Host Timeout in Seconds;IIR Filter;If;If Action Subsystem;In;InProgress;Input;Keep Sim Running;MATLAB Function;Merge;Motor not rotating;Motor rotating in correct direction;Motor rotating in wrong direction;NOT;OR;Offset;OffsetIn;Out;Output;Pos;Position;Position Sensor Offset [Per-unit position];Position_PU;Push for emergency stop;Rate Transition;Reference;Relational Operator;SCI_TX;Scope;Serial Communication;Speed Measurement;Start motor after 2 seconds;Step;Stop Sim;Stop Simulation;StopSim;String Constant;SubSystem;Subsystem;Switch;Switch Case;Switch Case Action Subsystem;Timeout;To Workspace;Unit Delay;check motor is running;constant;odataReady

BLOCKTYPE:
Abs;ActionPort;Clock;Compare To Constant;Constant;CustomCallbackButton;DataTypeConversion;Demux;Display;DisplayBlock;EnablePort;From;Goto;IIR Filter;If;Inport;Logic;Merge;Outport;Product;RateTransition;RelationalOperator;S-Function;Scope;Speed Measurement;Step;Stop;StringConstant;Switch;SwitchCase;Terminator;ToWorkspace;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_pmsm_host_offsetComputation_f28379d
PATH: examples/mcb/main/mcb_pmsm_host_offsetComputation_f28379d.slx
BLOCKTYPE_FREQUENCY: 1;9;1;4;12;1;6;1;1;2;4;2;2;2;1;15;4;2;26;1;2;2;1;1;1;3;1;6;6;1;1;1;1;1;2;1
CHECKSUM: F377EF76DC77F6BB749DE1EAC336E8D2
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX RX  Calibration Output PMSM Position Sensor (Hall / QEP) Offset Calibration Host  Copyright 2020-2023 The MathWorks, Inc.  Steps: 1. Select port in Host Serial Setup, Host Serial Receive and Host Serial Transmit 2. Simulate this model to start calibration. Motor starts running when calibration begins 3. After calibration completes, simulation ends and motor stops automatically. 4. Push the Emergency Motor Stop button to stop the motor during emergency.   Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_hall_offset_f28379d mcb_pmsm_qep_offset_f28379d 2. You should see and verify the variables from the target model in the base workspace.   Calibration Status  Communication Port  Note: If motor is not rotating in correct direction, turn off the power supply to the target, interchange any two motor phase connections, and simulate the host model again. If motor is not rotating, check hardware setup. 

BLOCK:
 Demux ; SFunction ; Terminator ;AND;Abs;Action Port;Calibration Halted;Calibration Status;Change_detect;Check Direction;Check Position;Clock;Compare To Constant;Constant;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Direction;Display;Display Offset;Divide;Emergency Stop;Enable;Enabled Subsystem;From;Goto;Honor simulation stop input 5 seconds after startup;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Host Timeout in Seconds;IIR Filter;If;If Action Subsystem;In;InProgress;Input;Keep Sim Running;MATLAB Function;Merge;Motor not rotating;Motor rotating in correct direction;Motor rotating in wrong direction;NOT;OR;OffsetIn;Out;Output;Pos;Position;Position Sensor Offset [Per-unit position];Position_PU;Push for emergency stop;Rate Transition;Reference;Relational Operator;SCI_TX;Scope;Scope (Per-Unit);Serial Communication;Speed Measurement;Start motor after 2 seconds;Step;Stop Sim;Stop Simulation;StopSim;String Constant;SubSystem;Subsystem;Switch;Switch Case;Switch Case Action Subsystem;Timeout;To Workspace;Unit Delay;check motor is running;constant;odataReady

BLOCKTYPE:
Abs;ActionPort;Clock;Compare To Constant;Constant;CustomCallbackButton;DataTypeConversion;Demux;Display;DisplayBlock;EnablePort;From;Goto;IIR Filter;If;Inport;Logic;Merge;Outport;Product;RateTransition;RelationalOperator;S-Function;Scope;Speed Measurement;Step;Stop;StringConstant;Switch;SwitchCase;Terminator;ToWorkspace;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_pmsm_mtpa_host_model
PATH: examples/mcb/main/mcb_pmsm_mtpa_host_model.slx
BLOCKTYPE_FREQUENCY: 2;3;9;9;2;2;1;1;1;1;1;17;1;1;3;16;2;1;2;2;1;1;2;1;1;2;1;2;1
CHECKSUM: 96DA21CF9B6750CA843846946A1CC6AE
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
RX TX  PMSM Torque Control Host  Copyright 20202023 The MathWorks, Inc.  Steps: 1. Update workspace with variables used in target model 2. Set the serial port target.comport in the init script of the target model. 3. Use Motor Start / Stop switch to control motor. 4. Input current request using Imag Reference block. 5. Observe the debug signals in scope.

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Convert_to_SI_Units;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug1 (SI units);Debug2 (SI units);Debug_signals;Demux;Display;Display_Value;Enable;Enable_FWC;Enable_PWM;Enabled Subsystem;FWC Enable;Field Weakening Control;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_Ib;Id_control;Imag Reference (A);In;Input;Iq_control;Logical Operator;Motor;Motor Enable;Multiport Switch;Mux;Out;Output;Parse;Product;Radio Button;Rate Transition;Reference;Relational Operator;Scope (Per-Unit);SelectedSignals;Serial Communication;Shift Arithmetic;SubSystem;Sum;Target_F;Target_F28379D_Fixed_Point;Target_F28379D_Float;Torque and Power;Unit Delay;Vmax and Speed;debug_


MODELNAME: mcb_pmsm_mtpa_qep_f28069LaunchPad
PATH: examples/mcb/main/mcb_pmsm_mtpa_qep_f28069LaunchPad.slx
CHECKSUM: B124AC3C2C9E1534838375CD2C2D2513
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for BoostXL-DRV8305 connected with LaunchXL-28069M System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks for BoostXL-DRV8305 connected to LaunchXL-28069M System Outputs Heartbeat LED 1HZ Scaling Delays  Copyright 2020-2023 The MathWorks, Inc. Global Variables  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 3. Calibrate QEP offset 4. Update motor parameters with QEP offset 5. Generate code from hardware tab with &quot;Build, Deploy &amp; Start&quot; 6. Control motor via host model 7. Learn more about this example. PMSM Torque Control with MTPA Note: This example requires a TI F28069M LaunchPad with a BOOSTXL-DRV8305 booster pack connected to an Interior PMSM with QEP Sensor, driven by an external dynamometer with speed control

BLOCK:
 ; Calculate Position and Speed;6PWM_Mode;ADC Calib Enable;ADCINT;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Bypass_FWC;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Convert_PU;Convert_SI;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x_Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug;Debug_signal_;Debug_signals;Default ADC Offset;Delay;Demux;Derating Function;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty_Cycles;Duty_abc;Enable;Enable_FWC;Enable_PWM;Enable_fwc;End;Event Listener;FW_Controller;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Get_Trq_ref (Nm);Goto;Ground;HW Inputs;HW Interrupt;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Hardware Init;Heartbeat LED;IA/IB Measurement;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Ib;Iab_ADC;Iab_meas_PU;Ib_ADC;Id_control;Id_fb;Id_fwc;Id_ref;Idq_ref;Idq_ref (MTPA);Idq_ref (Manual MTPA);Idq_ref (No MTPA);Idq_ref_PU;If;If Action Subsystem;Imag_ref;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Interior PMSM;Inverse Park Transform;Inverter;Inverter Signals;Inverter and PMSM;Inverting / Non-inverting Current measurement amplifieer;Iq limiter;Iq_control;Iq_fb;Iq_ref;Iteration;Ki;Kp;Less Than;Load_Profile (Speed);Load_Speed;Logical Operator;MTPA Control Reference;MTPA_Manual_Test;MTPA_Reference;Manual Switch;Mechanical to Electrical Position;Memory;Merge;MinMax Running Resettable;Mod;Multiport Switch;Mux;NOT;NO_MTPA;Offset;Offset voltage;One_by_Two;Open_Loop_Control;Open_loop_speed_ref;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PMSM Feed Forward Control;PMSM Torque Estimator;PU;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;Pe_MTPA (W);Pe_MTPA_manual (W);Pe_NO_MTPA (W);PhaseCurr;Pos_PU;Pos_meas_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp_freq*Sample_Time;Rate Transition;Reference;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sign;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Control;Speed Limit;Speed Measurement;Speed_PU;Speed_Ref;Speed_fb;Speed_max (rpm);Sqrt;Start;SubSystem;Sum;Switch;Switch to closed loop ;Te_MTPA (Nm);Te_MTPA_manual (Nm);Te_NO_MTPA (Nm);Terminator;Theta_e;Torque Control;Torque_and_Power;Trigger;Unit Delay;V_ref;Vabc;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_OpenLoop;Vd_ref;Vector Control Reference;Vmax_and_Speed;Vmax_fb;Vmax_ref;Vq_OpenLoop;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wm_fb;Wrap;d_ref;d_sat;ePWM;eQEP;gain;in;one;out;pi_by_two;q_ref;q_sat;rad;speed;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Derating Function;Display;EnablePort;EventListener;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Interior PMSM;Inverse Park Transform;Logic;MTPA Control Reference;ManualSwitch;Math;Mechanical to Electrical Position;Memory;Merge;MinMax Running Resettable;MultiPortSwitch;Mux;Outport;PID 1dof;PMSM FeedForward Control;PMSM Torque Estimator;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;RelationalOperator;Saturate;Scope;Selector;Signum;Sine-Cosine Lookup;Speed Measurement;Sqrt;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;Vector Control Reference;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
2;1;8;5;1;2;6;1;1;3;1;1;1;1;2;53;1;2;7;14;11;20;2;4;17;1;10;3;1;1;5;2;24;5;4;2;2;4;90;4;1;1;9;1;1;2;1;2;2;2;2;30;80;3;1;4;1;1;2;5;1;9;1;3;1;2;1;1;1;1;2;17;9;12;2;3;1;1;1;1;1;2;3


MODELNAME: mcb_pmsm_mtpa_qep_f28379d
PATH: examples/mcb/main/mcb_pmsm_mtpa_qep_f28379d.slx
CHECKSUM: AB424378856468C61F31BF9A329C1059
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Position & Speed Measurements QEP for BoostXL-DRV8305 connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable DRV8305 in CPU1 for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays Global Variables Copyright 2020-2023 The MathWorks, Inc.  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Review results in Data Inspector 3. Calibrate QEP offset 4. Update motor parameters with QEP offset 5. Generate code from hardware tab with &quot;Build, Deploy &amp; Start&quot; 6. Control motor via host model 7. Learn more about this example. Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack connected to an Interior PMSM with QEP Sensor, driven by an external dynamometer with speed control PMSM Torque Control with MTPA

BLOCK:
 ; Calculate Position and Speed;6PWM_Mode;ADC Calib Enable;ADC Interrupt;ADCINT;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Bypass_FWC;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Code Generation;Code generation;Codegeneration;Compare To Constant;Constant;Control_System;Convert_PU;Convert_SI;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug;Debug_signal_;Debug_signals;Default ADC Offset;Delay;Demux;Derating Function;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;DutyCycles;Duty_Cycles;Duty_abc;Enable;Enable_FWC;Enable_PWM;Enable_fwc;End;Event Listener;FW_Controller;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Get_Trq_ref (Nm);Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Ib;Iab_meas_PU;Ib_ADC;Id_control;Id_fb;Id_fwc;Id_ref;Idq_ref;Idq_ref (MTPA);Idq_ref (Manual MTPA);Idq_ref (No MTPA);Idq_ref_PU;If;If Action Subsystem;Imag_ref;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Interior PMSM;Inverse Park Transform;Inverter;Inverter Signals;Inverter and PMSM;Inverting / Non-inverting Current measurement amplifieer;Iq limiter;Iq_control;Iq_fb;Iq_ref;Iteration;Ki;Kp;Less Than;Load_Profile (Speed);Load_Speed;Logical Operator;MTPA Control Reference;MTPA_Manual_Test;MTPA_Reference;Manual Switch;Mechanical to Electrical Position;Memory;Merge;MinMax Running Resettable;Mod;Multiport Switch;Mux;NOT;NO_MTPA;Offset;Offset voltage;One_by_Two;Open_Loop_Control;Open_loop_speed_ref;Optional_Read_SPI;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PMSM Feed Forward Control;PMSM Torque Estimator;PU;PU_Conversion;PWM_Duty_Cycles;PWM_Enable;Park Transform;Parse;Pe_MTPA (W);Pe_MTPA_manual (W);Pe_NO_MTPA (W);PhaseCurr;Pos_PU;Pos_meas_PU;Position Generator;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp_freq*Sample_Time;Rate Transition;Read_ADC_Gain;Read_PWM_mode;Read_SPI;Reference;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sign;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed Limit;Speed Measurement;Speed_PU;Speed_Ref;Speed_fb;Speed_max (rpm);Sqrt;Start;SubSystem;Sum;Switch;Switch to closed loop ;Te_MTPA (Nm);Te_MTPA_manual (Nm);Te_NO_MTPA (Nm);Terminator;Theta_e;Torque Control;Torque_and_Power;Unit Delay;V_ref;Vabc;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_OpenLoop;Vd_ref;Vector Control Reference;Vmax_and_Speed;Vmax_fb;Vmax_ref;Vq_OpenLoop;Vq_ref;While Iterator;While Iterator Subsystem;Width;Wm_fb;Wrap;d_ref;d_sat;ePWM;eQEP;gain;in;one;out;pi_by_two;q_ref;q_sat;rad;speed;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Derating Function;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Interior PMSM;Inverse Park Transform;Logic;MTPA Control Reference;ManualSwitch;Math;Mechanical to Electrical Position;Memory;Merge;MinMax Running Resettable;MultiPortSwitch;Mux;Outport;PID 1dof;PMSM FeedForward Control;PMSM Torque Estimator;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;RelationalOperator;Saturate;Selector;Signum;Sine-Cosine Lookup;Speed Measurement;Sqrt;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;Vector Control Reference;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;1;8;5;1;2;6;1;1;2;1;1;1;2;55;1;2;7;14;11;25;2;4;17;1;10;3;1;3;1;5;2;24;5;4;2;2;4;96;4;1;1;9;1;1;2;1;2;2;2;2;32;89;3;1;4;1;1;2;5;1;9;1;3;2;1;1;1;1;2;17;9;12;2;3;1;1;1;1;1;4;3


MODELNAME: mcb_pmsm_nonlin_fwc
PATH: examples/mcb/main/mcb_pmsm_nonlin_fwc.slx
CHECKSUM: ADE06B4D402ACD289611ABAEFE2D719F
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simscape;Simscape;Simscape Electrical;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
 The saturation limit value is set to 1.  Steps: 1. To use a custom motors FEM data, use the instructions 2. Select the motor plant model from the PlantSelection options 3. Simulate the model 4. Review results in Data Inspector 5. Learn more about this example.  Copyright 2022-2023 The MathWorks, Inc. Note: This is a simulation-only example, and uses the data from JMAG-RT. Interior-PMSM Field Weakening Control using FEM data

BLOCK:
+;-;3phase converter;6-pulse PWM generator;Battery;Battery Voltage;Battery voltage (V);C;Clarke Transform;Constant;Control System;Control_System;Controlled Voltage Source;Converter (Three-Phase);Current Sensor (Three-Phase);Current_Controllers;DQ Limiter;Data Type Conversion;Delay;Demux;Discrete PI Controller with anti-windup & reset;Display;Duty_Cycles;Electrical Reference;Enable;FEM Parameterized PMSM 2D LUTs;FEM Parameterized PMSM 3D LUTs;FEM-Parameterized PMSM;Feedbacks_sim;From;Gain;Get_PU;Get_PU ;Goto;IIR Filter;I_fb;I_ref;Iab_meas_PU;Id_fb;Ideal Rotational Motion Sensor;Ideal Torque Source;Idq_ref;In;Inverse Park Transform;Inverter Model;Inverter and Motor;Iq_fb;Ki;Kp;LUT based PMSM Control Reference;Line Voltage Sensor (Three-Phase);Logical Operator;Low-Pass Filter (Discrete or Continuous);Mechanical Rotational Reference;Mechanical to Electrical Position;Mod;ModWave;Motor Model;Mux;NOT;Non-linear PMSM with 2D LUTs;One_by_Two;Open Circuit;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PMSM;PMSM Feed Forward Control;PMSM Torque Estimator;PS-Simulink Converter;PU;PU_Conversion;PWM_Duty_Cycles;Park Transform;Phase Splitter;PhaseCurr;PlantSelection;Pos;Pos_meas_PU;R;R ;RT;Radio Button;Rate Transition;Reference;Relay;Repeating Sequence Interpolated;Scale;Selector;Sensor_Measurements;Sim_fb;Simulink-PS Converter;Sine-Cosine Lookup;Six-Pulse Gate Multiplexer;Solver Configuration;Space Vector Generator;Speed Control;Speed Measurement;Speed Reference (RPM);Speed ref RPM;Speed_fb;Speed_ref;SubSystem;Subsystem;Sum;T_ref;Terminator;Tm;Torque Control;Torque Reference (Nm);Torque ref Nm;Torque_ref;Unit Delay;V_ref;Vabc_ref;Vd_ref;Vdc;Vdc2PU;Vector plot;Vq_ref;Wm_fb;duty_abc;g;ia;iab_pu;ib;measVI;neutral;pos_rad;rad;rpm2PU;rpm2pu;w;~;ϴe

BLOCKTYPE:
Clarke Transform;Constant;Controlled Voltage Source;Converter (Three-Phase);Current Sensor (Three-Phase);DQ Limiter;DataTypeConversion;Delay;Demux;DisplayBlock;Electrical Reference;FEM-Parameterized PMSM;From;Gain;Goto;IIR Filter;Ideal Rotational Motion Sensor;Ideal Torque Source;Inport;Inverse Park Transform;KnobBlock;LUT based PMSM Control Reference;Line Voltage Sensor (Three-Phase);Logic;Low-Pass Filter (Discrete or Continuous);Math;Mechanical Rotational Reference;Mechanical to Electrical Position;Mux;Open Circuit;Outport;PID 1dof;PMIOPort;PMSM;PMSM FeedForward Control;PMSM Torque Estimator;PS-Simulink Converter;PWM Modulation;Park Transform;Phase Splitter;RadioButtonGroup;RateTransition;Relay;Repeating Sequence Interpolated;Selector;Simulink-PS Converter;Sine-Cosine Lookup;Six-Pulse Gate Multiplexer;SliderBlock;Solver Configuration;Speed Measurement;Sum;Terminator;UnitDelay;mcb_vectorplot

BLOCKTYPE_FREQUENCY:
1;18;1;1;1;1;7;2;4;2;1;2;5;8;5;2;1;1;37;1;2;1;1;4;1;1;3;1;6;1;21;3;23;1;1;1;4;1;1;2;1;12;1;1;2;8;1;1;1;1;1;8;6;2;1


MODELNAME: mcb_pmsm_operating_mode_f28379d
PATH: examples/mcb/main/mcb_pmsm_operating_mode_f28379d.slx
CHECKSUM: 03AC7EA50A405A282DC1708D2ED7B87D
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Simulate ADC Interrupt and Receive interrupt. Calculate ADC Offset Use default offset value Hardware Initialization ADC Current gains are adjustable in DRV8305 through SPI. Depends on the max current, the current gain are selected through SPI. Not applicable to other Inverter. Measures current sensor ADC and averages out to calculate ADC offset error. Ensure motor is not spinning by external means when ADC offset is calculating. Heartbeat LED 1HZ Note: Motor coupled with shaft 0 rpm to simulate the blocked rotor. Enabled for below modes of operation 1. Stop mode 2. Open-loop mode 3. Torque mode (position is not locked) 4. speed control mode  Scaling Delays  161 En/Dis 162 OperatingMode 163 Clear Fault 164 Signal1Sel (for debug) 165 Signal2Sel (for debug) 171 PI_params.Kp_i (D-axis) 172 PI_params.Ki_i (D-axis) 173 PI_params.Kp_i (Q-axis) 174 PI_params.Ki_i (Q-axis) 175 PI_params.Kp_speed 176 PI_params.Ki_speed 181 SpeedRefCmd 182 EncoderIndexOffset 183 Fault Data 191 Open-loop voltage 192 Open-loop speed 201 IdRef 202 IqRef 203 LockRotorEn 204 Speed limit in torque mode  Hardware driver block for Receive Interrupt Subsystem TX Every run default values are updated from init script. To update the default values in dashboard, update the values in init script. Control Motor speed control mode Operating Mode Variables Speed controller Open-loop mode q-axis current controller Motor torque control mode Control loop gains d-axis current controller Control Panel for Simulation Calculate Idq from Iab. In Torque mode, if position is locked, input position as 0 repeatedly. In Torque mode, if position is not locked, limit the Iq so that speed not exceeds the limit set by the user. In Torque mode, user inputs decides Idref and Iqref. Also, Iqref is also limited by speed limit set by user. In Speed mode, speed controller outputs Iqref. Motor stop mode, outputs PWM Enabled for torque mode and speed mode  Input ADC value is corrected for offset. ADC value read - ADC Offset   Convert mech pos to elec pos and calculate speed  Calculate Speed DRV Enable equals 1 for mode other than Stop mode.  Fast Serial Data Monitoring (32-bit) Current control loop trigger.  HW Driver Global memory  Copyright 2020-2023 The MathWorks, Inc. Control Parameter Gain Tuning (Manual) in Hardware and Plant Validation  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Simulate Dashboard for simulation 3. Calibrate QEP offset 4. Update motor parameters with QEP offset 5. Build, Deploy &amp; Start 6. Control motor via host model 7. Learn more about this example. Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor

BLOCK:
; ;3-Phase Sine Voltage Generator;6PWM_Mode;<En>;<SpdCtrl_KiTs>;<SpdCtrl_Kp>;ADC & QEP;ADC & QEP Driver;ADC Calib Enable;ADC Gain Setting;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Amplitude;Average Inverter;Average-Value Inverter;Bias;Bus Assignment;Bus Creator;Bus Selector;Byte Pack;Byte Unpack;Calculate ADC Offset ;Change detect;Clarke Transform;Clear Fault;Code generation;Compare To Constant;Constant;Constnt;Control Modes;Control_System;Correction_Factor_sinePWM;Counter Limited;Current Input Scaling;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Dashboard control;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug;Debug Data;Default ADC Offset;Delay;Demux;Derating Function;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty;Duty In;Duty_abc;En;Enable;Enabled Subsystem;EncoderIndexOffset;End;Event Listener;Extract Signal;Fault Data;First Time Exec ONLY;FirsttimeExec;For Iterator;For Iterator Subsystem;Format Bus first time;Frequency;From;Gain;Generate Interrupt (HW);Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;Hardware Init;Hardware Init (codegen);Hardware Init (sim);Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_meas_ADC;Iab;Iab_meas;Iab_meas_PU;Iab_sim;Iabc;Ib_meas_ADC;Id Ctrl Ki Gain;Id Ctrl Kp Gain;Id Ref;Id Reference;IdCtrl_Ki;IdCtrl_Kp;IdRef;Id_KiTs;Id_Kp;IdqRef;IdqRef_;Idq_meas;Idq_meas Calculate;Idq_meas_PU;Idq_ref;Idq_ref Selector;Idq_ref_;Idq_ref_PU;Idq_ref_out;If;If Action Subsystem;In;Index Vector;IndexOffset in PU;Info;Init Bus parameters;InitEn;Input;Input Scaling;Interior PMSM;Inverse Park Transform;Inverting / Non-inverting Current measurement amplifieer;Iq Ctrl Ki Gain;Iq Ctrl Kp Gain;Iq Ref;Iq Reference;IqCtrl_Ki;IqCtrl_Kp;IqRef;Iq_KiTs;Iq_Kp;IsChange;Iteration;Ki;Ki Gain;Ki Gain_;Ki Gain__;Kp;Kp Gain;Kp Gain_;Kp Gain__;LockrotorEn;Logical Operator;Lower Saturation;LowerSaturation;Mechanical to Electrical Position;Memory;Merge;Mod;Mode;Motor and Inverter;Motor model with Blocked rotor;Motor model with Torque load;Mux;NAND;NOT;No load;NotEqual;OR;Offset voltage;One;Operating Mode;Out;Output;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU2rpm;PU_Conversion;PWM;PWM (codegen);PWM (sim);PWM Scaling;PWM_PU;Park Transform;Parse SCI Rx;Parser and Speed control;PhaseCurr;Plant Model (codegen);Plant Model (sim);Pos;Pos lock Input (torque mode);Pos_;Pos_PU;Pos_PU_in;Pos_PU_out;Pos_in;Pos_out;Position Generator;Position decoding;Product;Q17 per unit conversion;QEP_Idx;QEP_cnt;Quadrature Decoder;RED_LED;RT;Radio Button;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Receive Interrupt;Reference;Relational Operator;Rest other than first time exec;SCI (HW);SCI Receive;SCI Rx Interrupt;SCI Transmit;SCI Tx (codegen);SCI Tx (sim);SCI_Rx;SCI_Rx_INT;SCI_TX;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturate output to limits;Saturation;Selector;Sensor_Measurements;Serial Communication;Serial Receive;Signal;Signal Sel ;Signal1Sel;Signal2Sel;Sim;SimFb;Simulate Dashboard;Simulate Interrupt (Sim);Simulation;Simulation_Terminator;SinCos;Sine-Cosine Lookup;Slider Switch;Space Vector Generator;Spd lmt (Trq mode);SpdCtrl_Ki;SpdCtrl_Kp;SpdMeas;Spd_KiTs;Spd_Kp;Spd_meas;Speed Control;Speed Ctrl Ki Gain;Speed Ctrl Kp Gain;Speed Measurement;Speed Mode;Speed Ref (speed mode);Speed Reference;Speed limit;Speed limit (Torque mode);Speed limit (open loop);Speed lmt (open loop);Speed ref;Speed ref (PU);SpeedRef;SpeedRefCmd;SpeedRefToFreq;Speed_Ref;Speed_control;Speed_ref;Start;SubSystem;Sum;Switch;Switch Case;Switch to closed loop ;Terminator;Torque Control;Torque Mode;TorqueCtrlTrig;Unit Delay;V-by-f;V_out;V_ref;Vabc;Vabc in PU;VabcCalc;Vabc_PU;Value;Vamplitude;VdOut_PU;Vdebug;Voltage (open loop);Voltage limit (open loop);Voltage ref (PU);VqOut_PU;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;bDebug;bParam;bParamIn;bParamOut;debug;default;ePWM;eQEP;in;msgData;msgId;open_loop_run;out;position_increment;rad;rpm2freq;sim_fb;spd_meas;speed;speed_fb;stop;stop_motor;torque_control;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;BusAssignment;BusCreator;BusSelector;Byte Unpack;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;Derating Function;DiscreteIntegrator;Display;EditField;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Interior PMSM;Inverse Park Transform;Logic;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RadioButtonGroup;RateTransition;RelationalOperator;Saturate;Selector;Sine-Cosine Lookup;SliderSwitchBlock;Speed Measurement;Step;Sum;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
1;4;1;29;1;1;2;22;1;17;1;1;2;1;1;1;7;98;1;1;2;2;6;66;3;18;1;1;2;12;31;1;3;1;50;2;19;47;3;2;2;4;307;6;2;1;12;2;1;2;12;3;26;300;3;1;1;1;6;1;1;17;17;3;1;1;1;1;1;11;8;1;15;2;17;1;1;2;3


MODELNAME: mcb_pmsm_param_est_f28379d
PATH: examples/mcb/main/mcb_pmsm_param_est_f28379d.slx
CHECKSUM: 440463E7BA78F3BD0A8379CFC897C98A
PRODUCT_BASECODE: MT
ANNOTATION:
Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ  Note: The PMSM block does not simulate magentic effects of the rotor when Vd is applied. In order to simulate locking of the rotor at zero position, PMSM block is used in zero speed input during Rs, Ld and Lq estimation. Do not use simulation to determine the Vd value required to align the rotor at zero position. Scaling Delays  As a ratio of motor rated current  As a ratio of inverter supply voltage for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit)  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor  Copyright 2022-2023 The MathWorks, Inc. PMSM Parameter Estimation  Rs Ld LqKe B User Controls  Steps 1. Edit motor and inverter parameters. 2. Simulate the model. Use User Control panel to control parameter estimation tests. 3. When in Manual mode, run test in sequence and do not skip any tests. 3. Use Offset computation model to find out position offset. 4. Update offset in Init script to variable motor.PositionOffset 5. Build, Deploy &amp; Start 6. Use host model to control the hardware 7. Learn more about this example.

BLOCK:
 Calculate Position and Speed; Demux ; SFunction ; Terminator ;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;ActiveTest;ActoveTest;Add;Add Offset;Average-Value Inverter;B;Bias;Bitwise Operator;Bus Creator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Chart;CoastDownTime;Code Generation;Code generation;Codegen;Codegeneration;Compare To Constant;Config;Constant;Count;Counter Limited;Current Voltage Monitoring;Current and Voltage Monitoring;CurrentLimit;CurrentLimit_PU;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;DebugData;DebugDataSelect;DebugSelect;DebugSignals;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Digital Output;Display;Divide;Dummy;DutyCycles;Duty_abc;EnClosedLoop;EnPrev;Enable;EnableFromHost;EnableIn;End;Estimated Parameters;Event Listener;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get Current Sense Voltage;Get_PU;Get_PU ;Get_QEP_Counts;Goto;GreaterThan;Ground;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HWInpust;HWInputs;HWOutputs;HW_INT;Hardware Init;Hardware Interrupt;Heartbeat LED;IIR Filter;IabADC;Iab_ADC;Iabc;Id;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset in PU;Info;Init;InjFreq;Input HW Drivers;Input Scaling;Interior PMSM with free rotor (Ke, J, B);Interior PMSM with locked rotor (Rs, Ld, Lq);Inverter;Inverter Enable;Inverter and Motor;InverterEn;InverterSig;Iq;Iteration;J;Ke;Ld;Ld Estimator;LdLog;LdStatus;LdTest;Less Than;Log;Lq;Lq Estimator;LqLog;LqStatus;LqTest;MechLog;MechParam;MechStatus;Mechanical Parameter Estimator;Mechanical to Electrical Position;Memory;Merge;Mod;Motor;MotorParam;MotorParams;Multiport Switch;Mux;NOR;NOT;OR;Offset voltage;One_by_Two;Out;Output HW Drivers;Output Scaling;OverCurrent;PU;PWM;PWM Drivers;PWMDutyCycle;PWMDutyCycles;PWM_Duty_Cycles;PWM_Enable;Param Est;Parameter Estimation;Parameter Estimation Configurator;ParameterEstimation;PhaseCurr;PhaseDiff;PhaseVolt;Pos_PU;Product;QEPIndexLatch;QEPPositionCount;Quadrature Decoder;RED_LED;RT;Rate Transition;Reference;Rs;Rs Estimator;RsLog;RsStatus;RsTest;RunTimeMeasurement;SCI Drivers;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;SimFb;Sim_fb;Simulation;Simulation_Terminator;Speed Measurement;Speed_RPM;Start;StartEst;SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Switch to closed loop ;Terminator;Test Control;Test Enable;Test Method;Test Select;TestMethod;TestNum;TestSelect;Theta_e;Trigger;Ts;UnderVoltage;Unit Delay;Vabc;Vabc_ref;Variant Subsystem;Vd;Vdc;Vdc Measurement;VdcADC;Vdc_ADC;VoltLimit;VoltLimit_PU;Vq;While Iterator;While Iterator Subsystem;Width;Wrap;codegen;ePWM;eQEP;in;out;rad;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusCreator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;ComboBox;Compare To Constant;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Interior PMSM;Ld Estimator;Logic;Lq Estimator;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PMSM Mechanical Parameter Estimator;PMSM Parameter Estimation Configurator;Product;Quadrature Decoder;RateTransition;RelationalOperator;Rs Estimator;S-Function;Saturate;Selector;SliderSwitchBlock;Speed Measurement;Step;Sum;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
5;1;29;3;1;2;4;3;24;1;1;1;1;1;7;46;1;2;4;8;21;1;4;14;3;11;1;4;1;45;2;11;19;5;2;1;4;164;18;2;1;12;1;2;1;2;3;3;28;151;1;1;5;1;13;3;1;1;2;3;2;1;1;8;8;1;12;2;9;1;1;2;3

PRODUCT:
C2000 Microcontroller Blockset;Embedded Coder;MATLAB;MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware;Motor Control Blockset;Simulink;Stateflow


MODELNAME: mcb_pmsm_param_est_host_f28379d
PATH: examples/mcb/main/mcb_pmsm_param_est_host_f28379d.slx
BLOCKTYPE_FREQUENCY: 6;3;4;1;2;6;1;2;1;3;7;1;1;1;12;2;1;1;1;1;25;1;2;1;1;2;6;2;1;1;1;8;3;1;1;1
CHECKSUM: 164D20C7F6CD992694CB707AFE154BA1
PRODUCT_BASECODE: MT
ANNOTATION:
Rx TX  Friction Constant User Controls  PMSM Parameter Estimation Host  Steps: 1. Set the serial port to target.comport variable in the init script of the target model. 2. Simulate this model to communicate with hardware. 3. Use Parameter Estimation switch to control the parameter estimation tests. 4. Run parameter estimation tests sequentially by selecting Auto for Test Method switch. 5. Select Manual to run the tests individually by selecting in Test Selection radio button. 6. When in Manual mode, keep the Enable switch off, select the test in Test selection then turn on the Enable switch. Turn off the Enable before moving to the next test. 7. Do not skip any tests in Manual mode.   H  N m s  Bemf  Vpk_LL/krpm  H  Ohm  Lq  Rs  Motor Inertia  Copyright 2022-2023 The MathWorks, Inc.  Ld  Prerequisites: 1. Deploy the target model to the hardware mcb_pmsm_param_est_f28379d 2. You should see and verify the variables from the target model in the base workspace.   Kg m^2

BLOCK:
 Demux ; SFunction ; Terminator ;Action Port;Active Test;ActiveTest;B;Bitwise Operator;Bus Selector;Change_detect;Config;Constant;Count;Data;Data Type Conversion;Debug;Debug Select;Debug Signal;DebugSelect;Enable;Enable_PWM;Enabled Subsystem;From;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;IaOffset;IbOffset;In;Index Vector;Input;J;Ke;Ld;Logical Operator;Lq;MATLAB Function;Merge;Mux;Out;Output;Over Current;OverCurrent;Parameter Estimation;Parameter Estimation Configurator;Parse;Reference;Relational Operator;Rs;Scope;Serial Communication;Shift Arithmetic;String Constant;SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Test Enable;Test Method;Test Select;TestMethod;TestSelect;To Workspace;Tx;Under Voltage;UnderVoltage;Unit Delay;count

BLOCKTYPE:
ActionPort;ArithShift;Bitwise Operator;BusSelector;ComboBox;Constant;Counter ;DataTypeConversion;Demux;Display;DisplayBlock;EnablePort;From;Goto;Inport;LampBlock;Logic;Merge;MultiPortSwitch;Mux;Outport;PMSM Parameter Estimation Configurator;RelationalOperator;S-Function;Scope;SliderSwitchBlock;StringConstant;Sum;Switch;SwitchCase;Terminator;ToWorkspace;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend

PRODUCT:
Embedded Coder;MATLAB;MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware;Motor Control Blockset;Simulink


MODELNAME: mcb_pmsm_param_est_runtime_f28379d
PATH: examples/mcb/main/mcb_pmsm_param_est_runtime_f28379d.slx
CHECKSUM: 4272B37892ABCE3473E33F005F83E9E7
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
 1) Add Subsystem or Model blocks as valid variant choices. 2) You cannot connect blocks at this level. At simulation, connectivity is automatically determined, based on the active variant and port name matching. Current Measurements Position & Speed Measurements QEP for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) HW Driver Blocks Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ Scaling Delays  Note: Uncomment above subsystem to see vector plot  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack connected to a PMSM Motor with QEP Sensor  Copyright 2023 The MathWorks, Inc. Permanent Magnet Synchronous Motor Field Oriented Control  Explore more: 1. Edit motor &amp; inverter parameters 2. Use Offset computation model to find out position offset. 3. Update offset in Init script to variable pmsm.PositionOffset 4. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
 ; Calculate Position and Speed; Demux ; SFunction ; Terminator ;1-D Lookup Table;3-Phase Sine Voltage Generator;6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Code Generation;Code generation;Codegen;Codegeneration;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Counter Limited;Current Control;Current_Controllers;DQ Limiter;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Difference;Digital Output;Direction;Discrete PI Controller with anti-windup & reset;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Duty_abc;EnClosedLoop;Enable;EnableEstimation;Enable_PWM;End;Event Listener;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;Hardware Init;Heartbeat LED;IIR Filter;I_fb;I_ref;Ia_ADC;Ia_Pos;Iab;Iab_PU;Iab_meas_PU;Iabc;Ib_ADC;Id;Id_control;Id_ref;Ida_ref_PU;Idq;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Action Subsystem;In;Index Vector;IndexFinder;IndexFound;IndexOffset;IndexOffset in PU;Info;Input Scaling;Inverse Park Transform;Inverter;Inverter Enable;Inverter Signals;Inverter and Motor - Plant Model;Inverting / Non-inverting Current measurement amplifieer;Iq;Iq_control;Iq_ref;Iteration;K;Ki;Kp;Load_Profile (Torque);Load_Trq;Logical Operator;Mechanical to Electrical Position;Memory;Merge;Mod;Multiport Switch;Mux;NOT;N_fb;N_ref;Offset;Offset voltage;Omega;One;One_by_Two;Open Loop Start-Up;Out;Output Scaling;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PU;PU_Conversion;PWM_Duty;PWM_Duty_Cycles;PWM_Enable;P_prev;Park Transform;Parse;PhaseCurr;Pos_PU;Position;Position Generator;Product;Pupdated;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;REstimation;RSEstinated;RS_LD;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Transition;Reference;Relay;RsEstimated;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SPI Master Transfer;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Sim_fb;Simulation;Simulation_Terminator;Sine-Cosine Lookup;Space Vector Generator;Speed;Speed Control;Speed Measurement;Speed_Meas_PU;Speed_Ref;Speed_Ref_In;Speed_Ref_Init (rpm);Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_ref(rpm);Start;SubSystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop ;T_load;Terminator;Theta_e;Theta_mech;Theta_rad;Trigger;V-by-f;V_ref;Vabc;Vabc in PU;Vabc_ref;Variant Sink;Variant Source;Variant Subsystem;Vd_ref;Vector Plot;Vector plot;VoltageCompensation;Vq_ref;W_hat_Updated;W_hat_prev;W_hat_prev ;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;debug_terminator;ePWM;eQEP;in;out;position_increment;rad;rpm2PU;rpm2freq;speed;speed_PU;speed_control;stop;sysX;sysy;toPU;unParse;~1.65V in ADC counts

BLOCKTYPE:
3-Phase Sine Voltage Generator;ADC Type 3-5;Abs;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Clarke Transform;Compare To Constant;Constant;Counter Limited;DQ Limiter;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;DiscreteIntegrator;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;Inverse Park Transform;Logic;Lookup_n-D;Math;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;RateTransition;Relay;S-Function;Saturate;Selector;Sine-Cosine Lookup;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4;mcb_vectorplot

BLOCKTYPE_FREQUENCY:
1;4;2;8;3;1;2;4;1;1;2;1;1;1;2;53;1;1;7;13;11;28;1;6;16;1;2;7;1;4;1;9;2;26;9;4;2;3;4;122;1;11;1;2;2;2;2;2;25;96;3;1;1;1;8;1;9;1;1;4;2;1;1;4;16;1;7;14;2;1;1;1;1;2;3;1


MODELNAME: mcb_pmsm_param_est_speedgoat
PATH: examples/mcb/main/mcb_pmsm_param_est_speedgoat.slx
CHECKSUM: CBCCF05851A7E88AD7D812214DD0188B
PRODUCT_BASECODE: MT
ANNOTATION:
 Note: The PMSM block does not simulate magentic effects of the rotor when Vd is applied. In order to simulate locking of the rotor at zero position, PMSM block is used in zero speed input during Rs, Ld and Lq estimation. Do not use simulation to determine the Vd value required to align the rotor at zero position. Scaling Delays  Note: Inertia computation is not simulated. Becuase it involves turning off all six gate switches. This cannot be mathematically simulatd using existing inverter blocks.  Steps 1. Edit motor parameters. 2. Build the model, load and run the application hardware. 3. Use ParameterEstimation switch to control the parameter estimation tests. [0 - 2 sec] is calibration phase. Start Parameter Estimation after 2 seconds. 4. Run all parameter estimation tests in sequence by selecting Auto in Test Method switch. 5. Select Manual to run the tests individually by selecting in combo box. 6. All tests start on the rising edge of ParameterEstimation signal. 7. Do not skip any tests in Manual mode. 8. Learn more about this example.  PMSM Parameter Estimation on Real-Time Target User Controls  Note: This example requires Speedgoat Baseline Real-Time Target machine with IO-397 and Electric motor control kit  Rs [Ohm] Ld [H] Lq [H]Ke [Vpk_LL/krpm] J [Kg m^2] B [N m s]  Copyright 2022-2023 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;AND;Active Test;ActiveTest;Add;Average-Value Inverter;B;Bus Creator;Bus Selector;Calculate Ic;Calculate Phase Currents;Calculate Position and Speed;Capture Offset;Chart;Codegen;Codegeneration;Compare To Constant;Compute Offset;Condition Encoder;Config;Constant;Current Offset Calibration;Data Type Conversion;Delay;Demux;Digital output;Divide;Duty cycles for current offset calibration;Duty cycles for pos offset calibration;DutyCycles;Duty_abc;EnPrev;Enable;Enable Test;EnableIn;Estimated Parameters;From;Get Current Sense Voltage;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HWInputs;HWSignals;IO397 Analog Input;Iab;Iab ADC;Iab_ADC;Iab_Offset;Iabc;IabcSum;Ic;In;Info;Init;Input HW Drivers;Input Scaling;Interior PMSM with free rotor (Ke, J, B);Interior PMSM with locked rotor (Rs, Ld, Lq);InvEn;Inverter;Inverter and Motor;InverterEn;InverterEnOut;J;Ke;Ld;Ld Estimation;Ld Estimator;LdStatus;Locked Rotor;Log;Log Active Test;Log to Base Workspace and Display Results;Lq;Lq Estimation;Lq Estimator;LqStatus;Math Function;MechPos;MechStatus;Mechanical Parameter Estimation;Mechanical Parameter Estimator;Mechanical to Electrical Position;Merge;Mod;Mode;Mode Control;Motor;MotorParameters;MotorParametersOut;MotorParams;MotorParamsIn;Mux;NOT;Offset;One_by_Two;Out;Output HW Drivers;Output Scaling;Overload Options;PU;PWM generation (5);PWMDutyCycles;Parameter Estimation;Parameter Estimation Configurator;ParameterEstimation;PhaseCurr;PhaseVolt;Pos Offset Calibration;Product;QAD;QEP Offset;QEP Slits;QEP count;QEPCounts;Quadrature Decoder;RT;Rate Transition;Reference;Rs;Rs Estimation;Rs Estimator;RsStatus;Saturation;Selector;Sensor_Measurements;Setup;Sim;SimFb;Sim_fb;Speed;Speed Measurement;StartEst;Step;SubSystem;Subsystem;Sum;Switch;System Inputs;Terminator;Test Control;Test Method;Test Select;Test Selection;TestMethod;TestNum;TestSelect;Theta;To Workspace;Ts;Unit Delay;Vabc;Variant Subsystem;Vdc;Wrap to Positive;Zero Load;rad;u;y

BLOCKTYPE:
Average Value Inverter;BusCreator;BusSelector;ComboBox;Compare To Constant;Constant;DataTypeConversion;Delay;Demux;Display;DisplayBlock;EnablePort;From;Gain;Goto;Ground;Inport;InportShadow;Interior PMSM;Ld Estimator;Logic;Lq Estimator;Math;Mechanical to Electrical Position;Merge;Mux;Outport;PMSM Mechanical Parameter Estimator;PMSM Parameter Estimation Configurator;Product;Quadrature Decoder;RateTransition;Rs Estimator;S-Function;Saturate;Selector;SliderSwitchBlock;Speed Measurement;Speedgoat Encoder Counter;Step;Sum;Switch;Terminator;ToWorkspace;UnitDelay;ad_IO397;do_fpga_a2;pwm_fpga_5;qad_fpga_a5;setup_fpga_3;slrtOverloadOptions

BLOCKTYPE_FREQUENCY:
1;2;17;1;9;22;14;2;5;1;1;8;18;4;13;2;83;13;2;1;3;1;2;1;1;9;64;1;1;3;1;11;1;2;1;1;2;1;1;2;8;5;10;11;10;1;1;1;1;1;1

PRODUCT:
MATLAB;MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware;Motor Control Blockset;Simulink;Simulink Real-Time;Stateflow


MODELNAME: mcb_pmsm_qep_offset_f28069m
PATH: examples/mcb/main/mcb_pmsm_qep_offset_f28069m.slx
BLOCKTYPE_FREQUENCY: 1;5;2;2;1;1;1;1;2;22;1;1;1;2;4;2;3;4;4;1;4;2;2;25;1;1;1;3;1;9;25;1;1;1;1;1;4;4;5;2;1;1;3
CHECKSUM: 10BC49F14305338674D8037AF35DCF5D
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring (16-bit)  Note: - This subsystem reads the user inputs and assigns them to the variables in the base workspace by using an initialization script. - To determine the script name, navigate to Model Settings in the Modeling tab and open Model Properties &gt; Callbacks &gt; InitFcn. - Ensure that these variables are created in the base workspace and have correct values for algorithm export (generate code only for control algorithm) or customized models. - You can find these variables in init callback.  HW Driver Blocks HW Driver Block  Send -1 when calibration is not ongoing Offset Computation for QEP Copyright 2020-2023 The MathWorks, Inc. Configuration  Number of Pole Pairs:  PWM Frequency [Hz]  QEP Slits  Data type for control algorithm Global variable Note: This example requires a TI F28069m controller card mounted on DRV8312 inverter connected to a PMSM Motor with QEP Sensor  Steps: 1. Enter parameters in the Configuration panel. 2. Click Build, Deploy &amp; Start in the Hardware tab. 3. Perform calibration by using host model. 4. If the motor does not start or rotate smoothly, increase Vd Ref in Per Unit voltage (that can have a maximum value of 1) in the Configuration panel. 5. If the current drawn by the connected motor is too high, reduce the value mentioned in step 4. 6. Learn more about this example.   Vd Ref in Per Unit voltage

BLOCK:
Action Port;Add;Bias;Combo Box;Compare To Constant;Constant;Control_System;Count;Count for 10 sec;Count for 2 sec;Counter Limited;Data;Data Serial Output;Data Store Memory;Data Store Read;Data Store Write;Data Type;Data Type Conversion;Data1_Log;Data2_Log;Data_Conditioning;Data_out;Data_width;Delay;Demux;Digital Output;Duty Output;Edit;EnPWM;EnPWMOut;Enable;Enable PWM for 15 seconds;End;Eps;Event Listener;Gain;HW Interrupt;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Heartbeat LED;IA/IB Measurement;Iab_meas_ADC;If;If Action Subsystem;In;Index;Index Vector;Inverse Park Transform;Iteration;LED 1Hz;Mechanical to Electrical Position;Merge;Multiply;Mux;NOT;Number of pole pairs;Offset;Offset Calculation;Out;Output Scaling;PWM Duty Cycle;PWM Frequency;PWM Output;PWM_Duty;Parameters;PosGen;Pos_In;Pos_PU;Pos_meas_eQEP;Position Generator;QEP Slits;Quadrature Decoder;Reference;SCI Receive;SCI Transmit;SCI_Rx_INT;Saturate to motor.calibSpeed RPM;Scale_to_PWM_Counter_PRD;Serial Receive;Sine-Cosine Lookup;Space Vector Generator;Start;SubSystem;Subsystem;Sum;Switch;Terminator;Theta;ThetaIn;Theta_e;Trigger;Up counter;Vabc;Vd_Ref;While Iterator;While Iterator Subsystem;Width;ePWM;eQEP;eQEP_Decoder;stop

BLOCKTYPE:
ADC Type 3-5;ActionPort;Bias;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;ComboBox;Compare To Constant;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;EditField;EnablePort;EventListener;Gain;HardwareInterrupt;If;Inport;Inverse Park Transform;Logic;Mechanical to Electrical Position;Merge;MultiPortSwitch;Mux;Outport;PWM Modulation;Position Generator;Quadrature Decoder;Saturate;Sine-Cosine Lookup;Sum;Switch;Terminator;TriggerPort;WhileIterator;Width;ePWM Type 1-4


MODELNAME: mcb_pmsm_qep_offset_f28069mLaunchPad
PATH: examples/mcb/main/mcb_pmsm_qep_offset_f28069mLaunchPad.slx
BLOCKTYPE_FREQUENCY: 1;5;2;2;1;1;1;1;2;22;1;1;1;2;4;2;3;4;4;1;4;2;2;27;1;1;1;3;1;8;26;1;1;1;1;1;4;4;5;2;1;1;3
CHECKSUM: 9ECA9AA2A7B00902CB61D2CB45829C89
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring (16-bit)  Note: - This subsystem reads the user inputs and assigns them to the variables in the base workspace by using an initialization script. - To determine the script name, navigate to Model Settings in the Modeling tab and open Model Properties &gt; Callbacks &gt; InitFcn. - Ensure that these variables are created in the base workspace and have correct values for algorithm export (generate code only for control algorithm) or customized models. - You can find these variables in init callback.  HW Driver Blocks HW Driver Block  Send -1 when calibration is not ongoing Global variable Offset Computation for QEP Copyright 2020-2023 The MathWorks, Inc.  QEP Slits  PWM Frequency [Hz] Configuration  Number of Pole Pairs:  Data type for control algorithm  Note: This example requires a TI F28069m launchpad with BOOSTXL-DRV8305 inverter connected to a PMSM Motor with QEP Sensor  Steps: 1. Enter parameters in the Configuration panel. 2. Click Build, Deploy &amp; Start in the Hardware tab. 3. Perform calibration by using host model. 4. If the motor does not start or rotate smoothly, increase Vd Ref in Per Unit voltage (that can have a maximum value of 1) in the Configuration panel. 5. If the current drawn by the connected motor is too high, reduce the value mentioned in step 4. 6. Learn more about this example.   Vd Ref in Per Unit voltage

BLOCK:
Action Port;Add;Bias;Calculate Position from QEP count ;Combo Box;Compare To Constant;Constant;Control_System;Count;Count for 10 sec;Count for 2 sec;Counter Limited;Data;Data Serial Output;Data Store Memory;Data Store Read;Data Store Write;Data Type;Data Type Conversion;Data1_Log;Data2_Log;Data_Conditioning;Data_out;Data_width;Delay;Demux;Digital Output;Duty Output;Edit;EnPWM;EnPWMOut;Enable;Enable PWM for 15 seconds;End;Eps;Event Listener;Gain;HW Interrupt;HWI_ADCINT;HWI_SCIRXINTA;HW_INT;Heartbeat LED;IA/IB Measurement;Iab_meas_ADC;If;If Action Subsystem;In;Index;Index Vector;Inverse Park Transform;Iteration;LED 1 Hz;Mechanical to Electrical Position;Merge;Multiply;Mux;NOT;Number of pole pairs;Offset;Offset Calculation;Out;Output Scaling;PWM Duty Cycle;PWM Frequency;PWM Output;PWM_Duty;Parameters;PosGen;Pos_In;Pos_PU;Pos_meas_eQEP;Position Generator;QEP Slits;Quadrature Decoder;Reference;SCI Receive;SCI Transmit;SCI_Rx_INT;Saturate to motor.calibSpeed RPM;Scale_to_PWM_Counter_PRD;Serial Receive;Sine-Cosine Lookup;Space Vector Generator;Start;SubSystem;Subsystem;Sum;Switch;Terminator;Theta;ThetaIn;Theta_e;Trigger;Up counter;Vabc;Vd_Ref;While Iterator;While Iterator Subsystem;Width;ePWM;eQEP;eQEP_Decoder;stop

BLOCKTYPE:
ADC Type 3-5;ActionPort;Bias;C2806x GPIO Digital Output;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;ComboBox;Compare To Constant;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;EditField;EnablePort;EventListener;Gain;HardwareInterrupt;If;Inport;Inverse Park Transform;Logic;Mechanical to Electrical Position;Merge;MultiPortSwitch;Mux;Outport;PWM Modulation;Position Generator;Quadrature Decoder;Saturate;Sine-Cosine Lookup;Sum;Switch;Terminator;TriggerPort;WhileIterator;Width;ePWM Type 1-4


MODELNAME: mcb_pmsm_qep_offset_f28379d
PATH: examples/mcb/main/mcb_pmsm_qep_offset_f28379d.slx
BLOCKTYPE_FREQUENCY: 2;5;2;1;2;1;1;2;2;22;1;1;1;2;5;2;4;4;4;1;2;4;2;2;30;1;2;1;3;1;10;33;1;1;1;1;1;4;4;6;2;1;1;3
CHECKSUM: 9B2E939BB21284A009E922D01BF944DB
PRODUCT_BASECODE: MT
ANNOTATION:
Fast Serial Data Monitoring (32-bit) Fast Serial Data Monitoring (16-bit)  Note: - This subsystem reads the user inputs and assigns them to the variables in the base workspace by using an initialization script. - To determine the script name, navigate to Model Settings in the Modeling tab and open Model Properties &gt; Callbacks &gt; InitFcn. - Ensure that these variables are created in the base workspace and have correct values for algorithm export (generate code only for control algorithm) or customized models. - You can find these variables in init callback.  HW driver Block HW Driver Blocks  Send -1 when calibration is not ongoing Offset Computation for QEP  Copyright 2020-2023 The MathWorks, Inc.  QEP Slits  PWM Frequency [Hz] Configuration  Number of Pole Pairs:  Inverter Enable Logic Global variable  Data type for control algorithm  Note: This example requires TI F28379D launchpad with BOOSTXL-DRV8305 or BOOSTXL-3PhGaNInv connected to a PMSM Motor with QEP Sensor  Steps: 1. Enter parameters in the Configuration panel. 2. Click Build, Deploy &amp; Start in the Hardware tab. 3. Perform calibration by using host model. 4. If the motor does not start or rotate smoothly, increase Vd Ref in Per Unit voltage (that can have a maximum value of 1) in the Configuration panel. 5. If the current drawn by the connected motor is too high, reduce the value mentioned in step 4. 6. Learn more about this example.   Vd Ref in Per Unit voltage

BLOCK:
ADC_B_IN;ADC_C_IN;Action Port;Add;Bias;Byte Pack;Code Generation;Combo Box;Compare To Constant;Constant;Control_System;Count;Count for 10 sec;Count for 2 sec;Counter Limited;DRV830x Enable;Data;Data Serial Output;Data Store Memory;Data Store Read;Data Store Write;Data Type;Data Type Conversion;Data1_Log;Data2_Log;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Delay;Demux;Digital Output;Dummy;Duty Output;Edit;EnPWM;EnPWMOut;Enable;Enable PWM for 15 seconds;End;Eps;Event Listener;Gain;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;Heartbeat LED;Iab_meas_ADC;If;If Action Subsystem;In;Index;Index Vector;Input Scaling;Inverse Park Transform;Inverter;Iteration;LED 1 Hz;Mechanical to Electrical Position;Merge;Multiply;Mux;NOT;Number of pole pairs;Offset;Offset Calculation;Out;Output Scaling;PWM Duty Cycle;PWM Frequency;PWM Output;PWM_Duty;Parameters;PosGen;Pos_In;Pos_PU;Pos_meas_eQEP;Position Generator;QEP Slits;Quadrature Decoder;Reference;SCI Receive;SCI Transmit;SCI_Rx_INT;SCI_Tx;Saturate to motor.calibSpeed RPM;Scale_to_PWM_Counter_PRD;Serial Receive;Sine-Cosine Lookup;Space Vector Generator;Start;SubSystem;Subsystem;Sum;Switch;Terminator;Theta;ThetaIn;Theta_e;Trigger;Up Counter;Vabc in PU;Vd_Ref;While Iterator;While Iterator Subsystem;Width;ePWM;eQEP;eQEP_Decoder;stop

BLOCKTYPE:
ADC Type 3-5;ActionPort;Bias;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;ComboBox;Compare To Constant;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Delay;Demux;EditField;EnablePort;EventListener;F2837x GPIO Digital Output;Gain;HardwareInterrupt;If;Inport;Inverse Park Transform;Logic;Mechanical to Electrical Position;Merge;MultiPortSwitch;Mux;Outport;PWM Modulation;Position Generator;Quadrature Decoder;Saturate;Sine-Cosine Lookup;Sum;Switch;Terminator;TriggerPort;WhileIterator;Width;ePWM Type 1-4


MODELNAME: mcb_resolver_f28069m
PATH: examples/mcb/main/mcb_resolver_f28069m.slx
BLOCKTYPE_FREQUENCY: 1;8;1;1;2;1;2;2;1;1;1;2;5;10;4;3;1;3;12;2;1;3;2;5;2;3;2;4;1;3;1
CHECKSUM: 4A9117A6C5B44815DB1898B444CCF34D
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
ADC Offset Removal  Global variables HW Driver Blocks  Copyright 2020-2023 The MathWorks, Inc. Rotor position measurement using Resolver  Note: This example requires a TI F28069m Launchpad Connected to C2000 resolver to digital conversion Kit (TMDSRSLVR) with Resolver  Explore more: 1. Edit resolver and inverter parameters 2. Build, Deploy &amp; Start 3. Observe position via host model 4. Learn more about this example.

BLOCK:
ADC;ADC result array;ADC_Offset_Removal;Action Port;Add;Bias;Cosine;Counter Limited;DMA Channel 1 Interrupt (100us);DMA Channel 2 Interrupt (50us);Data;Data Store Read;Data Type Conversion;Data_out;Data_width;Demux;Divide;Duty cycle table;End;Gain;Get ADC values;HW Interrupt;HWI_DINTCH;HW_INT;If;If Action Subsystem;In;Index Vector;Iteration;Logical Operator;Merge;Mux;Out;Reference;Resolver Decoder;Resolver_ADC;SCI Transmit;Scaling;Scope;Selector;Serial Send;Sine;Start;SubSystem;Sum of Elements;System Outputs;Terminator;Unit Delay;While Iterator;While Iterator Subsystem;Width;ePWM;function

BLOCKTYPE:
ADC Type 3-5;ActionPort;Bias;C28x SCI Transmit;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataTypeConversion;Demux;Gain;HardwareInterrupt;If;Inport;Logic;Merge;MultiPortSwitch;Mux;Outport;Product;Resolver Decoder Phase1;Scope;Selector;Sum;System Outputs;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;ePWM Type 1-4


MODELNAME: mcb_resolver_f28379d
PATH: examples/mcb/main/mcb_resolver_f28379d.slx
BLOCKTYPE_FREQUENCY: 2;2;1;1;1;1;10;1;5;1;1;1;3;1;1;12;2;1;4;9;1;3;2;1;1;1;2
CHECKSUM: DDCBECD98027B28C9A81740A817BA939
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Enable inverter  Copyright 2022-2023 The MathWorks, Inc.  Note: This example requires a TI F28379D LaunchPad with a BOOSTXL-DRV8305 booster pack or BOOSTXL-3PhGaNInv Rotor position measurement using Resolver (square pulse excitation technique)  Explore more: 1. Edit resolver and inverter parameters 2. Build, Deploy &amp; Start 3. Observe position via host model 4. Learn more about this example.

BLOCK:
6PWM_Mode;ADC;ADC_B_IN;ADC_C_IN;Action Port;Add;Bias;Byte Pack;Constant;Counter Limited;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Log;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Demux;Digital Output;Display;End;Event Listener;Gain;Hardware Init;Heartbeat LED;If;In;Index Vector;Inverter Enable;Iteration;Merge;Mux;PU Conversion;PWM_Counter_Period;Q17 per unit conversion;RED_LED;Reference;Resolver Decoder;RunTimeMeasurement;SCI (Code Generation);SCI Transmit;SCI_Data;SC_PU;SPI Master Transfer;Scope;Sensors;Serial Send;Square pulse injection;Start;SubSystem;Theta;While Iterator;While Iterator Subsystem;Width;ePWM

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Bias;Byte pack;C28x SCI Transmit;Constant;Counter Limited;DataTypeConversion;Demux;Display;EventListener;F2837x GPIO Digital Output;Gain;If;Inport;Merge;MultiPortSwitch;Mux;Outport;Resolver Decoder Phase1;Scope;Sum;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4


MODELNAME: mcb_resolver_host_read
PATH: examples/mcb/main/mcb_resolver_host_read.slx
BLOCKTYPE_FREQUENCY: 1;2;1;1;5;1;1;1;2;1;1;2
CHECKSUM: 478D79F84D36BBB968116BD30E4EA86C
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
 Copyright 2020-2023 The MathWorks, Inc.  Prerequisites: 1. For square-pulse excitation method, deploy the mcb_resolver_f28379d model to the hardware. 2. For sinusoidal excitation method, deploy the mcb_resolver_f28069m model to the hardware. 3. Verify the variables from the target model in the base workspace.  Rotor position measurement using Resolver - Host  Steps: 1. Select hardware in Target Selelction. Select Other option if you want to manually set the baud rate in Host Serial Setup block. 2. Set the serial port to target.comport in the init script of the target model. 3. Observe the resolver position in scope

BLOCK:
 Demux ; SFunction ; Terminator ;Data Type Conversion;Data_Type_Fixed_Point;Data_Type_Float;HW_Selected;Host Serial Receive;Host Serial Setup;Input;MATLAB Function;Output;Radio Button;Reference;Scope (Per-Unit);Serial Communication;SubSystem;Terminator;Theta;Time Scope;To Workspace

BLOCKTYPE:
Constant;DataTypeConversion;Demux;Inport;Outport;RadioButtonGroup;S-Function;Scope;Terminator;ToWorkspace;system.SerialConfiguration;system.SerialReceive


MODELNAME: mcb_srm_dwellctrl_f28379d
PATH: examples/mcb/main/mcb_srm_dwellctrl_f28379d.slx
CHECKSUM: 22260B12B983112008DC3445DA0750DE
PRODUCT_BASECODE: MT
ANNOTATION:
overflow handling Overflowdetection Detect Zero Current 1 degee Electrical angle thetaEmeas cannot be Zero  thetaEmeas should be >= theta01meas Filter added to reduce sudden changes with computed values. Filter parameters need to be adjusted to speed up / slow down computation of thetaoff. Update turnonoff only at the end of electrical cycle. Filters added to reduce sudden changes with measured values. Filter parameters need to be adjusted to speed up / slow down computation of ON and OFF angles. Online dwell angle computation Constant Angles Delta Controller 180 degrees 180+120 degrees Toggling between ADCs of DRV8305 Board 1 and 2 to measure current in Phase A Inverted as current measurement happens primarily in Board 2 2nd Inversion when Phase A current is measured in Board 1 MotorState = 1 : Open Loop MotorState = 2 : Align Motor Phase A MotorState = 3 : Closed Loop Current Measurements Position & Speed Measurements QEP Motor State Machine Lower Switches of this Inverter are always in OFF condition. for BoostXL-DRV8305 connected with LaunchXL-28379D System Outputs System Outputs for BoostXL-DRV8305 connected with LaunchXL-28379D Upper Switches of this Inverter are always in OFF condition. HW Driver Blocks ADC of other DRV  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Enable inverter 1 Enable inverter 2 System Outputs Block priorities are set to ensure the sequence of operation. for BoostXL-DRV8305 connected to LaunchXL-28379D Heartbeat LED 1HZ Fast Serial Data Monitoring (32-bit) Detect Overflow Offset for Index Pulse Scaling 1 Inverter 2 Inverter 1  PWM to Gate Driver Voltage Gain  Direction: -1 -&gt; Reverse 1 -&gt; Forward  Note: This example requires a TI F28379D LaunchPad with 2 BOOSTXL-DRV8305 booster packs connected to a 12/8 SRM with Encoder Copyright 2022-2023 The MathWorks, Inc.  Speed Control of Switched Reluctance Motor with Online Dwell Angle Computation  Steps: 1. Edit motor &amp; inverter parameters 2. Simulate the model 3. Click Build, Deploy &amp; Start in the Hardware tab. 4. Control motor via host model 5. Learn more about this example

BLOCK:
; Calculate Position and Speed; Demux ; SFunction ; Terminator ;+;-;180 degree Offset;90 degrees;A;ADC Calib Enable;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;AND;Abs;Action Port;Add;Add Offset;Align Phase A;B;Bias;Bitwise Operator;Byte Pack;C;Calculate ADC Offset ;Calculate Iabc (codegen);Calculate Iabc (sim);Calculate Phase Currents;Calibrate ADC offset for current sensor in Inverter ;Chart;Closed Loop Control;Code Generation;Code generation;Codegeneration;Communication;Compare To Constant;Compare To Zero;Conn;Constant;Control System;Counter Limited;CtrlA;Current Control;Current Sensor;D;DC Voltage Source;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug;Debug Signals;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Detect Decrease;Detect Increase;Digital Output;Diode;Direction;Discrete-Time Integrator;Divide;Dummy;Duty Selector;Duty to PWM;DutyCycles;Duty_Cycles;Dwell Angle Computation;ERef;EnClosedLoop;Enable;Enable Closed Loop;Enable Constant Angle;Enable Open Loop;Enable both inverters (DRV8305);Enable_PWM;Enabled Subsystem;End;Event Listener;Feedbacks;FeedbacksSim;For Iterator;For Iterator Subsystem;From;G;GPIO;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get QEP Counts;Get_PU;Goto;GreaterThan;Ground;HW Inputs;HW Interrupt;HWI_ADCA1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Init;HW_Init (Codegen);HW_Init (sim);Hardware Init;Heartbeat LED;IIR Filter;IRef;Ia;Ia_ADC;Ia_Pos;Iab;Iabc;Iabc_meas;Iac;Ib_ADC;Ic_ADC;Ideal Torque Sensor;Ideal Torque Source;If;If Action Subsystem;In;Index Finder;Index Generator;Index Vector;IndexFound;IndexGen;Inertia;Input Scaling;Inverter;Inverter 1 Enable;Inverter 2 Enable;Inverter Signals;Inverter enable;Iref;Iref_Direction;Iref_Ia;Iteration;Load;Load Profile;LoadTorque;Logical Operator;MOS;MOSFET (Ideal, Switching);Max;Mean;Measure theta;Measure thetaE;Mechanical Rotational Reference;Mechanical to Electrical Position;Memory;Merge;Mod;Motion Sensor;Motor State Machine;Motor and Inverter;MotorState;MotorTorque;Multiport Switch;Mux;NOT;Offset;Offset voltage;OffsetCalibration;OnOffAngles;One;Open Loop Start Up;Out;PI Controller;PS-Simulink Converter;PU;PWM - Inverter;PWM Generator;PWM_Enable;Parse;Phase A Alignment;PhaseCurrents;Pk-Pk;PosE;Pos_MotorState;Pos_e;Position;Power Converter and Motor - Plant Model;Power Sensor;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Radio Button;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Limiter;Rate Transition;Reciprocal;Reference;Relational Operator;Reversal;Rotational Damper;Rotor angle (radians);S;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx_INT;SCI_Tx;SRM;SRM Commutation;SampleCount;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Saturation;Scale_to_PWM_Counter_PRD;Selector;Sensor;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor Measurements;Serial Receive;Set_Reset;Shift Arithmetic;Sign;Sim;Sim_fb;Simulation;Simulation_Terminator;Simulink-PS Converter;Solver Configuration;Speed;Speed Control;Speed Measurement;SpeedMeas;SpeedRef;Speed_Ref;Speed_Ref_Final (rpm);Speed_Ref_Init (rpm);Speed_fb;Start;SubSystem;Subsystem;Sum;SumTorque;Switch;T_load;Terminator;Theta;Theta_e;Three-arm bridge;To PU;To PU ;TogglePhaseA;TopSwA;Torque Ripple Computation;Trigger;Unit Delay;UpdateOnOffAngles;Variant Subsystem;While Iterator;While Iterator Subsystem;Width;ctrl;dutyCycle;dutyTopSwitch;ePWM;eQEP;gnd;iRef;iref;max;min;out;overflow;rad;rpm2PU;speed;speed_control;speedref;start;stop;theta;theta01meas;thetaE;thetaEmeas;theta_m;thetaoff;thetaon;u;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Bias;Bitwise Operator;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Compare To Constant;Compare To Zero;Constant;Counter Limited;Current Sensor (Three-Phase);DC Voltage Source;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Detect Decrease;Detect Increase;Diode;DiscreteIntegrator;Electrical Reference;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;Ideal Rotational Motion Sensor;Ideal Torque Sensor;Ideal Torque Source;If;Inertia;Inport;InportShadow;Logic;MOSFET (Ideal, Switching);Math;Mechanical Rotational Reference;Mechanical to Electrical Position;Memory;Merge;MinMax;MultiPortSwitch;Mux;Outport;PID 1dof;PMIOPort;PS-Simulink Converter;PWM Generator;Power Sensor;Product;Quadrature Decoder;RadioButtonGroup;RateLimiter;RateTransition;RelationalOperator;Rotational Damper;S-Function;SRM Commutation;Saturate;Selector;Signum;Simulink-PS Converter;Solver Configuration;Speed Measurement;Step;Sum;Switch;Switched Reluctance Machine;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
8;6;16;4;2;4;1;2;1;1;9;2;77;1;1;1;8;14;16;33;2;16;21;4;1;6;5;1;20;1;5;1;33;2;20;20;4;2;4;1;1;1;8;1;176;11;19;6;3;1;1;4;7;4;2;35;125;1;26;4;1;1;10;1;1;2;9;2;1;1;2;4;1;1;7;1;1;4;25;19;1;15;2;1;1;1;6

PRODUCT:
C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simscape;Simscape;Simscape Electrical;Simulink;Stateflow


MODELNAME: mcb_srm_spdctrl_f28379d
PATH: examples/mcb/main/mcb_srm_spdctrl_f28379d.slx
CHECKSUM: 7B64CD4A5B36BA1C23256B4E9E11309E
PRODUCT_BASECODE: MT
ANNOTATION:
180 degrees 180+120 degrees MotorState = 1 : Open Loop MotorState = 2 : Align Motor Phase A MotorState = 3 : Closed Loop Current Measurements Position & Speed Measurements QEP Motor State Machine Lower Switches of this Inverter are always in OFF condition. for BoostXL-DRV8305 connected with LaunchXL-28379D System Outputs System Outputs for BoostXL-DRV8305 connected with LaunchXL-28379D Upper Switches of this Inverter are always in OFF condition. Fast Serial Data Monitoring (32-bit) HW Driver Blocks SI Unit does not support Fixed Point implementation MotorState = 1 : Open Loop MotorState = 2 : Align Motor Phase A MotorState = 3 : Closed Loop Current Measurements Position & Speed Measurements QEP Motor State Machine for BoostXL-DRV8305 connected with LaunchXL-28379D System Outputs Lower Switches of this Inverter are always in OFF condition. System Outputs for BoostXL-DRV8305 connected with LaunchXL-28379D Upper Switches of this Inverter are always in OFF condition. Fast Serial Data Monitoring (32-bit) HW Driver Blocks  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Enable inverter 1 Enable inverter 2 System Outputs Block priorities are set to ensure the sequence of operation. for BoostXL-DRV8305 connected to LaunchXL-28379D Heartbeat LED 1HZ Detect Overflow Offset for Index Pulse Scaling Inverter 2 Inverter 1  PWM to Gate Driver Voltage Gain  Direction: -1 -&gt; Reverse 1 -&gt; Forward  Direction: -1 -&gt; Reverse 1 -&gt; Forward  Note: This example requires a TI F28379D LaunchPad with 2 BOOSTXL-DRV8305 booster packs connected to a 12/8 SRM with Encoder  Copyright 2022-2023 The MathWorks, Inc.  Speed Control of Switched Reluctance Motor  Steps: 1. Edit motor &amp; inverter parameters 2. Simulate the model 3. Click Build, Deploy &amp; Start in the Hardware tab. 4. Control motor via host model 5. Learn more about this example

BLOCK:
; Calculate Position and Speed;+;-;A;ADC Calib Enable;ADCINT;ADC_A_IN;ADC_B_IN;ADC_C_IN;AND;Abs;Action Port;Add;Add Offset;Align Phase A;B;Bias;Bitwise Operator;Byte Pack;C;Calculate ADC Offset ;Calculate Phase Currents;Calibrate ADC offset for current sensor in Inverter ;Closed Loop Control;Code Generation;Code generation;Codegeneration;Compare To Constant;Conn;Constant;Control System;Counter Limited;Current Control;Current Sensor;D;DC Voltage Source;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug Signals;Debug_signal;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Diode;Direction;Divide;Dummy;Duty Selector;Duty to PWM;DutyCycles;Duty_Cycles;ERef;EnClosedLoop;Enable;Enable Closed Loop;Enable Open Loop;Enable both inverters (DRV8305);Enable_PWM;Enabled Subsystem;End;Event Listener;Feedbacks;FeedbacksSim;For Iterator;For Iterator Subsystem;From;G;GPIO;Gain;Get ADC Count;Get ADC Voltage;Get Current Sense Voltage;Get Currents;Get QEP Counts;Get_PU;Goto;GreaterThan;Ground;HW Inputs;HW Interrupt;HWI_ADCA1_INT;HWI_SCIA_RX_INT;HW_INT;HW_Init;HW_Init (Codegen);HW_Init (sim);Hardware Init;Heartbeat LED;IIR Filter;IRef;Ia_ADC;Ia_Pos;Iab;Iabc;Iabc_meas;Iac;Ib_ADC;Ic_ADC;Ideal Torque Sensor;Ideal Torque Source;If;If Action Subsystem;In;Index Finder;Index Generator;Index Vector;IndexFound;IndexGen;Inertia;Input Scaling;Inverter;Inverter 1 Enable;Inverter 2 Enable;Inverter Signals;Inverter enable;Inverting / Non-inverting Current measurement amplifieer;Iref_Direction;Iref_Ia;Iteration;Ki;Load;Load Profile;LoadTorque;Logical Operator;MOS;MOSFET (Ideal, Switching);Mechanical Rotational Reference;Mechanical to Electrical Position;Memory;Merge;Mod;Motion Sensor;Motor State Machine;MotorState;Multiport Switch;Mux;NOT;Offset;Offset voltage;OffsetCalibration;One;Open Loop Start Up;Out;PI Controller;PS-Simulink Converter;PU;PUtoRPM;PWM - Inverter;PWM Generator;PWM_Enable;Parse;Per Unit;Phase A Alignment;PhaseCurrents;Pos_MotorState;Pos_e;Position;Power Converter and Motor - Plant Model;Product;Q17 per unit conversion;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Limiter;Rate Transition;Reference;Reversal;Rotational Damper;Rotor angle (radians);S;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SI Unit;SRM;SRM Commutation;Sample_Time;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor Measurements;Serial Receive;Shift Arithmetic;Sign;Sim;Sim_fb;Simulation;Simulation_Terminator;Simulink-PS Converter;Solver Configuration;Speed;Speed Control;Speed Measurement;SpeedMeas;SpeedRef;Speed_Ref;Speed_Ref_Final (rpm);Speed_Ref_Init (rpm);Speed_fb;Start;SubSystem;Subsystem;Sum;Switch;T_load;Terminator;Theta;Theta_e;Three-arm bridge;To PU;To PU ;Trigger;Unit Conversion;Unit Delay;Variant Sink;Variant Source;Variant Subsystem;While Iterator;While Iterator Subsystem;Width;ctrl;dutyCycle;dutyTopSwitch;ePWM;eQEP;iRef;out;rad;rpm2PU;speed;speed_control;stop;theta;theta_m;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Bias;Bitwise Operator;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Compare To Constant;Constant;Counter Limited;Current Sensor (Three-Phase);DC Voltage Source;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Diode;DiscreteIntegrator;Electrical Reference;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;Ideal Rotational Motion Sensor;Ideal Torque Sensor;Ideal Torque Source;If;Inertia;Inport;InportShadow;Logic;MOSFET (Ideal, Switching);Math;Mechanical Rotational Reference;Mechanical to Electrical Position;Memory;Merge;MultiPortSwitch;Mux;Outport;PID 1dof;PMIOPort;PS-Simulink Converter;PWM Generator;Product;Quadrature Decoder;RateLimiter;RateTransition;RelationalOperator;Rotational Damper;SRM Commutation;Saturate;Selector;Signum;Simulink-PS Converter;Solver Configuration;Speed Measurement;Step;Sum;Switch;Switched Reluctance Machine;Terminator;TriggerPort;UnitDelay;VariantSink;VariantSource;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
9;3;13;3;4;4;2;2;2;2;13;108;2;1;1;7;20;14;32;4;11;23;6;4;1;21;1;7;1;26;2;25;18;7;2;2;1;1;1;6;1;193;10;31;6;2;1;2;3;8;4;52;139;4;23;3;1;13;2;3;8;2;1;4;2;2;2;7;1;2;4;16;27;1;7;2;2;1;1;2;2;12

PRODUCT:
C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simscape;Simscape;Simscape Electrical;Simulink


MODELNAME: mcb_srm_spdctrl_host
PATH: examples/mcb/main/mcb_srm_spdctrl_host.slx
BLOCKTYPE_FREQUENCY: 2;3;4;6;1;1;1;11;1;2;9;1;1;2;1;1;1;2;1;2;1
CHECKSUM: 9FB6A9566711FA807D127A0C2A665C1A
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX RX Switched Reluctance Motor Control Host  Copyright 2022-2023 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 3. Use Motor switch to control the motor. 4. Enter Reference speed in RPM using edit box. 5. Start the motor under no load. 6. Recommended to have lower reference speeds during startup and later on increase the speed to required values.   Motor  Prerequisites: 1. Deploy the target model to the hardware mcb_srm_spdctrl_f28379d mcb_srm_dwellctrl_f28379d 2.You should see and verify the variables from the target model in the base workspace. 

BLOCK:
Bitwise Operator;Change_detect;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug_signals;Enable;Enable_PWM;Enabled Subsystem;FWC Enable;Gain;Host Serial Receive;Host Serial Setup;Host Serial Transmit;In;Logical Operator;Motor Start Stop;Mux;Out;Parse;Radio Button;Rate Transition;Reference;Reference Speed [RPM];Relational Operator;Scope;Scope (Per-Unit);Serial Communication;Shift Arithmetic;Signals;Slider Switch;Speed demand (RPM);SubSystem;Sum;Unit Delay

BLOCKTYPE:
ArithShift;Bitwise Operator;Constant;DataTypeConversion;EditField;EnablePort;Gain;Inport;Logic;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;Scope;SliderSwitchBlock;Sum;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_synrm_nonlin_fwc
PATH: examples/mcb/main/mcb_synrm_nonlin_fwc.slx
CHECKSUM: EF58D61AB6F59FD9C34591C0C4B52609
PRODUCT_BASECODE: MT
ANNOTATION:
 The saturation limit value is set to 1.  Steps: 1. To use a custom motors FEM data, use the instructions 2. Select the motor plant model from the PlantSelection options 3. Simulate the model 4. Review results in Data Inspector 5. Learn more about this example.  Copyright 2023 The MathWorks, Inc. Note: This is a simulation-only example, and uses the data from JMAG-RT. SynRM Field Weakening Control using FEM data

BLOCK:
+;-;3phase converter;6-pulse PWM generator;Average-Value Inverter;Battery;Battery voltage (V);Bus Selector;Clarke Transform;Constant;Control System;Control_System;Controlled Voltage Source;Converter (Three-Phase);Current Sensor (Three-Phase);Current_Controllers;DQ Limiter;Dabc;Data Type Conversion;Delay;Demux;Discrete PI Controller with anti-windup & reset;Display;Duty_Cycles;Electrical Reference;Enable;Feedbacks_sim;Field Oriented Control Autotuner;Flux-Based PMSM;From;Gain;Get_PU;Get_PU ;Goto;IIR Filter;I_fb;I_ref;Iab_meas_PU;Id_fb;Ideal Rotational Motion Sensor;Ideal Torque Source;Idq_ref;In;Inverse Park Transform;Inverter Model;Inverter and Motor;Iq_fb;Ki;Kp;LUT based SynRM Control Reference;LdTrq;Line Voltage Sensor (Three-Phase);Logical Operator;Low-Pass Filter (Discrete or Continuous);Mechanical Rotational Reference;Mechanical to Electrical Position;Mod;ModWave;Mux;NOT;One_by_Two;Optional_Autotuner;Out;Output Scaling;PIDout_daxis;PIDout_qaxis;PI_Controller_Id;PI_Controller_Iq;PI_Controller_Speed;PS-Simulink Converter;PTBS;PU;PU_Conversion;PWM_Duty_Cycles;Park Transform;PhaseCurr;Pos;Pos_meas_PU;R ;RT;Radio Button;Rate Transition;Reference;Relay;Repeating Sequence Interpolated;Scale;SelectPlantModel;Selector;Sensor_Measurements;Sim_fb;Simscape;Simulink-PS Converter;Sine-Cosine Lookup;Six-Pulse Gate Multiplexer;Solver Configuration;Space Vector Generator;Speed Control;Speed Measurement;Speed Reference (RPM);Speed ref RPM;Speed_fb;Speed_ref;SubSystem;Subsystem;Sum;SynRM FeedForward Control;SynRM Torque Estimator;Synchronous Reluctance Machine;T_ref;Terminator;Tm;Torque Control;Torque Reference (Nm);Torque ref Nm;Torque_ref;Unit Delay;V_ref;Vabc_ref;Variant Subsystem;Vd_ref;Vdc;Vdc2PU;Vector plot;Vq_ref;Wm_fb;duty_abc;g;ia;iab;iab_pu;ib;measVI;pos;pos_rad;rad;rpm2PU;rpm2pu;w;~;ϴe

BLOCKTYPE:
Average Value Inverter;BusSelector;Clarke Transform;Constant;Controlled Voltage Source;Converter (Three-Phase);Current Sensor (Three-Phase);DQ Limiter;DataTypeConversion;Delay;Demux;Display;DisplayBlock;Electrical Reference;FOCAutoTuner;Flux-Based PMSM;From;Gain;Goto;IIR Filter;Ideal Rotational Motion Sensor;Ideal Torque Source;Inport;Inverse Park Transform;KnobBlock;LUT based SynRM Control Reference;Line Voltage Sensor (Three-Phase);Logic;Low-Pass Filter (Discrete or Continuous);Math;Mechanical Rotational Reference;Mechanical to Electrical Position;Mux;Outport;PID 1dof;PMIOPort;PS-Simulink Converter;PWM Modulation;Park Transform;RadioButtonGroup;RateTransition;Relay;Repeating Sequence Interpolated;Selector;Simulink-PS Converter;Sine-Cosine Lookup;Six-Pulse Gate Multiplexer;SliderBlock;Solver Configuration;Speed Measurement;Sum;SynRM Feed Forward Control;SynRM Torque Estimator;Synchronous Reluctance Machine;Terminator;UnitDelay;mcb_vectorplot

BLOCKTYPE_FREQUENCY:
1;1;1;18;1;1;1;1;7;2;5;3;2;1;1;1;5;10;5;2;1;1;50;1;2;1;1;4;1;1;3;1;7;29;3;7;4;1;1;1;13;1;1;2;8;1;1;1;1;1;10;1;1;1;8;2;1

PRODUCT:
Embedded Coder;MATLAB;MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware;Motor Control Blockset;Simscape;Simscape;Simscape Electrical;Simulink


MODELNAME: current_control_algorithm
PATH: examples/mcb/projects/src/FOCAlgorithmExportDemo/foc_qep/current_control_algorithm.slx
BLOCKTYPE_FREQUENCY: 1;1;1;2;15;1;1;2;2;1;3;2;10;2;1;51;1;7;1;4;28;2;1;1;1;3;1;1;1;1;5;2;1
CHECKSUM: 3876DDFA7114870324B9518100B89EAA
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Current Measurements Current Control Algorithm  Explore more: 1. Edit motor &amp; inverter parameters 2. Generate c code using the Embedded Coder app 3. Integrate generated code with driver code 4. Control motor via host model   Copyright 2021-2022 The MathWorks, Inc.

BLOCK:
 ; Calculate Speed;3-Phase Sine Voltage Generator;AND;Abs;Add;Calculate Phase Currents;Clarke Transform;Closed Loop Control;Compare To Constant;Constant;Control_System;Correction_Factor_sinePWM;Current Control;Current_Controllers;DQ Limiter;Data Type Conversion;Delay;Demux;Direction;Discrete PI Controller with anti-windup & reset;Divide;Duty_Cycles;EnClosedLoop;Enable;From;Gain;Get ADC Voltage;Get Currents;Goto;IIR Filter;I_fb;I_ref;Ia_ADC;Iab_meas_PU;Ib_ADC;Id;Idq_ref_PU;In;IndexFinder;IndexFound;Input Scaling;Inverse Park Transform;Inverting / Non-inverting Current measurement amplifieer;Iq;Ki;Kp;Logical Operator;Mechanical to Electrical Position;Mux;NOT;Offset;One;Open Loop Start-Up;Out;PI_Controller_Id;PI_Controller_Iq;PU_Conversion;PWM_Duty;Park Transform;Pos_PU;Position Generator;Product;QEP_Count;QEP_Index;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Reference;Sample_Time;Saturation;Sine-Cosine Lookup;Space Vector Generator;Speed Measurement;Speed_meas_PU;Speed_ref(rpm);SubSystem;Sum;Switch;Terminator;Theta_e;V-by-f;V_ref;Vabc in PU;Vd_ref;Vq_ref;duty_cycles;en_closed_loop;enable;enable_cl_host;idq_ref_pu;position_increment;position_meas;rpm2freq;speed;speed_PU;speed_meas_pu;speed_ref

BLOCKTYPE:
3-Phase Sine Voltage Generator;Abs;Clarke Transform;Compare To Constant;Constant;DQ Limiter;DataTypeConversion;Delay;Demux;DiscreteIntegrator;EnablePort;From;Gain;Goto;IIR Filter;Inport;Inverse Park Transform;Logic;Mechanical to Electrical Position;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Position Generator;Product;Quadrature Decoder;Saturate;Sine-Cosine Lookup;Speed Measurement;Sum;Switch;Terminator


MODELNAME: foc_qep_host
PATH: examples/mcb/projects/src/FOCAlgorithmExportDemo/foc_qep/foc_qep_host.slx
BLOCKTYPE_FREQUENCY: 5;5;1;1;1;5;9;1;1;7;3;1;1;2;2;1;3;1;1;1
CHECKSUM: 3315B0A422BAACE0ECFD62E188A46617
PRODUCT: MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX RX  FOC QEP Host Control Motor Control Panel  Steps: 1. Set the baud rate for serial communication in Host Serial Setup block. 2. Select the port in Host Serial Setup, Host Serial Receive and Host Serial Transmit. 3. Use Motor Start / Stop switch to control the start and stop of the motor. 4. Use the Motor Control Open Loop / Closed Loop switch to switch between open loop and closed loop control. 4. Enter speed request in RPM using Speed Reference edit box. Limit the reference speed to half of the rated speed while starting the motor in open loop. 5. Observe the Ia and measured speed signals on the scope.  Copyright 2021 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;Constant;Data Type Conversion;Enable;Equal;Gain;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_pu;In;Input;MATLAB Function;Motor;Motor Control;Mux;OR;Out;Output;RX;Reference;Scope;Speed Reference (RPM);SubSystem;Subsystem;Subtract;Unit Delay;change detect;enable;enable (0/1);enable closed loop (0/1);enable_cl;isChange;speed ref (RPM);speed_meas_pu;speed_ref_rpm;transmit data

BLOCKTYPE:
Constant;DataTypeConversion;Demux;EditField;EnablePort;Gain;Inport;Logic;Mux;Outport;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Sum;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: foc_qep_sim
PATH: examples/mcb/projects/src/FOCAlgorithmExportDemo/foc_qep/foc_qep_sim.slx
BLOCKTYPE_FREQUENCY: 1;1;5;9;2;2;4;6;4;16;2;2;1;15;1;16;2;1;5;2;1;3
CHECKSUM: 23DEA9F4CA50C2F7EB91A94881D6C557
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
EXTERNALFILE_REFERENCE: current_control_algorithm___Model_Block___speed_control_algorithm___Model_Block___
ANNOTATION:
Scaling Delays  Permanent Magnet Synchronous Motor Field Oriented Control  Copyright 2022 The MathWorks, Inc.  Explore more: 1. Edit motor &amp; inverter parameters 2. Simulate this model 3. Learn more about this example 

BLOCK:
Add;Add Offset;Average-Value Inverter;Bus Selector;Constant;Current Control;Current Control Reference;Data Type Conversion;Delay;Demux;Duty_Cycles;Duty_abc;EnClosedLoopHost;Enable;Enable_System;From;Gain;Get ADC Count;Get Current Sense Voltage;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Iab;Iab_ADC;Iab_ADC_fb;IdqRef_PU;IndexOffset in PU;Info;Inverter;Inverter and Motor;Load_Profile (Torque);Load_Trq;Mod;Mux;Offset voltage;PU;PhaseCurr;QEP;QEP_fb;RT;Rate Limiter;Rate Transition;Reference;Saturate at ADC Vref;Saturate at inverter Vref;Selector;Sensor_Measurements;Speed Control;Speed Control Reference;SpeedRef;SpeedRef_RPM;Speed_Ref;Speed_fb;StartClosedLoop;SubSystem;Surface Mount PMSM;Switch to closed loop ;System Inputs;T_load;Terminator;Vabc;Wrap;duty_cycles;en_closed_loop;enable;enable_cl_host;idq_ref_pu;in;out;rad;speed_meas_pu;speed_ref;~1.65V in ADC counts

BLOCKTYPE:
Average Value Inverter;BusSelector;Constant;DataTypeConversion;Delay;Demux;From;Gain;Goto;Inport;Math;ModelReference;Mux;Outport;RateLimiter;RateTransition;Saturate;Selector;Step;Sum;Surface Mount PMSM;Terminator


MODELNAME: speed_control_algorithm
PATH: examples/mcb/projects/src/FOCAlgorithmExportDemo/foc_qep/speed_control_algorithm.slx
BLOCKTYPE: Constant;IIR Filter;Inport;Logic;Mux;Outport;PID 1dof;Sum;Switch
BLOCKTYPE_FREQUENCY: 4;1;15;2;1;4;1;1;1
CHECKSUM: 2A0D795F88239BBFC29389033146DAF8
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Speed Control Algorithm  Explore more: 1. Edit motor &amp; inverter parameters 2. Generate c code using the Embedded Coder app 3. Integrate generated code with driver code 4. Control motor via host model   Copyright 2021 The MathWorks, Inc.

BLOCK:
AND;Discrete PI Controller with anti-windup & reset;Id_Ref;IdqRef_PU;Iq_ref;Ki;Kp;Logical Operator;Mux;N_fb;N_ref;PI_Controller_Speed;Reference;Speed Control;Speed_Meas_PU;Speed_Ref_In;Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;SubSystem;Sum;Switch;Zero_Cancellation;en_closed_loop;enable;speed_meas_pu;speed_ref_pu


MODELNAME: open_loop_algorithm
PATH: examples/mcb/projects/src/FOCAlgorithmExportDemo/open_loop/open_loop_algorithm.slx
BLOCKTYPE_FREQUENCY: 1;1;3;2;1;6;15;1;1;6;1;3;1;1;1;1
CHECKSUM: 2D0D48E70ACB3F00402C5346201F89A2
PRODUCT_BASECODE: MT
ANNOTATION:
 Openloop Algorithm  Explore more: 1. Edit motor &amp; inverter parameters 2. Generate c code using the Embedded Coder app 3. Integrate generated code with driver code 4. Control motor via host model   Copyright 2021 The MathWorks, Inc.

BLOCK:
3-Phase Sine Voltage Generator;Abs;Add;Amplitude;Constant;Control_System;Correction_Factor_sinePWM;Data Type Conversion;Divide;Enable;Frequency;Gain;Lower Saturation;LowerSaturation;Mux;NOT;One;Position Generator;Product;Ramp;Ramp Generator;Ramp_Time;Reference;Relational Operator;Sample_Time;Saturate output to limits;Saturation;SpeedRefToFreq;Speed_Ref;Speed_ref;SubSystem;Switch;V-by-f;Vabc;Vabc in PU;VabcCalc;Vamplitude;boost_voltage;enable;position_increment;ramp_time;rpm2freq;speed_ref_rpm

BLOCKTYPE:
3-Phase Sine Voltage Generator;Abs;Constant;DataTypeConversion;DiscreteIntegrator;Gain;Inport;Logic;Mux;Outport;Position Generator;Product;RelationalOperator;Saturate;Sum;Switch

PRODUCT:
Embedded Coder;MATLAB;MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware;Motor Control Blockset;Simulink


MODELNAME: open_loop_host
PATH: examples/mcb/projects/src/FOCAlgorithmExportDemo/open_loop/open_loop_host.slx
BLOCKTYPE_FREQUENCY: 2;2;1;1;1;5;1;1;5;2;1;1;1;1;2;1;1;1
CHECKSUM: 5FBF0FBC21DE9AC48E156B8049B9C648
PRODUCT: MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX RX  Openloop Control Host  Copyright 2021 The MathWorks, Inc.  Steps: 1. Set the baud rate for serial communication in Host Serial Setup block. 2. Select the port in Host Serial Setup, Host Serial Receive and Host Serial Transmit. 3. Use Motor Start / Stop switch to control the motor. 4. Enter speed request in RPM using Speed Reference edit box. Limit the reference speed to half of the rated speed. 5. Observe the ADC counts for phase current measurent in Scope. Motor Control Panel

BLOCK:
 Demux ; SFunction ; Terminator ;Data Type Conversion;Enable;Equal;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia (ADC);Ib (ADC);Input;MATLAB Function;Motor;Mux;OR;Output;Reference;Scope;Serial Communication;Speed reference (RPM);SubSystem;Unit Delay;change detect;enable;isChange;speed ref (RPM);speed_ref_rpm;transmit data

BLOCKTYPE:
Constant;DataTypeConversion;Demux;EditField;EnablePort;Inport;Logic;Mux;Outport;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: qep_calibration_algorithm
PATH: examples/mcb/projects/src/FOCAlgorithmExportDemo/qep_calibration/qep_calibration_algorithm.slx
BLOCKTYPE_FREQUENCY: 2;8;1;1;7;1;1;1;9;1;1;1;1;1;1;3;2;2
CHECKSUM: 92D4BB7159A8FB1A408CEADDD7ABE7C5
PRODUCT_BASECODE: MT
ANNOTATION:
Offset Computation algorithm for QEP  Explore more: 1. Edit motor &amp; inverter parameters 2. Generate c code using the Embedded Coder app 3. Integrate generated code with driver code 4. Control motor via host model   Copyright 2021 The MathWorks, Inc.

BLOCK:
Add;Compare To Constant;Constant;Control System;Count;Enable;Gain;IndexCount;Inverse Park Transform;Mechanical to Electrical Position;Mux;Position Generator;Product;QEP Decoder;Quadrature Decoder;Reference;Saturation;Sine-Cosine Lookup;Space Vector Generator;SubSystem;Switch;Unit Delay;Vabc_pu;Vd_Ref;count;counter;enable;index;mode;pos_pu;pos_ref;pos_ref_gen;ϴe

BLOCKTYPE:
Compare To Constant;Constant;EnablePort;Gain;Inport;Inverse Park Transform;Mechanical to Electrical Position;Mux;Outport;PWM Modulation;Position Generator;Product;Quadrature Decoder;Saturate;Sine-Cosine Lookup;Sum;Switch;UnitDelay

PRODUCT:
Embedded Coder;MATLAB;MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware;Motor Control Blockset;Simulink


MODELNAME: qep_calibration_host
PATH: examples/mcb/projects/src/FOCAlgorithmExportDemo/qep_calibration/qep_calibration_host.slx
BLOCKTYPE_FREQUENCY: 1;2;3;1;1;1;1;3;3;7;1;1;1;1;1;1;1;1;1;1
CHECKSUM: 3299880FEB7F263CE6FA97BAE5DF84B8
PRODUCT: MATLAB;MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX RX  QEP offset calibration host Motor Control Panel  Steps: 1. Set the baud rate for serial communication in Host Serial Setup block. 2. Select the port in Host Serial Setup, Host Serial Receive and Host Serial Transmit. 3. Use Calibration Start / Stop switch to control the motor. 4. Observe the position signal on the scope and ensure that the signal has a positive slope. If not, stop the calibration, disconnect the power supply and interchange two of the motor phases. 5. The calculated offset will be displayed on the &quot;QEP offset (pu)&quot; block  Copyright 2021 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;Calibration;Compare To Zero;Constant;Data Type Conversion;Display;Enable;Equal;Gain;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Input;MATLAB Function;Output;QEP offset (pu);Reference;Scope;Serial Communication;SubSystem;Switch;Unit Delay;change detect;enable;enable (0/1);isChange;mode;position;transmit data

BLOCKTYPE:
Compare To Zero;Constant;DataTypeConversion;Demux;Display;DisplayBlock;EnablePort;Gain;Inport;Outport;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Switch;Terminator;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: CDD_TorqueControl
PATH: examples/mcb/projects/src/MotorControlAUTOSAR/components/CDD_TorqueControl.slx
BLOCKTYPE_FREQUENCY: 1;7;1;1;2;2;20;1;1;2;1;7;2;1;1;2;1;2;1;2
CHECKSUM: A255B3073DCFB0A88BFAEE8705657251
PRODUCT: AUTOSAR Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
Bus Element In;Bus Element Out;Clarke Transform;Constant;Current_Controllers;DQ Limiter;Demux;Discrete PI Controller with anti-windup & reset;En;From;Goto;I_fb;I_ref;Id;Id_Ref;In Bus Element;Inverse Park Transform;Iq;Iq_Ref;Ki;Kp;Logical Operator;Mux;PI_Controller_Id;PI_Controller_Iq;Park Transform;Rate Transition;Reference;Sine-Cosine Lookup;Space Vector Generator;SubSystem;Sum;Switch;Terminator;V_ref;Vd_ref;Vq_ref;wm

BLOCKTYPE:
Clarke Transform;Constant;DQ Limiter;Demux;From;Goto;Inport;InportShadow;Inverse Park Transform;Logic;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;RateTransition;Sine-Cosine Lookup;Sum;Switch;Terminator


MODELNAME: EncoderAbstraction
PATH: examples/mcb/projects/src/MotorControlAUTOSAR/components/EncoderAbstraction.slx
BLOCKTYPE: IIR Filter;Inport;Mechanical to Electrical Position;Outport;Quadrature Decoder;Speed Measurement
BLOCKTYPE_FREQUENCY: 1;2;1;2;1;1
CHECKSUM: 3CCD59E697098EB8C1ECAB198789DA06
PRODUCT: AUTOSAR Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
Bus Element In;Bus Element Out;IIR Filter;Mechanical to Electrical Position;Quadrature Decoder;Reference;Speed Measurement


MODELNAME: MCAL_OUT_Sim
PATH: examples/mcb/projects/src/MotorControlAUTOSAR/components/MCAL_OUT_Sim.slx
BLOCKTYPE: Constant;DataTypeConversion;DataTypeDuplicate;Demux;Inport;Mux;Outport;RateTransition;Step;Switch
BLOCKTYPE_FREQUENCY: 1;1;1;1;3;2;3;3;1;1
CHECKSUM: F4A8E7A1A10E19DAF50B99CD2280AA3E
PRODUCT: AUTOSAR Blockset;Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
BLOCK:
Data Type Conversion;Data Type Duplicate;Demux;In Bus Element;Mux;Out Bus Element;Rate Transition;Step;Switch;stop


MODELNAME: Plant
PATH: examples/mcb/projects/src/MotorControlAUTOSAR/components/Plant.slx
ANNOTATION: Scaling Delays
BLOCKTYPE_FREQUENCY: 1;1;5;6;2;1;3;1;8;1;2;1;9;5;1;2;2;1
CHECKSUM: 6E4F37DCC2FDC4A24A9F3BB79EF92FB5
PRODUCT: AUTOSAR Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
Add;Add Offset;Average-Value Inverter;Bus Selector;Constant;Data Type Conversion;Delay;Demux;Duty_abc;Gain;Get_PU;Get_PU ;Get_QEP_Counts;IIR Filter;In Bus Element;IndexOffset in PU;Info;Interior PMSM;Inverter;Load_Profile (Torque);Load_Trq;Mod;Mux;Out Bus Element;PU;PhaseCurr;RT;Rate Transition;Reference;Selector;Sensor_Measurements;SubSystem;Switch to closed loop ;T_load;Terminator;Vabc;Wrap;in;out;rad;~1.65V in ADC counts

BLOCKTYPE:
Average Value Inverter;BusSelector;Constant;DataTypeConversion;Delay;Demux;Gain;IIR Filter;Inport;Interior PMSM;Math;Mux;Outport;RateTransition;Selector;Step;Sum;Terminator


MODELNAME: SpeedControl
PATH: examples/mcb/projects/src/MotorControlAUTOSAR/components/SpeedControl.slx
BLOCKTYPE: Constant;IIR Filter;Inport;Logic;MTPA Control Reference;Outport;PID 1dof;RateTransition;Sum;Switch
BLOCKTYPE_FREQUENCY: 3;1;9;1;1;4;1;3;1;1
CHECKSUM: 37CE31B8CAA75E2AB8EB61F2A50DEDE3
PRODUCT: AUTOSAR Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
Discrete PI Controller with anti-windup & reset;En;Enable;In Bus Element;Ki;Kp;Logical Operator;MTPA Control Reference;N_fb;N_ref;Out Bus Element;PI_Controller_Speed;Rate Transition;Reference;Speed_Ref_In;Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;SubSystem;Sum;Switch;T_ref;Zero_Cancellation


MODELNAME: TorqueControl
PATH: examples/mcb/projects/src/MotorControlAUTOSAR/components/TorqueControl.slx
BLOCKTYPE_FREQUENCY: 1;6;1;2;2;17;1;1;2;7;2;1;1;6;1;2;1
CHECKSUM: CC8C1C2C957AB1B2204D874E2AFDCAAC
PRODUCT: AUTOSAR Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
Clarke Transform;Current_Controllers;DQ Limiter;Discrete PI Controller with anti-windup & reset;En;From;Goto;I_fb;I_ref;Id;Id_Ref;In Bus Element;Inverse Park Transform;Iq;Iq_Ref;Ki;Kp;Logical Operator;Out Bus Element;PI_Controller_Id;PI_Controller_Iq;Park Transform;Rate Transition;Reference;Sine-Cosine Lookup;Space Vector Generator;SubSystem;Sum;Terminator;V_ref;Vd_ref;Vq_ref

BLOCKTYPE:
Clarke Transform;Constant;DQ Limiter;From;Goto;Inport;InportShadow;Inverse Park Transform;Logic;Outport;PID 1dof;PWM Modulation;Park Transform;RateTransition;Sine-Cosine Lookup;Sum;Terminator


MODELNAME: mcb_AUTOSAR
PATH: examples/mcb/projects/src/MotorControlAUTOSAR/integModels/mcb_AUTOSAR.slx
BLOCKTYPE: Inport;ModelReference;Outport
BLOCKTYPE_FREQUENCY: 27;6;9
CHECKSUM: 70C6B019649EB578470AE651671B035C
PRODUCT: AUTOSAR Blockset;Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
BLOCK:
ADCAbstraction;ADCAbstraction_D;Application;Bus Element In;Bus Element Out;CDD_TorqueControl;CDD_TorqueControl_D;ComplexDeviceDriver;CruiseControl;CruiseControl_D;ECUAbstraction;EncoderAbstraction;EncoderAbstraction_D;GPIOAbstraction;GPIOAbstraction_D;In Bus Element;Out Bus Element;PWMAbstraction;PWMAbstraction_D;SubSystem

EXTERNALFILE_REFERENCE:
ADCAbstraction___Model_Block___CDD_TorqueControl___Model_Block___EncoderAbstraction___Model_Block___GPIOAbstraction___Model_Block___PWMAbstraction___Model_Block___SpeedControl___Model_Block___


MODELNAME: parameter_estimation_algorithm
PATH: examples/mcb/projects/src/ParameterEstimationAlgorithm/parameter_estimation_algorithm.slx
BLOCKTYPE_FREQUENCY: 2;9;2;2;13;26;22;12;10;12;1;2;3;27;13;24;2;132;4;1;2;1;2;16;77;2;1;2;8;1;3;1;1;3;1;13;4;1;5;2;9
CHECKSUM: 6310A7CDDD9557CEA7BBC43CC6AF3B6A
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
sinAmp_ac*sin(SineWaveArr))*Ld_measure+Sine_Vdc sinAmp_ac*sin(SineWaveArr))*Ld_measure Estimated Parameters Inputs from Initialization Script Data Store Intermediate Values  Explore more: 1. Edit motor &amp; inverter parameters 2. Generate c code using the Embedded Coder app 3. Integrate generated code with driver code   Parameter Estimation Algorithm  Copyright 2021 The MathWorks, Inc.

BLOCK:
 Calculate Position and Speed; Demux ; SFunction ; Terminator ;ADC_Calibration;Abs;ActSpeed;Action Port;Add;AllSig;Alpha;B;Bemf;Beta;BiasedSineWaveLdMeas;ChangeDet;ChangeDetect;Clarke Transform;ClarkePark;ClarkePark ;Compare To Constant;Constant;Control;Control Algorithm;CurrentScaling;D;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Demux;Derating Function;Discrete PI Controller with anti-windup & reset;Discrete-Time Integrator;Divide;En;Enable;Equal;ErrorCase;FeedBack;Freq;Frequency;From;Gain;Generating Raw Space Vectors;Goto;IA/IB;IIR Filter;I_rated;Ia;IaIbVdc;IaIb_adc_counts;Ia_Ib_ADC_count or VdId or VqIq or VaVb;Ia_cal_val;Iab;Ib;Ib_cal_val;Id;Id Desired;In;Index Vector;Inverse Park Transform;Inverting/Non Inverting;Iq;Iq desired;Iq_ref;J;Ki_iOut;Kp_iOut;Ld;Lq;MATLAB Function;MaxSpeed;Mechanical to Electrical Position;Multiport Switch;Mux;MuxAllSignals;NOT;Offset;Omega*Ts;Omega_x_Ts;OpenLoop;OpenLoop_CloseLoop;Out;PWM;PWM A/B/C;PWM scaling;PWM_Counter_Period;PWM_duty;Parameter Estimation Algorithm;ParameterEstimationTests;Park Transform;Pole_Voltage to Phase_Voltage;Pos/Speed;Position;Position_Speed_Sensing;Product;Q;QEP_Count;QEP_Index;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;R_board;RefSignal;RefSignal ;RefVd;RefVdVq;RefVq;Ref_pos;Ref_posOL;Reference;Reference signal conditioning;Relatioal Operator;Reset;Reset_Logic;Rs;RsMeasTestTime;Rs_Measurement;Running;SaveToMemory;Selector;SendSignalOverSerial;Sig;SignalPU;SignalsPU;Sine;Sine-Cosine Lookup;SineWaveLqMeas;Space Vector Generator;Speed;Speed Measurement;SubSystem;Sum;Switch;Switch Case;Ta;Ta/Tb/Tc;Tb;Tc;Terminator;TestNum;Theta_e;Torque_control_with_speed_limit;Trigger;Triggered Subsystem;Ts;Unit Delay;V_rated;Va;VaVb_Uint;Vabc;Vabc_Vdc;Vao;Vb;Vbo;Vco;Vd;VdVq;Vd_Meas;Vd_ref;Vd_ref_Rs;Vdc;Voltage Scaling;Vq;Vq_Meas;Vq_ref;cos;count_to_PU;counter;curTime;currentPU_RWV;enable;enable_inverter;enable_tests;estParIdx;estParIdxOut;estParaIdx;estimatedParameter;estimatedParameterOut;freqMax;freqMin;freqStep;injFreqOut;inverter_V_max;pole_pairs;position;refSignalOut;sigma;sin;sinBiased;sinWave;speed;speedFB;speed_rated;testEnableFromHost;testEnableFromTrgt;testEnableOut;testNumOut

BLOCKTYPE:
Abs;ActionPort;Clarke Transform;Compare To Constant;Constant;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;Demux;Derating Function;DiscreteIntegrator;EnablePort;From;Gain;Goto;IIR Filter;Inport;InportShadow;Inverse Park Transform;Logic;Mechanical to Electrical Position;MultiPortSwitch;Mux;Outport;PID 1dof;PWM Modulation;Park Transform;Product;Quadrature Decoder;RelationalOperator;S-Function;Selector;Sine-Cosine Lookup;Speed Measurement;Sum;Switch;SwitchCase;Terminator;TriggerPort;UnitDelay


MODELNAME: Calibration
PATH: examples/mcb/projects/src/QEPWorkflowDemo/components/Calibration.slx
BLOCKTYPE_FREQUENCY: 2;2;6;1;2;2;1;3;1;2;1;6;1;1;1;1;1;1
CHECKSUM: 0D6F20626AB0E8F71BEFA6710DBF4A75
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
Action Port;Add;Compare To Constant;Constant;Delay;Enable;If;If Action Subsystem;Inverse Park Transform;Merge;Multiply;Mux;Offset;OffsetMode;Offset_PU;Out;Position Generator;Reference;Saturate to 60 RPM;Sine-Cosine Lookup;Space Vector Generator;SubSystem;Subsystem;Switch;ThetaIn;Theta_In;Vabc_PU;Vd_Ref

BLOCKTYPE:
ActionPort;Compare To Constant;Constant;Delay;EnablePort;Gain;If;Inport;Inverse Park Transform;Merge;Mux;Outport;PWM Modulation;Position Generator;Saturate;Sine-Cosine Lookup;Sum;Switch


MODELNAME: ClosedLoop
PATH: examples/mcb/projects/src/QEPWorkflowDemo/components/ClosedLoop.slx
BLOCKTYPE_FREQUENCY: 1;14;1;1;2;4;1;4;1;16;1;3;5;10;3;1;1;1;1;2;2;1;1;7;1;1
CHECKSUM: C7B441B8265951C07AA8BCCCD074B9BB
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
Clarke Transform;Current_Controllers;DQ Limiter;Data Type Duplicate;Debug;Demux;Discrete PI Controller with anti-windup & reset;FW_Controller;From;Goto;IIR Filter;I_fb;I_ref;Iab_meas_PU;Id;Id_fwc;Idq_ref_PU;Inverse Park Transform;Iq;Iq limiter;Ki;Kp;Logical Operator;Mux;PI_Controller_Id;PI_Controller_Iq;PMSM Feed Forward Control;PMSM Torque Estimator;Park Transform;Pos_PU;Product;Reference;Saturation;Sine-Cosine Lookup;Space Vector Generator;Speed_fb;Sqrt;SubSystem;Sum;Terminator;Unit Delay;V_ref;Vabc_PU;Vd_ref;Vmax_fb;Vmax_ref;Vq_ref;Wm_fb;d_ref;d_sat;get_pu;one;q_ref;q_sat

BLOCKTYPE:
Clarke Transform;Constant;DQ Limiter;DataTypeDuplicate;Demux;From;Gain;Goto;IIR Filter;Inport;Inverse Park Transform;Logic;Mux;Outport;PID 1dof;PMSM FeedForward Control;PMSM Torque Estimator;PWM Modulation;Park Transform;Product;Saturate;Sine-Cosine Lookup;Sqrt;Sum;Terminator;UnitDelay


MODELNAME: OpenLoopControl
PATH: examples/mcb/projects/src/QEPWorkflowDemo/components/OpenLoopControl.slx
BLOCKTYPE_FREQUENCY: 1;1;2;1;5;1;7;1;1;3;1;2;1;1;1
CHECKSUM: AB390A19D52BC7CDBAD48175A79168DF
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
BLOCK:
3-Phase Sine Voltage Generator;Abs;Amplitude;Correction_Factor_sinePWM;Divide;Enable;Lower Saturaation;Lower Saturation;Mux;NOT;One;Position Generator;Product;Ramp;Ramp Generator;Ramp_Time;Ramp_Time (sec);Rate Limiter;Reference;Relational Operator;Sample_Time;Saturate output to limits;Saturation;SpeedPU2freq;Speed_Ref;SubSystem;Switch;V-by-f;Vabc_PU;Vamplitude;position_increment

BLOCKTYPE:
3-Phase Sine Voltage Generator;Abs;Constant;DiscreteIntegrator;Gain;IIR Filter;Inport;Logic;Mux;Outport;Position Generator;Product;RelationalOperator;Saturate;Switch


MODELNAME: mcb_qep_workflow
PATH: examples/mcb/projects/src/QEPWorkflowDemo/model/mcb_qep_workflow.slx
CHECKSUM: EE578A3D965B727C3898A07DD33323D5
PRODUCT_BASECODE: MT
EXTERNALFILE_REFERENCE: Calibration.slx___Model_Block___ClosedLoop___Model_Block___OpenLoopControl___Model_Block___
ANNOTATION:
for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) Heartbeat LED 1HZ  Note: Bit 0 : Enable Bit 11 to 8 : Operating Mode Bit 7 to 4 : Debug signal selection Scaling Delays  Rotor Lock  Motor  Copyright 2020-2023 The MathWorks, Inc.  Measured Torque [Nm]  HW Prerequisites 1. TI F28379D LaunchPad 2. BOOSTXL-DRV8305 Booster pack or BOOSTXL-3PhGaNInv 3.PMSM motor with QEP sensor Simulation Dashboard Workflow for FOC of PMSM with QEP sensor   Load Torque [Nm]  Reference Torque [Nm]  Steps: 1. Edit motor &amp; inverter parameters and run the script to update the Simulink Data Dictionary file. 2. Simulate the model to see motor operation in different modes 3. Click Build, Deploy &amp; Start in Hardware tab 4. Control motor via host model 5. Learn more about this example  Measured Speed [RPM]  Reference Speed [RPM]  Note: Reference Speed [RPM] input is active in both Open Loop Speed Control and Closed Loop Speed Control modes. Reference Torque [Nm] input is active only in Closed Loop Torque Control mode.

BLOCK:
 Calculate Position and Speed; Demux ; SFunction ; Terminator ;ADC Driver;ADCINT;ADC_B_IN;ADC_C_IN;ADC_INT;ADC_Interrupt_Task;AND;Action Port;Add;Add Offset;Average-Value Inverter;Bias;Bitwise Operator;Boost Voltage;Bus Selector;Byte Pack;Calculate Phase Currents;Calib;CalibMode;Calibration;Calibration in Progress;CalibrationInProgress;Chart;Closed Loop Control;ClosedLoop;Code Generation;Code generation;Codegen;Codegeneration;Compare To Constant;Constant;Control_System;Counter Limited;Current sense opAmp;DRV830x Enable;Data;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug;Debug Signal;DebugData;DebugSelection;Debug_signal;Debug_signals;Delay;Demux;Derating Function;Digital Output;Discrete PI Controller with anti-windup & reset;Display;Divide;Driver Inputs;Dummy;DutyCycleIn;DutyCycles;Duty_Cycles;Duty_abc;Edit;Embedded Processor;En;EnClosedLoop;EnClosedLoopOut;EnIn;EnSpeedControl;Enable;Enable_PWM;End;Feedbacks_sim;Filter;From;Gain;Get ADC Count;Get ADC Voltage;Get Currents;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HW Interrupt;HWI_ADCB1_INT;HWI_SCIA_RX_INT;HW_INT;Heartbeat LED;IIR Filter;Ia & Position;Ia_ADC;Iab;Iab_Offset;Iab_meas_PU;Ib_ADC;Id_control;IdqRef;IdqRef_PU;Idq_debug;Idq_ref_PU;If;If Torque Control;In;Index Vector;Index found;IndexFinder;IndexFound;IndexOffset in PU;Info;Input;Input Scaling;InvEn;Inverter;Inverter and Motor;InverterEnable;Inverting / Non-inverting Current measurement amplifieer;Iq_control;Iteration;Ki;Kp;Load_Profile (Torque);Load_Trq;Loaded Rotor;Locked Rotor;Logical Operator;MTPA Control Reference;Mechanical to Electrical Position;Merge;Mod;Mode;Mode Control;ModeOut;Motor Enable;MotorControlRef;MotorControl_Ref;MotorControl_Ref_PU;MotroControlRef;Multiport Switch;Mux;NOT;N_fb;N_ref;Offet during calib;Offset;Offset during Sim;Offset voltage;OffsetDebug;OffsetMode;One_by_Two;Open Loop;OpenLoop;OperatingMode;Out;Output;Output Scaling;PI_Controller_Speed;PU;PU_Conversion;PWM Duty Cycles;PWM_Duty_Cycles;Parse;PhaseCurr;PhaseVolt;Pos_PU;Product;Q17 per unit conversion;QEP driver;QEP_Index_Latch;QEP_Position_Count;Quadrature Decoder;RED_LED;RT;Radio Button;Rate Transition;Reference;SCI;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks;Sensor_Measurements;Serial Communication;Shift Arithmetic;Sim;Sim_fb;Simulation;Simulation_Terminator;Slider Switch;Speed Control;Speed Limit;Speed Measurement;Speed Reference;SpeedControlModeEnable;SpeedRefLogging;Speed_Meas_PU;Speed_Ref;Speed_Ref_In;Speed_Ref_Open;Speed_Ref_PU;Speed_Ref_Selector;Speed_fb;Speed_max [PU];Start;SubSystem;Subsystem;Sum;Surface Mount PMSM;Switch;Switch to closed loop ;SystemInputs;T_Ref_out;T_load[Nm];T_ref;Terminator;Theta;Theta_In;Theta_Offset;Theta_e;Torque Reference;Torque and Power;Torque control mode;TorqueControlModeEnable;Vabc;Vabc_PU;Vabc_ref;Variant Sink;Variant Source;While Iterator;While Iterator Subsystem;Width;Wrap;Zero_Cancellation;codegen;ePWM;eQEP;if Speed control;if Torque control;in;indexFound;openloop;out;rad;sim;speed;speed_control;stop;unParse;zero speed;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;ActionPort;ArithShift;Average Value Inverter;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Compare To Constant;Constant;Counter Limited;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Derating Function;Display;DisplayBlock;EditField;EnablePort;F2837x GPIO Digital Output;From;Function-Call Generator;Gain;Goto;Ground;HardwareInterrupt;IIR Filter;If;Inport;InportShadow;Logic;MTPA Control Reference;Math;Mechanical to Electrical Position;Merge;ModelReference;MultiPortSwitch;Mux;Outport;PID 1dof;Product;Quadrature Decoder;RadioButtonGroup;RateTransition;S-Function;Saturate;Selector;SliderSwitchBlock;Speed Measurement;Step;Sum;Surface Mount PMSM;Switch;Terminator;TriggerPort;VariantSink;VariantSource;WhileIterator;Width;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
2;3;5;1;2;6;1;1;2;1;1;11;45;1;28;1;8;11;1;1;2;3;9;2;9;2;16;9;4;2;3;1;113;5;6;1;2;1;3;3;3;20;106;1;2;1;1;17;1;2;2;2;1;1;9;2;12;11;2;2;2;1;1;3

PRODUCT:
C2000 Microcontroller Blockset;C2000 Microcontroller Blockset Documentation;Embedded Coder;MATLAB;Motor Control Blockset;Simulink;Stateflow


MODELNAME: mcb_qep_workflow_host
PATH: examples/mcb/projects/src/QEPWorkflowDemo/model/mcb_qep_workflow_host.slx
BLOCKTYPE_FREQUENCY: 1;3;2;3;11;11;6;2;4;3;2;6;2;2;1;2;1;25;2;1;3;29;2;2;2;1;1;1;1;1;4;1;3;2;1;2;1
CHECKSUM: 3F9403CCF982A4415EA722DF918A370F
PRODUCT: Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX Rx All signals are in Per-Unit Control Dashboard  Note: Reference Speed [RPM] input is active in both Open Loop Speed Control and Closed Loop Speed Control modes. Reference Torque [Nm] input is active only in Closed Loop Torque Control mode. Control_ref scope signal plots Reference speed during speed control modes and Reference torque during torque control mode.  PMSM FOC Speed Control Host    Motor  Prerequisites: 1. Deploy the target model to the hardware mcb_qep_workflow   Steps: 1. Select the port in Host Serial Setup, Host Serial Receive and Host Serial Transmit. 2. Simulate this model 3. Use Start / Stop Motor switch to control the motor. 3. Use open loop mode to validate hardware setup. 4. Use Calibration mode to calibrate current offset and position offset. 5. Update these values in parameter file and run parameter file. 6. Proceed to Closed Loop Speed Control mode or torque control mode (works best with loaded motor shaft)   Reference Speed [RPM]  Reference Torque [Nm]  Calibration Output Closed Loop Torque Control Speed Control  Copyright 2020-2021 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;Abs;Action Port;Bitwise Operator;Change_detect;Check Direction;Compare To Constant;Constant;Current Sensor A Offset [counts];Current Sensor B Offset [counts];Current sense offset A;Current sense offset B;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug_signals;Demux;Direction;Display;Display Offset;Display_Value;Edit;Enable;Enable_PWM;Enabled Subsystem;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;IIR Filter;If;If Action Subsystem;If Calibration Mode;If Index Calibration In Progress;If Index calibration is complete;If Valid current offset is found;In;InProgress;Input;LogCurrentOffset;Logical Operator;Merge;Mode;Motor Enable;Motor not rotating;Motor rotating in correct direction;Motor rotating in wrong direction;Mux;OffsetA;OffsetB;OffsetCalibration;OffsetIn;Out;Output;Parse;Position;Position Offset;Position Offset [PU Position];Radio Button;Rate Transition;Reference;Reference Speed (RPM);Reference Torque (Nm);Relational Operator;Scope (Per-Unit);SelectedSignals;Serial Communication;Shift Arithmetic;Signal;Signal ;Slider Switch;Speed Measurement;SubSystem;Subsystem;Sum;Switch;To Workspace;Unit Delay;check motor is running

BLOCKTYPE:
Abs;ActionPort;ArithShift;Bitwise Operator;Compare To Constant;Constant;DataTypeConversion;Demux;Display;DisplayBlock;EditField;EnablePort;From;Gain;Goto;IIR Filter;If;Inport;Logic;Merge;Mux;Outport;RadioButtonGroup;RateTransition;RelationalOperator;S-Function;Scope;SliderSwitchBlock;Speed Measurement;Sum;Switch;Terminator;ToWorkspace;UnitDelay;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: PMSMQepIndustrialDriveF28379d
PATH: examples/mcb/projects/src/QepIndustrialDrive/model/PMSMQepIndustrialDriveF28379d.slx
BLOCKTYPE_FREQUENCY: 3;1;4;1;1;1;1;1;16;6;3;3;2;2;1;1;7;1;6;36;1;1;1;1;9;40;5;10;2;1;3;6;5;4;1;2;1;3
CHECKSUM: 05F124E9B1554851276AD6ECED18607D
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Delays Scaling System Outputs for inverter connected with LaunchXL-28379D   Application Application Abstraction Driver Abstraction HW Drivers  Copyright 2023 The MathWorks, Inc.  Industrial Drive for a PMSM with Quadrature Encoder  Explore more: 1. Edit motor &amp; inverter parameters and run the script. 2. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
ADC_B_IN;ADC_C_IN;Add;Add Offset;Application;Application Abstraction;Average-Value Inverter;Bus Selector;C28x Hardware Interrupt;Calculate Phase Currents;Code generation;Codegen;Codegeneration;Compare To Constant;Config;Constant;Count;DRV830x Enable;Data;Data Type Conversion;Delay;Demux;Digital Output;Divide;DutyCycles;Duty_abc;Enable;From;Gain;Get ADC Count;Get Current Sense Voltage;Get_PU;Get_PU ;Goto;Ground;HW_INT;Hardware Interrupt;Heartbeat LED;IabADC;Iab_ADC;Iab_Offsets;Iabc;Iabc_A;In;Index Vector;Info;Input HW Drivers;Input Scaling;Interior PMSM;InvEn;Inverter;Inverter and Motor;InverterEn;Iteration;Microcontroller;Mod;Mux;NOT;Offset Calib;Offset voltage;One_by_Two;Output PWM Drivers;Output Scaling;PU;PWM;PWM In;PWMDutyCycles;PhaseCurr;Product;RED_LED;RT;Rate Transition;Reference;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor_Measurements;Serial In;Serial Out;Sim;SimFb;Sim_fb;Simulation;Step;SubSystem;Subsystem;Sum;Switch;Switch to closed loop ;Terminator;Unit Delay;Up Counter;Vabc;VabcADC;Vabc_ADC;Vabc_V;Vabc_ref;Variant Subsystem;Vdc;Vdc Measurement;VdcADC;Vdc_ADC;Vdc_V;While Iterator;While Iterator Subsystem;ePWM;eQEP;rad;stop;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Average Value Inverter;BusSelector;C28x Interrupt Block;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Compare To Constant;Constant;DataTypeConversion;Delay;Demux;EnablePort;F2837x GPIO Digital Output;From;Function-Call Generator;Gain;Goto;Ground;Inport;Interior PMSM;Logic;Math;MultiPortSwitch;Mux;Outport;Product;RateTransition;Saturate;Selector;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;WhileIterator;ePWM Type 1-4

EXTERNALFILE_REFERENCE:
ApplAbstraction_IndDrive___SubsystemReference_Block___Application_IndDrive___SubsystemReference_Block___SerialIn_IndDrive___SubsystemReference_Block___SerialOut_IndDrive___SubsystemReference_Block___


MODELNAME: PMSMQepIndustrialDriveHostF28379d
PATH: examples/mcb/projects/src/QepIndustrialDrive/model/PMSMQepIndustrialDriveHostF28379d.slx
BLOCKTYPE_FREQUENCY: 16;1;2;1;24;1;6;16;15;5;1;3;3;2;23;1;1;2;23;3;1;1;2;1;1;1;4;1;1;1;1
CHECKSUM: 60ED2CE28DB095F481C5C5E66967541D
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Control Gains Motor Parameters Rx TX Motor Setup  Industrial Drive Host Copyright 2023 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Enter the motor data in the Motor Setup panel 2. Use Motor switch to control motor. 3. Input speed request using Reference Speed edit box. 4. Observe the debug signals in scope.    

BLOCK:
 Maximum frequency (Hz);Action Port;Advanced Configuration;B;Back EMF estimation duration (s);Bitwise Operator;Change_detect;Constant;Count;Current sense gain (ampere Per Count);Data;Data Type Conversion;Debug Select;Debug Signal;Debug Signals;DebugSelect;Enable;Enable input for PI gains for Back EMF estimation;Enable_PWM;Enabled Subsystem;Encoder Counter per rev;Encoder counts per rotation;Error Code;ErrorCode;Frequency step for parameter estimation (Hz);From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;In;Index Pulse;Index Vector;Inverter maximum measureable current;Inverter resistance (RBoard);Iq reference as a ratio of rated motor current for Ke est;J;Ke;Ki for Back EMF estimation;Ki_Id;Ki_Iq;Ki_Speed;Kp for Back EMF estimation;Kp_Id;Kp_Iq;Kp_Speed;Ld;Logical Operator;Lq;Minimum frequency (Hz);Mode;Motor;Motor Parameters;Motor pole pairs;Motor rated current;Motor rated current [A];Motor rated speed;Motor rated speed [RPM];Mux;Number of frequencies for estimation;Number of pole pairs;OpMode;Out;Parse;PosOffset;Position Offset;Protocol Decoder;RPM to rad/s;Reference;Relational Operator;Rs;SCI_Rx_Data;Scope;Serial Communication;Shift Arithmetic;Speed Reference (RPM);Speed Reference [RPM];Step for frequency sweep (Hz);SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;Terminator;Test Enable;Unit Delay;Voltage sense gain (volt Per Count);count;default

BLOCKTYPE:
ActionPort;ArithShift;Bitwise Operator;ComboBox;Constant;Counter ;DataTypeConversion;Display;DisplayBlock;EditField;EnablePort;From;Gain;Goto;Inport;Logic;MultiPortSwitch;Mux;Outport;RelationalOperator;Scope;SliderSwitchBlock;Sum;Switch;SwitchCase;Terminator;UnitDelay;matlabshared.embedded_utilities.blocks.ProtocolDecoderBlock;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: PMSMSensorlessIndustrialDriveF28379d
PATH: examples/mcb/projects/src/SensorlessIndustrialDrive/model/PMSMSensorlessIndustrialDriveF28379d.slx
BLOCKTYPE_FREQUENCY: 6;3;1;2;4;1;1;1;1;1;1;1;18;1;6;3;3;2;2;1;1;7;1;5;1;1;43;1;1;1;2;1;11;47;5;10;2;1;4;6;5;4;1;2;1;1;3
CHECKSUM: 482623861BEABD0F782A722EB5DA1B54
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Delays Scaling System Outputs for inverter connected with LaunchXL-28379D   Fast Serial Data Monitoring (32-bit) Application Application Abstraction Driver Abstraction HW Drivers  Copyright 2023 The MathWorks, Inc.  Industrial Drive for a PMSM  Explore more: 1. Edit motor &amp; inverter parameters and run the script. 2. Build, Deploy &amp; Start 5. Control motor via host model 6. Learn more about this example.

BLOCK:
ADC_B_IN;ADC_C_IN;Action Port;Add;Add Offset;Application;Application Abstraction;Average-Value Inverter;Bias;Bus Selector;Byte Pack;C28x Hardware Interrupt;Calculate Phase Currents;Code generation;Codegen;Codegeneration;Compare To Constant;Config;Constant;Count;Counter Limited;DRV830x Enable;Data;Data Type Conversion;Data_Log;Data_Logging;Data_out;Data_width;Delay;Demux;Digital Output;Divide;Dummy;DutyCycles;Duty_abc;Enable;End;From;Gain;Get ADC Count;Get Current Sense Voltage;Get_PU;Get_PU ;Goto;Ground;HW_INT;Hardware Interrupt;Heartbeat LED;IIR Filter;IabADC;Iab_ADC;Iab_Offsets;Iabc;Iabc_A;If;In;Index Vector;Info;Input HW Drivers;Input Scaling;Interior PMSM;InvEn;Inverter;Inverter and Motor;InverterEn;Iteration;Merge;Microcontroller;Mod;Mux;NOT;Offset Calib;Offset voltage;One_by_Two;Output PWM Drivers;Output Scaling;PU;PWM;PWM In;PWMDutyCycles;PhaseCurr;Product;RED_LED;RT;Rate Transition;Reference;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor_Measurements;Serial In;Serial Out;Sim;SimFb;Sim_fb;Simulation;Start;Step;SubSystem;Subsystem;Sum;Switch;Switch to closed loop ;Terminator;Unit Delay;Up Counter;Va Measurement;Vabc;VabcADC;Vabc_ADC;Vabc_V;Vabc_ref;Variant Subsystem;Vb Measurement;Vc Measurement;Vdc;Vdc Measurement;VdcADC;Vdc_ADC;Vdc_V;Vector Concatenate;While Iterator;While Iterator Subsystem;Width;ePWM;eQEP;rad;stop;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;ActionPort;Average Value Inverter;Bias;BusSelector;Byte pack;C28x Interrupt Block;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Compare To Constant;Concatenate;Constant;Counter Limited;DataTypeConversion;Delay;Demux;EnablePort;F2837x GPIO Digital Output;From;Function-Call Generator;Gain;Goto;Ground;IIR Filter;If;Inport;Interior PMSM;Logic;Math;Merge;MultiPortSwitch;Mux;Outport;Product;RateTransition;Saturate;Selector;Step;Sum;Switch;Terminator;TriggerPort;UnitDelay;WhileIterator;Width;ePWM Type 1-4

EXTERNALFILE_REFERENCE:
ApplAbstraction_IndDrive___SubsystemReference_Block___Application_IndDrive___SubsystemReference_Block___SerialIn_IndDrive___SubsystemReference_Block___SerialOut_IndDrive___SubsystemReference_Block___


MODELNAME: PMSMSensorlessIndustrialDriveHostF28379d
BLOCKTYPE_FREQUENCY: 16;1;2;1;23;1;8;16;14;4;1;3;2;2;23;1;1;2;23;3;1;1;2;1;1;1;4;1;1;1;1
CHECKSUM: 0062A66F98DCEB7E744067622AF57294
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
PATH:
examples/mcb/projects/src/SensorlessIndustrialDrive/model/PMSMSensorlessIndustrialDriveHostF28379d.slx

ANNOTATION:
Control Gains Motor Parameters Rx TX Motor Setup  Industrial Drive Host Copyright 2023 The MathWorks, Inc.  Steps: 1. Set the serial port to target.comport in the init script of the target model. 2. Enter the motor data in the Motor Setup panel 2. Use Motor switch to control motor. 3. Input speed request using Reference Speed edit box. 4. Observe the debug signals in scope.    

BLOCK:
 Maximum frequency (Hz);Action Port;Advanced Configuration;B;Back EMF estimation duration (s);Bitwise Operator;Change_detect;Constant;Count;CurrMeasDelay;Current sense gain (ampere Per Count);Data;Data Type Conversion;Debug Select;Debug Signal;Debug Signals;DebugSelect;Enable;Enable input for PI gains for Back EMF estimation;Enable_PWM;Enabled Subsystem;Error Code;ErrorCode;Frequency step for parameter estimation (Hz);From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;In;Index Vector;Inverter maximum measureable current;Inverter resistance (RBoard);Iq reference as a ratio of rated motor current for Ke est;J;Ke;Ki for Back EMF estimation;Ki_Id;Ki_Iq;Ki_Speed;Kp for Back EMF estimation;Kp_Id;Kp_Iq;Kp_Speed;Ld;Logical Operator;Lq;Minimum frequency (Hz);Mode;Motor;Motor Parameters;Motor pole pairs;Motor rated current;Motor rated current [A];Motor rated speed;Motor rated speed [RPM];Mux;Number of frequencies for estimation;Number of pole pairs;OpMode;Out;Parse;Protocol Decoder;Reference;Relational Operator;Rs;SCI_Rx_Data;Scope;Serial Communication;Shift Arithmetic;Speed Reference (RPM);Speed Reference [RPM];Step for frequency sweep (Hz);SubSystem;Subsystem;Sum;Switch;Switch Case;Switch Case Action Subsystem;SystemError;Terminator;Test Enable;Unit Delay;Voltage sense gain (volt Per Count);count;default

BLOCKTYPE:
ActionPort;ArithShift;Bitwise Operator;ComboBox;Constant;Counter ;DataTypeConversion;Display;DisplayBlock;EditField;EnablePort;From;Gain;Goto;Inport;Logic;MultiPortSwitch;Mux;Outport;RelationalOperator;Scope;SliderSwitchBlock;Sum;Switch;SwitchCase;Terminator;UnitDelay;matlabshared.embedded_utilities.blocks.ProtocolDecoderBlock;system.SerialConfiguration;system.SerialReceive;system.SerialSend


MODELNAME: mcb_host_f28379d
PATH: examples/mcb/projects/src/focHil/model/mcb_host_f28379d.slx
BLOCKTYPE_FREQUENCY: 3;4;10;6;2;2;1;1;1;1;1;15;1;1;2;15;2;1;2;2;1;1;2;1;1;2;1;2;1
CHECKSUM: 3287C29E8A5F3CD09EBE19DB53EB7729
PRODUCT: Embedded Coder;MATLAB;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
TX Rx  PMSM FOC Host  Steps: 1. Select port in Host Serial Setup, Host Serial Receive and Host Serial Transmit 2. Simulate this model 3. Use Motor switch to control the motor. 4. Run motor in open loop and observe Ia &amp; Ib ADC counts in scope. Compute average counts for each phase and update offsets to variables inverter.CtSensAOffset and inverter.CtSensBOffset here 5. Use Reference Speed edit box to update speed reference to the motor.  Copyright 2021-2022 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;Bitwise Operator;Change_detect;Control;Convert_to_SI_Units;Data;Data Type Conversion;Data_Conditioning_Tx;Data_Type_Fixed_Point;Data_Type_Float;Debug1 (SI units);Debug2 (SI units);Debug_signals;Demux;Display;Display_Value;Enable;Enable_PWM;Enabled Subsystem;FWC Enable;From;Gain;Goto;Host Serial Receive;Host Serial Setup;Host Serial Transmit;Ia_Ib;Iab_ADC;Id_control;In;Input;Iq_control;Logical Operator;Motor;Motor Enable;Multiport Switch;Mux;Out;Output;Parse;Product;Radio Button;Rate Transition;Reference;Reference Speed;Reference Speed (RPM);Relational Operator;Scope;Scope (Per-Unit);Serial Communication;Shift Arithmetic;Speed_control;SubSystem;Sum;Unit Delay;debug_


MODELNAME: mcb_pmsm_foc_f28379d
PATH: examples/mcb/projects/src/focHil/model/mcb_pmsm_foc_f28379d.slx
CHECKSUM: 986BFBA576E81DFCFC84743E9A1146DD
PRODUCT: C2000 Microcontroller Blockset;Embedded Coder;MATLAB;Motor Control Blockset;Simulink
PRODUCT_BASECODE: MT
ANNOTATION:
Enable inverter for BoostXL-DRV8305 connected to LaunchXL-28379D System Outputs  Enable ADC offset calibration only when motor is not loaded and not rotating due to external factors Heartbeat LED 1HZ for inverter connected with LaunchXL-28379D System Outputs Fast Serial Data Monitoring (32-bit) Output Drivers Input Drivers  Global Variables Delays Scaling Permanent Magnet Synchronous Motor Field Oriented Control Copyright 2021-2023 The MathWorks, Inc.  HW Prerequisites 1. TI F8379D LaunchPad 2. BOOSTXL-DRV8305 Booster pack or BOOSTXL-3PhGaNInv 3. PMSM motor with QEP sensor 4. Speedgoat IO-334 FPGA module with supported Real-Time set up  Steps: 1. Edit motor and controller parameters. 2. Edit sample times for inverter and motor. 3. Simulate this model and observe results in Simulation Data Inspector 4. Use slrt_ex_pmsm model to generate HDL model and program FPGA with inverter and motor. 6. Use host model to control the embedded processor. Learn more about this example. 

BLOCK:
6PWM_Mode;ADC Calib Enable;ADC Gain setting;ADC_A_IN;ADC_B_IN;ADC_C_IN;ADC_Gain_Setting;AND;Abs;Action Port;Add;Add Offset;Bias;Bitwise Operator;Bus Selector;Byte Pack;Calculate ADC Offset ;Carrier;CarrierReset;Code Generation;Code generation;Codegeneration;Constant;Control;Counter;Counter Limited;DRV Enable;DRV830x Enable;Data;Data Store Memory;Data Store Read;Data Store Write;Data Type Conversion;Data Type Duplicate;Data_Conditioning_Rx;Data_Conditioning_Tx;Data_Log;Data_Logging;Data_Type_Fixed_Point;Data_Type_Float;Data_out;Data_width;Debug_signals;Default ADC Offset;Delay;Demux;Desired Speed;Digital Output;Display;Divide;Dummy;Duty Cycles;DutyCycles;Duty_Cycles;Embedded Processor;Enable;Enable_PWM;End;Event Listener;FOC;Feedbacks;Feedbacks_sim;For Iterator;For Iterator Subsystem;From;G;Gain;Get ADC Count;Get Current Sense Voltage;Get_PU;Get_PU ;Get_QEP_Counts;Goto;Ground;HDL Counter;HWI_SCIA_RX_INT;HW_INT;HW_Inputs;HW_Int (Code Generation);HW_Int (Simulation);Hardware Init;Heartbeat LED;IIR Filter;Ia_Ib;Iab_ADC;Iabc;Id_control;If;If Action Subsystem;In;Index Vector;IndexOffset in PU;Input Scaling;Inverter (Code Generation);Inverter (Simulation);Inverter Enable;Inverter Signals;Inverter and Motor;Iq_control;Iteration;Latch;Load;Load_Profile (Torque);Load_Trq;Logical Operator;Memory;Merge;Minus;Mod;ModWave;Modwave;Motor and Inverter;Multiply;Multiport Switch;Mux;NOT;Offset voltage;Out;Output Drivers;PU;PWM Generator;PWM Period;PWM_Peripherals;Parse;Period;PhaseCurr;Pos;Pos_Ia;Product;RED_LED;RT;Rate Transition;Reference;Relational Operator;Reversal;RunTimeMeasurement;SCI Receive;SCI Transmit;SCI_Data;SCI_Rx;SCI_Rx_INT;SCI_Tx;SCI_Tx_Codegen;SCI_Tx_Sim;SPI Master Transfer;Saturate at ADC Vref;Saturate at inverter Vref;Scale_to_PWM_Counter_PRD;Selector;Sensor Driver Blocks (codegen);Sensor Driver Blocks (sim);Sensor_Measurements;Serial Receive;Shift Arithmetic;Sim;Sim_Duty;Sim_fb;Simulation;Simulation_Terminator;Speed_Ref_Final (rpm);Speed_Ref_Init (rpm);Start;SubSystem;Subsystem;Sum;Switch;Switch to closed loop;Terminator;Theta;Unit Delay;Unit Delay Enabled Synchronous;Variant Subsystem;While Iterator;While Iterator Subsystem;Width;Wrap;ePWM;eQEP;in;out;rad;rpm2PU;speed_control;stop;unParse;~1.65V in ADC counts

BLOCKTYPE:
ADC Type 3-5;Abs;ActionPort;ArithShift;Bias;Bitwise Operator;BusSelector;Byte pack;C28x SCI Receive;C28x SCI Transmit;C28x eQEP;Constant;Counter Limited;DataStoreMemory;DataStoreRead;DataStoreWrite;DataTypeConversion;DataTypeDuplicate;Delay;Demux;Display;EnablePort;EventListener;F2837x GPIO Digital Output;ForIterator;From;Function-Call Generator;Gain;Goto;Ground;HDL Counter;HardwareInterrupt;IIR Filter;If;Inport;Logic;Math;Memory;Merge;ModelReference;MultiPortSwitch;Mux;Outport;Product;RateTransition;RelationalOperator;Saturate;Selector;Step;Sum;Switch;Terminator;TriggerPort;Unit Delay Enabled Synchronous;UnitDelay;WhileIterator;Width;codertarget.tic2000.blocks.SPIMasterTransfer;ePWM Type 1-4

BLOCKTYPE_FREQUENCY:
4;1;8;4;2;7;1;1;2;1;1;37;1;4;2;8;20;1;3;11;2;3;1;4;1;1;1;9;1;4;1;1;1;4;67;8;2;2;2;1;2;20;61;5;6;4;2;2;3;7;5;8;1;1;1;1;1;2;3

EXTERNALFILE_REFERENCE:
Encoder___SubsystemReference_Block___Field_Oriented_Control___SubsystemReference_Block___slrt_ex_pmsm___Model_Block___


MODELNAME: bbcmicrobit_accelLED_game
PATH: examples/microbit/main/bbcmicrobit_accelLED_game.slx
BLOCKTYPE_FREQUENCY: 2;1;1;1;3;1;3;2;5;3;1;2;2
CHECKSUM: 3F06D24D8CC5736D8176EA74E43EACED
PRODUCT: Embedded Coder;MATLAB;Simulink;Simulink Coder Support Package for BBC microbit Board;Stateflow
PRODUCT_BASECODE: RT
ANNOTATION:
Memory game on the Micro:bit using accelerometer and the LED matrix Copyright 2017 The MathWorks, Inc. BBC micro:bit LED Acceleromter Game

BLOCK:
 Demux ; SFunction ; Terminator ;5x5 LED Matrix;Accelerometer X-Y-Z ;Button A Pressed ;Compare To Constant;Enable;Gain;Game Logic;GameState;Happy face;LED/ Plot XY;Plot Point;Point Left;Reference;Saturation;Show Arrow;Show Success;SubSystem;Terminator;X;Y;accX;accY;buttonA;plotX;plotY

BLOCKTYPE:
BBC micro:bit 5x5 LED Matrix;BBC micro:bit Accelerometer X-Y-Z;BBC micro:bit Button A Pressed;BBC micro:bit plot LED pixel;Compare To Constant;Demux;EnablePort;Gain;Inport;Outport;S-Function;Saturate;Terminator


MODELNAME: bbcmicrobit_fireFly_Slave
PATH: examples/microbit/main/bbcmicrobit_fireFly_Slave.slx
ANNOTATION: Copyright 2017 The MathWorks, Inc. BBC micro:bit Firefly Slave Model
BLOCKTYPE_FREQUENCY: 2;1;1;1;1;2;1;1;1;3;3;4;1;3;3;1;1;4;1;1;1
CHECKSUM: 1D951BAB2E6F893CFE908625AFEB15E6
PRODUCT: Embedded Coder;MATLAB;Simulink;Simulink Coder Support Package for BBC microbit Board;Stateflow
PRODUCT_BASECODE: RT
BLOCK:
 Demux ; SFunction ; Terminator ;5x5 LED Matrix;Add_Me;Blink Once;Butt;Button A Pressed;Clear LEDs;Compare To Zero;Constant;Data Received;Data Store Memory;Data Store Read;Data Store Write;Demux;Display_ON;Empty matrix;Enable;Fade out;Firefly Logic;Get ID;LED/ Matrix Display (Brightness);Logical Operator;MyID;Radio Receive;Radio Transmit;RecID;Reference;Request ID;Request_ID;SubSystem;Switch;Terminator;Trigger

BLOCKTYPE:
BBC micro:bit 5x5 LED Matrix;BBC micro:bit Button A Pressed;BBC micro:bit Fade out brightness effect for LED matrix;BBC micro:bit LED Matrix Display (Brightness);Compare To Zero;Constant;DataStoreMemory;DataStoreRead;DataStoreWrite;Demux;EnablePort;Inport;Logic;Outport;Output a 5x5 Matrix;S-Function;Switch;Terminator;TriggerPort;microbit.RadioReceive;microbit.RadioTransmit


MODELNAME: bbcmicrobit_fireFly_queen
PATH: examples/microbit/main/bbcmicrobit_fireFly_queen.slx
ANNOTATION: Copyright 2017 The MathWorks, Inc. BBC micro:bit Firefly Queen Model
BLOCKTYPE_FREQUENCY: 3;1;2;1;2;1;1;1;1;1;1;1;2
CHECKSUM: AE315523CE0D2931868B34D17F61E593
PRODUCT: Embedded Coder;MATLAB;Simulink;Simulink Coder Support Package for BBC microbit Board
PRODUCT_BASECODE: RT
BLOCK:
Add;Constant;Data Store Memory;Data Store Read;Data Store Write;Floor;Mux;Product;Radio Receive ;Radio Transmit;Reference;Send ID;SubSystem;Terminator;Trigger;Uniform Random Number

BLOCKTYPE:
Constant;DataStoreMemory;DataStoreRead;DataStoreWrite;Mux;Product;Rounding;Sum;Terminator;TriggerPort;UniformRandomNumber;microbit.RadioReceive;microbit.RadioTransmit


MODELNAME: bbcmicrobit_piano
PATH: examples/microbit/main/bbcmicrobit_piano.slx
BLOCKTYPE: BBC micro:bit Note Generator;BBC micro:bit Play Note;Constant;Sum;Switch;mbed.DigitalRead
BLOCKTYPE_FREQUENCY: 7;1;1;1;7;7
CHECKSUM: A31DF3364C3092D280A7F894ADCA495F
PRODUCT: Embedded Coder;MATLAB;Simulink;Simulink Coder Support Package for BBC microbit Board
PRODUCT_BASECODE: RT
ANNOTATION:
 Make a simple paino on the BBC micro:bit  Connect a tiny speaker on the pin P2 Copyright 2017 The MathWorks, Inc. BBC micro:bit Piano Example

BLOCK:
A Note;Add;B Note;C Note;D Note;Digital Read;E Note;F Note;G Note;Play Note ;Reference;Switch;Zero Frequency or Off


MODELNAME: bbcmicrobit_play_tune
PATH: examples/microbit/main/bbcmicrobit_play_tune.slx
BLOCKTYPE_FREQUENCY: 8;1;1;1;9;1;1;1
CHECKSUM: 4812E0C23A789DA6F3821D6C32846825
PRODUCT: Embedded Coder;MATLAB;Simulink;Simulink Coder Support Package for BBC microbit Board;Stateflow
PRODUCT_BASECODE: RT
ANNOTATION:
Play tunes on the BBC micro:bit with the help of a small speaker Connect a small speaker to the pin P2 BBC micro:bit Play Tunes Example Copyright 2017 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;A;As;BeatDur;C;CH;D;E;F;G;Note;Note Generator ;Note Generator1 ;Note Generator2 ;Note Generator3 ;Note Generator4 ;Note Generator5 ;Note Generator6 ;Note Generator7 ;Note Selector;One Beat Duration;Play Note ;Reference;SubSystem

BLOCKTYPE:
BBC micro:bit Note Generator;BBC micro:bit Play Note;Constant;Demux;Inport;Outport;S-Function;Terminator


MODELNAME: bbcmicrobit_shake_dice
PATH: examples/microbit/main/bbcmicrobit_shake_dice.slx
BLOCKTYPE_FREQUENCY: 1;1;1;1;1;1;1;1;1;1
CHECKSUM: 76AEB22CE3085ED09A97AAAB74A4D786
PRODUCT: Embedded Coder;MATLAB;Simulink;Simulink Coder Support Package for BBC microbit Board;Stateflow
PRODUCT_BASECODE: RT
ANNOTATION:
 Dice Simulator Shake the microbit and display numbers between 1 and 6 Copyright 2016-17 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;5x5 LED Matrix;Accelerometer X-Y-Z;Chart;Dice;Empty matrix;Number-;Reference;Select Number;Shake detection;SubSystem;shake

BLOCKTYPE:
BBC micro:bit 5x5 LED Matrix;BBC micro:bit Accelerometer Shake detection;BBC micro:bit Accelerometer X-Y-Z;Demux;Inport;MultiPortSwitch;Outport;Output a 5x5 Matrix;S-Function;Terminator


MODELNAME: bbcmicrobit_two_button_game
PATH: examples/microbit/main/bbcmicrobit_two_button_game.slx
ANNOTATION: BBC micro:bit Fastest Clicker Example Copyright 2017 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 4;1;1;4;1;4;5;1;2;3;5;1;1;1;1
CHECKSUM: C1A21CA6ED7E05F39F5E934AB9C642C6
PRODUCT: Embedded Coder;MATLAB;Simulink;Simulink Coder Support Package for BBC microbit Board;Stateflow
PRODUCT_BASECODE: RT
BLOCK:
 Demux ; SFunction ; Terminator ;5x5 LED Matrix;Button A Pressed ;Button B Pressed ;Compare To Constant;Empty matrix;Enable;Game State Controller;Game_Status;Index;LED Text Scroll;Multiport Switch;Number-;Point Left;Point Right;Reference;Run Game;Show Countdown;Show Intro;Show Winner;SubSystem;Switch;Text Message ;Winner;butA;butB;index;winner

BLOCKTYPE:
BBC micro:bit 5x5 LED Matrix;BBC micro:bit Button A Pressed;BBC micro:bit Button B Pressed;Compare To Constant;Demux;EnablePort;Inport;LED Text Scroll;MultiPortSwitch;Outport;Output a 5x5 Matrix;S-Function;Switch;Terminator;Text Message


MODELNAME: bbcmicrobit_xcp_monitor_and_tune
PATH: examples/microbit/main/bbcmicrobit_xcp_monitor_and_tune.slx
BLOCKTYPE_FREQUENCY: 1;1;1;1;3;3;1
CHECKSUM: A531EED94578C11AD6C64D466085F6F4
PRODUCT: Embedded Coder;MATLAB;Simulink;Simulink Coder Support Package for BBC microbit Board
PRODUCT_BASECODE: RT
ANNOTATION:
 Hardware Display      Hardware Button  BBC micro:bit Hardware Monitor & Tune Copyright 2022 The MathWorks, Inc.  Simulink Display

BLOCK:
5x5 LED Matrix;Button B Hold;Button B Pressed;Button B Released;Hold;LED Matrix Input;Lamp;Pressed;Reference;Released

BLOCKTYPE:
BBC micro:bit 5x5 LED Matrix;BBC micro:bit Button B Hold;BBC micro:bit Button B Pressed;BBC micro:bit Button B Released;LampBlock;Outport;Output a 5x5 Matrix


MODELNAME: sldemo_hydcyl
PATH: examples/mocksl/main/sldemo_hydcyl.slx
ANNOTATION: Single Hydraulic Cylinder Simulation Copyright 1990-2012 The MathWorks, Inc.
BLOCKTYPE: BusCreator;Clock;Demux;Gain;Outport;Pump;Ramp;Scope;Valve/Cylinder/Piston/Spring Assembly
BLOCKTYPE_FREQUENCY: 1;1;1;1;1;1;1;1;1
CHECKSUM: F21572A593717BBD105748570E98CF4E
PRODUCT: MATLAB;Simulink;Simulink Test Documentation
DESCRIPTION:
Single Hydraulic Cylinder Simulation This demo uses Simulink(R) to model a hydraulic cylinder. You can apply these concepts to applications where you need to model hydraulic behavior. See two related demos that use the same basic components: * four cylinder model: sldemo_hydcyl4 * two cylinder model with load constraints: sldemo_hydrod 

BLOCK:
A;Bus Creator;Clock;Demux;Gain;More Info;PlotResults;Pump;Reference;SubSystem;Valve/Cylinder/Piston/Spring Assembly;control valve orifice area


MODELNAME: LanderVehicleSimulation
PATH: examples/mpc/main/LanderVehicleSimulation.slx
ANNOTATION: Copyright 2023 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 1;1;2;3;1;1;2;2;2;2;1
CHECKSUM: C1EE8EBC00C98611575B22A0A025ADEE
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;Bias;Counter Free-Running;Integrator;Lander MPC;Lander Vehicle;MVs;Path References;Reference;States;SubSystem;Unit Delay;dxdt;k;ref;u;x

BLOCKTYPE:
Bias;Counter Free-Running;Demux;Inport;Integrator;NonlinearMPCMultistage;Outport;S-Function;Scope;Terminator;UnitDelay


MODELNAME: LaneFollowingNMPC
PATH: examples/mpc/main/LaneFollowingNMPC.slx
ANNOTATION: Vehicle Model Vehicle Dynamics Copyright 2018 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 5;1;2;1;1;7;33;6;1;3;1;18;1;9;1;2;1;6;3;2
CHECKSUM: 4DB1764CC36DE1E5E0454F3E9C02BF07
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink;Vehicle Dynamics Blockset
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;1/Vx;Acceleration;Adaptive MPC;Constant;Current Curvature;Current MVs;Current curvature;Curvature Previewer;Curvature Sequence;Delay;Demux;Estimated States;Extended Kalman Filter;Gain;Inputs;Integrator;Lane Following Controller;Lateral Deviation;Lateral Velocity;Lateral deviation;Lateral velocity;Longitudinal Velocity;Longitudinal velocity;MATLAB Function;MVs;Memory;Mux;NLMPC;Noise;Nonlinear MPC Controller;Nonlinear State Estimator (Extended Kalman Filter);Outputs;Path Following Control System;Previous MVs;Product;Reference;Reference Values;Relative Yaw Angle;Relative yaw angle;Sample Time;Selector;Sensor Dynamics;Set Velocity;Set velocity;Steering;SubSystem;Subtract;Sum;Terminator;Tx;Vehicle Dynamics;Vx;Vy;Yaw Rate;Yaw rate;Yaw_rate ;Zero-Order Hold;current;e1dot;first;next_t;seq;sequence;t;xhat

BLOCKTYPE:
Constant;Delay;Demux;Extended Kalman Filter;Fcn;Gain;Inport;Integrator;Memory;Mux;NonlinearMPC;Outport;Path following control (PFC) system;Product;S-Function;Scope;Selector;Sum;Terminator;ZeroOrderHold


MODELNAME: ReservoirMPC
PATH: examples/mpc/main/ReservoirMPC.slx
ANNOTATION: Copyright 2019-2020 The MathWorks, Inc.
BLOCKTYPE: Constant;Demux;FromWorkspace;Gain;Inport;Integrator;MPC;Outport;Product;Scope;Sqrt;Sum
BLOCKTYPE_FREQUENCY: 2;1;1;1;3;1;1;1;1;3;1;2
CHECKSUM: E8C846F22ABC4A966E2B6CEC38FD7609
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Add;Demand Change;Demux;Discharge;Gain;Integrator;MPC Controller;Nominal Discharge;Product;Pumps;Q;Reference;Reservoir;Sqrt;SubSystem;Sum;V;Volume;Volume Set-Point;X


MODELNAME: ampc_cstr_estimation
PATH: examples/mpc/main/ampc_cstr_estimation.slx
ANNOTATION: Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 1;1;1;10;1;6;3;2;1;2;2;3;1;1;2;4;1;9;2;1;1
CHECKSUM: 85D8341DA0AABE1E2B910355BAB6A258
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink;System Identification Toolbox
PRODUCT_BASECODE: MP
BLOCK:
-DeltaE/R;Adaptive MPC Controller;Bus Creator;Bus Selector;CA;CAi;CSTR;Concentration;Constant;DeltaH/RhoCp;Demux;Disturbance;F/V;F/V ;F/V + UA/(RhoCpV);Integrator;Math Function;Measurement Noise;Model Type Converter;Mux;Product;Recursive Polynomial Model Estimator;Reference;Signal Specification;SubSystem;Sum;T;T Ref;Tc;Temperature;Ti;UA/(V*RhoCp);Unit Delay;k

BLOCKTYPE:
Adaptive MPC;BusCreator;BusSelector;Constant;Demux;Gain;Inport;Integrator;Math;Mux;Outport;Product;RandomNumber;Repeating Sequence Interpolated;Scope;SignalSpecification;Sin;Sum;UnitDelay;idEstimatorsPolyModel;idModelTypeConverter


MODELNAME: ampc_cstr_linearization
PATH: examples/mpc/main/ampc_cstr_linearization.slx
ANNOTATION: Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 1;1;6;3;6;8;2;1;2;3;11;3;1;1;1;3;2;1;7;1
CHECKSUM: 80A0C2E537A7C866224D2AF9695DE738
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;-DeltaE/R;A;Adaptive MPC Controller;B;Bus Creator;C;CA;CA Reference;CAi;CSTR;Concentration;Constant;D;DX;DeltaH/RhoCp;Demux;Disturbance;F/V;F/V ;F/V + UA/(RhoCpV);Integrator;Math Function;Measurement Noise;Memory;Mux;Pole;Product;Reference;Selector;SubSystem;Successive Linearizer;Sum;T;Tc;Temperature;Ti;U;UA/(V*RhoCp);X;Y;k;poles

BLOCKTYPE:
Adaptive MPC;BusCreator;Constant;Demux;Gain;Inport;Integrator;Math;Memory;Mux;Outport;Product;RandomNumber;Repeating Sequence Interpolated;S-Function;Scope;Selector;Sin;Sum;Terminator


MODELNAME: ampc_cstr_lpv
PATH: examples/mpc/main/ampc_cstr_lpv.slx
ANNOTATION: Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 1;1;2;5;1;10;1;3;2;1;1;4;2;3;1;1;2;1;1;7;1
CHECKSUM: 74F278C440F822108E7C1B443A43381F
PRODUCT: Control System Toolbox;MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
-DeltaE/R;Adaptive MPC Controller;Bus Creator;Bus Selector;CA;CA Reference;CAi;CSTR;Concentration;Constant;DeltaH/RhoCp;Demux;Disturbance;F/V;F/V ;F/V + UA/(RhoCpV);Gain;Ground;Integrator;LPV System;Math Function;Measurement Noise;Mux;Product;Reference;Selector;SubSystem;Sum;T;Tc;Temperature;Terminator;Ti;UA/(V*RhoCp);k

BLOCKTYPE:
Adaptive MPC;BusCreator;BusSelector;Constant;Demux;Gain;Ground;Inport;Integrator;LPV Block;Math;Mux;Outport;Product;RandomNumber;Repeating Sequence Interpolated;Scope;Selector;Sin;Sum;Terminator


MODELNAME: ampc_cstr_no_estimation
PATH: examples/mpc/main/ampc_cstr_no_estimation.slx
ANNOTATION: Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 4;1;6;3;2;1;1;1;2;3;1;1;2;1;7
CHECKSUM: 48A1334A579C2D73EF3B21201E1764C6
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
-DeltaE/R;CA;CAi;CSTR;Concentration;DeltaH/RhoCp;Demux;Disturbance;F/V;F/V ;F/V + UA/(RhoCpV);Integrator;MPC Controller;Math Function;Measurement Noise;Mux;Product;Reference;SubSystem;Sum;T;T Ref;Tc;Temperature;Ti;UA/(V*RhoCp);k

BLOCKTYPE:
Constant;Demux;Gain;Inport;Integrator;MPC;Math;Mux;Outport;Product;RandomNumber;Repeating Sequence Interpolated;Scope;Sin;Sum


MODELNAME: ampc_cstr_no_linearization
PATH: examples/mpc/main/ampc_cstr_no_linearization.slx
ANNOTATION: Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 5;1;6;3;2;1;1;3;2;3;1;1;2;1;7
CHECKSUM: B02CD96199CCC3AB1DDDA4418DA19396
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
-DeltaE/R;CA;CA Reference;CAi;CSTR;Concentration;Constant;DeltaH/RhoCp;Demux;Disturbance;F/V;F/V ;F/V + UA/(RhoCpV);Integrator;MPC Controller;Math Function;Mux;Noise;Product;Reference;SubSystem;Sum;T;Tc;Temperature;Ti;UA/(V*RhoCp);k

BLOCKTYPE:
Constant;Demux;Gain;Inport;Integrator;MPC;Math;Mux;Outport;Product;RandomNumber;Repeating Sequence Interpolated;Scope;Sin;Sum


MODELNAME: empc_aircraft
PATH: examples/mpc/main/empc_aircraft.slx
ANNOTATION: u(t) y(t) r(t) Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE: Demux;Explicit MPC;Mux;Scope;StateSpace;Step;ToWorkspace
BLOCKTYPE_FREQUENCY: 1;1;3;4;1;2;2
CHECKSUM: 5C900A4C56B67ADE49096FB75CB5D259
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Aircraft longitudinal linear model;Attack Angle Response;Attack Angle Setpoint;Demux;Explicit MPC Controller;MV;Mux;Pitch Angle Response;Pitch Angle Setpoint;Reference;Status;To Workspace


MODELNAME: empc_doubleint
PATH: examples/mpc/main/empc_doubleint.slx
ANNOTATION: u(t) y(t) r(t) Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE: Constant;Explicit MPC;Integrator;Mux;Scope;ToWorkspace
BLOCKTYPE_FREQUENCY: 1;1;2;1;4;3
CHECKSUM: B03FAC3871C83742E9716B95A9013C2A
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Constant;Explicit MPC Controller;Input;Integrator ;Mux;Outputs/References;Reference;Region;Status;To Workspace


MODELNAME: empc_motor
PATH: examples/mpc/main/empc_motor.slx
ANNOTATION: u(t) y(t) r(t) Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE: Constant;Demux;Explicit MPC;LTI Block;Mux;Scope;Sin
BLOCKTYPE_FREQUENCY: 5;1;1;1;4;4;1
CHECKSUM: D55C7D1A455716301417CD1AC495C17F
PRODUCT: Control System Toolbox;MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Angle (radians);Angle reference;Demux;Explicit MPC Controller;Mux;Reference;Region;Servomechanism Model;Tmax;Tmin;Torque (Nm);Torque reference;Vmax;Vmin;Voltage (V)


MODELNAME: house_heating_system
PATH: examples/mpc/main/house_heating_system.slx
DESCRIPTION: House Heating System
BLOCKTYPE_FREQUENCY: 6;3;1;1;6;2;1;5;2;1;12;3;1;1;2;2;1;1;1;1;6;4;3;1;1
CHECKSUM: 36F2BC381E66EFBB901B94C810EF1853
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simscape;Simulink
PRODUCT_BASECODE: MP
ANNOTATION:
House Heating System  Control House Heating System Using Nonlinear MPC with Neural State-Space Prediction Model Copyright 1998-2023 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;Air-Roof Convection;Air-Wall Convection;Air-Window Convection;Atm-Roof Convection;Atm-Wall Convection;Atm-Window Convection;Constant;Controlled Heat Flow Rate Source;Controlled Temperature Source;Half Roof-Air Conduction;Half Roof-Atm Conduction;Half Wall-Air Conduction;Half Wall-Atm Conduction;Half Window-Air Conduction;Half Window-Atm Conduction;HeatGain;Heater;Heater Air Temperature;Heater Input;Heater Switch;House Thermal Network;MATLAB Function;Memory;Multistage Nonlinear MPC;Outdoor Temp.;Outdoor Temperature Forecast;PS2S;Pr;Reference;S2PS;Simulink-PS Converter;Solver Configuration;SubSystem;Sum;T;TRef;Tatm;Temp. Sensor;Temperature Sensor;Terminator;Thermal Mass Air;Thermal Mass Roof;Thermal Mass Wall;Thermal Mass Window;Thermal Reference;Time of Use Electiricity Pricing Forecast;Transfer Fcn;Troom;Unit Delay;current;first;next_t;seq;sequence;t

BLOCKTYPE:
Conductive Heat Transfer;Constant;Controlled Heat Flow Rate Source;Controlled Temperature Source;Convective Heat Transfer;Demux;Gain;Inport;Memory;NonlinearMPCMultistage;Outport;PMIOPort;PS-Simulink Converter;Product;S-Function;Simulink-PS Converter;Sin;Solver Configuration;Sum;Temperature Sensor;Terminator;Thermal Mass;Thermal Reference;TransferFcn;UnitDelay


MODELNAME: manipulatorNLMPC
PATH: examples/mpc/main/manipulatorNLMPC.slx
ANNOTATION: Copyright 2022 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 1;2;1;2;3;1;1;2;1;1;1;3;1;1
CHECKSUM: 444500A1637043B16EC2CFD46AF6C73A
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;Abs;Constant;Delay;Demux;GreaterThan;Integrator;Manipulator;Nonlinear MPC Controller;Reference;Reshape;Stop Simulation;SubSystem;flag;manipulator;qd;states;tau;torque;x;y

BLOCKTYPE:
Abs;Constant;Delay;Demux;Inport;Integrator;NonlinearMPC;Outport;RelationalOperator;Reshape;S-Function;Scope;Stop;Terminator


MODELNAME: mpcACCsystem
PATH: examples/mpc/main/mpcACCsystem.slx
ANNOTATION: Sensed Data Lead Car Ego Car Copyright 2016-2017 The MathWorks, Inc.
BLOCKTYPE: Adaptive cruise control (ACC) system;Constant;Inport;Integrator;Outport;Sin;Sum;TransferFcn
BLOCKTYPE_FREQUENCY: 1;6;6;4;4;1;6;2
CHECKSUM: 23B11ADB0BFFA5DB7DF6B4208BCC4461
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Acceleration;Actaul position;Actual position;Actual velocity;Adaptive Cruise Control System;Ego Car;Initial position;Initial velocity;Integrator;Lead Car;Reference;Set velocity;Sine Wave;SubSystem;Sum;Time gap;Transfer Fcn;v0 host;v0 lead;x0 host;x0 lead


MODELNAME: mpcLKAsystem
PATH: examples/mpc/main/mpcLKAsystem.slx
BLOCKTYPE_FREQUENCY: 2;1;1;6;7;4;1;1;1;9;6;1;4;1
CHECKSUM: F74DAC49C8345495A6A02ABDD0073653
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
ANNOTATION:
Vehicle Model  Vehicle Dynamics Lateral vehicle dynamics Lane keeping controller and sensor dynamics Copyright 2016-2017 The MathWorks, Inc.

BLOCK:
 Demux ; SFunction ; Terminator ;1/Vx;Constant;Current curvature;Curvature Previewer;Ego Vehicle Dynamics;Gain;Integrator;Lane Keeping Assist System;Lateral Velocity;Lateral deviation;Lateral velocity;Longitudinal velocity;MATLAB Function;Memory;Mux;Product;Reference;Relative yaw angle;Sensor Dynamics;Steering angle;SubSystem;Subtract;Sum;Vy;Yaw Rate;Yaw rate;Yaw_rate ;current;e1dot;first;next_t;seq;sequence;t

BLOCKTYPE:
Constant;Demux;Fcn;Gain;Inport;Integrator;Lane Keeping Assist (LKA) System;Memory;Mux;Outport;Product;S-Function;Sum;Terminator


MODELNAME: mpcVDAutoParking
PATH: examples/mpc/main/mpcVDAutoParking.slx
ANNOTATION: Copyright 2019 The Mathworks Inc
BLOCKTYPE_FREQUENCY: 1;1;8;1;2;6;1;1;1;1;1;2;1;1;2;5;1;1
CHECKSUM: D3B9A0FFD09FE305FBDD7383C822A5A1
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink;Vehicle Dynamics Blockset
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;Bus Creator;Bus Selector;Constant;Controls;Delay;Demux;Ego Vehicle Model;Ego Vehicle Pose;Ego poses;MATLAB Function;Mux;Nonlinear MPC Controller;Parking Visualizer;Radians to Degrees;Rate Transition;Reference;Reshape;Speed;SteerCmd;Steering Angle;SubSystem;Terminator;Transfer Fcn;Transpose;Vehicle Body 3DOF Lateral;VehiclePose;pose;steer

BLOCKTYPE:
BusCreator;BusSelector;Constant;Delay;Demux;Inport;Math;Mux;NonlinearMPC;Outport;RadiansToDegrees;RateTransition;Reshape;S-Function;Scope;Terminator;TransferFcn;Vehicle Body 3DOF Lateral


MODELNAME: mpcVDAutoParkingRRT
PATH: examples/mpc/main/mpcVDAutoParkingRRT.slx
ANNOTATION: Copyright 2019 The Mathworks Inc
BLOCKTYPE_FREQUENCY: 1;1;3;1;8;1;1;1;3;1;2;1;2;2;6;1;1
CHECKSUM: 66BC0C71341707B6C09314708A137C0A
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink;Vehicle Dynamics Blockset
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;Bus Selector;Controls;Delay;Demux;Digital Clock;Ego Vehicle Model;Ego Vehicle Pose;Ego poses;MATLAB Function;Mux;Nonlinear MPC Controller;Nonlinear MPC Tracking Controller;Parking Visualizer;Radians to Degrees;Rate Transition;Reference;Reference Preview from RRT;Reshape;Speed;States;SteerCmd;Steering Angle;SubSystem;Terminator;Transfer Fcn;Transpose;Vehicle Body 3DOF Lateral;VehiclePose;pose;ref;steer;t

BLOCKTYPE:
BusSelector;Delay;Demux;DigitalClock;Inport;Math;Mux;NonlinearMPC;Outport;RadiansToDegrees;RateTransition;Reshape;S-Function;Scope;Terminator;TransferFcn;Vehicle Body 3DOF Lateral


MODELNAME: mpc_ExtendedStateObserver
PATH: examples/mpc/main/mpc_ExtendedStateObserver.slx
BLOCKTYPE_FREQUENCY: 3;1;10;1;1;4;4;4;2;2;4;3;2;2;2;14;1;1
CHECKSUM: 91D14D4518FA1E6FA51CEBCA097D1111
PRODUCT: Control System Toolbox;MATLAB;Model Predictive Control Toolbox;Simulink;Simulink Control Design
PRODUCT_BASECODE: MP
ANNOTATION:
x2 x1 x2 x1 Copyright 1990-2024 The MathWorks, Inc. MPC with Built-In State Estimator (an LTI Kalman Filter) MPC with Custom State Estimator (an Extended State Observer)

BLOCK:
Bias;Compare estimated states from ESO with true states;Constant;Disturbance;Extended State Observer;Gain;Input;Integrator;MPC Controller ;Math Function;Matrix Concatenate;Mux;Nonlinear Plant ;Output;Product;Reference;SubSystem;Sum;Terminator;Zero-Order Hold;d;u;x;y

BLOCKTYPE:
Bias;Concatenate;Constant;Display;Extended State Observer (ESO) ;Gain;Inport;Integrator;MPC;Math;Mux;Outport;Product;Scope;Step;Sum;Terminator;ZeroOrderHold


MODELNAME: mpc_KalmanFilter
PATH: examples/mpc/main/mpc_KalmanFilter.slx
BLOCKTYPE_FREQUENCY: 6;1;12;1;11;5;6;3;3;2;4;3;2;1;21;1;2;1
CHECKSUM: 66B1332A2C5EEEB66B2E56F65CBD5338
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink;System Identification Toolbox
PRODUCT_BASECODE: MP
ANNOTATION:
x2 x1 x1 x2 x2 x1 MPC with Custom State Estimator Built with Core Simulink Blocks Copyright 1990-2020 The MathWorks, Inc. MPC with Custom State Estimator Using Kalman Filter Block MPC with Built-In State Estimator (an LTI Kalman Filter)

BLOCK:
Add;Bias;Constant;Display;Gain;Input;Integrator;LTI Kalman Filter;MPC Controller (Built-In);MPC Controller (Core);MPC Controller (KF);Math Function;Matrix Concatenate;Mux;Nonlinear Plant;Nonlinear Plant (Core);Nonlinear Plant (KF);Output;Product;Reference;State Estimator;SubSystem;Subtract;Sum;Unit Delay;Zero-Order Hold;u;x[k|k];y

BLOCKTYPE:
Bias;Concatenate;Constant;Display;Gain;Inport;Integrator;MPC;Math;Mux;Outport;Product;Scope;Step;Sum;UnitDelay;ZeroOrderHold;ctrlKalmanFilter


MODELNAME: mpc_ObstacleAvoidance
PATH: examples/mpc/main/mpc_ObstacleAvoidance.slx
ANNOTATION: Obstacle Avoidance System Copyright 1990-2017 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 1;1;1;6;2;1;7;1;1;13;4;3;4
CHECKSUM: 57158309CAF281C676F62AB11C7E2CA0
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;A;Adaptive MPC Controller;B;Bus Creator;C;Constraint Generator;D;DX;Demux;E;Ego Car;F;From;G;Goto;Integrator;Last MV Sequence;Obstacle Detector;Plant Model Generator;Reference;Scope;SubSystem;U;X;Y;detection;u;x;xdot

BLOCKTYPE:
Adaptive MPC;BusCreator;Constant;Demux;From;Goto;Inport;Integrator;Memory;Outport;S-Function;Scope;Terminator


MODELNAME: mpc_SuboptimalSolution
PATH: examples/mpc/main/mpc_SuboptimalSolution.slx
ANNOTATION: Copyright 2017-2018 The MathWorks, Inc.
BLOCKTYPE: Band-Limited White Noise.;Constant;Demux;LTI Block;MPC;Mux;Scope;Sum
BLOCKTYPE_FREQUENCY: 1;1;2;2;2;4;2;2
CHECKSUM: 48F7FB260486BDFC55DA81184C5E7529
PRODUCT: Control System Toolbox;MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Band-Limited White Noise;Constant;LTI System;MPC Controller;MPC Controller (suboptimal);Mux;OVs;Optimal;QP Status;Reference;Suboptimal;Sum


MODELNAME: mpc_activesetqp
PATH: examples/mpc/main/mpc_activesetqp.slx
ANNOTATION: Constrained LQR Control Constrained MPC Control Copyright 1990-2024 The MathWorks, Inc.
BLOCKTYPE: Demux;Gain;Inport;Memory;Outport;S-Function;Saturate;Scope;Sum;Terminator;UnitDelay
BLOCKTYPE_FREQUENCY: 1;8;2;1;3;1;2;5;2;1;2
CHECKSUM: 22ACE44D5AA4895BAA7904131E92C22F
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;A;B;C;Custom MPC Controller;Gain;K_lqr;Memory;QP_status;Saturation;SubSystem;Sum;Unit Delay;iA;status;u;u_lqr;u_mpc;x;y_lqr;y_mpc


MODELNAME: mpc_aircraft
PATH: examples/mpc/main/mpc_aircraft.slx
ANNOTATION: u(t) y(t) r(t) Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE: Demux;MPC;Mux;Scope;StateSpace;Step;ToWorkspace
BLOCKTYPE_FREQUENCY: 1;1;3;3;1;2;2
CHECKSUM: CAA7D2C5749C4C0758ED9C686E6D78F2
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Aircraft longitudinal linear model;Attack Angle Response;Attack Angle Setpoint;Demux;MPC Controller;MV;Mux;Pitch Angle Response;Pitch Angle Setpoint;Reference;To Workspace


MODELNAME: mpc_blendingprocess
PATH: examples/mpc/main/mpc_blendingprocess.slx
ANNOTATION: Copyright 1990-2023 The MathWorks, Inc.
BLOCKTYPE: Constant;Demux;DotProduct;Inport;Integrator;MPC;Mux;Outport;Product;Scope;Step;Sum
BLOCKTYPE_FREQUENCY: 1;3;2;2;2;1;4;1;2;2;3;4
CHECKSUM: DBAEF6BCD30407AFF75F69F1BCD39B9E
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Add;Blending;Composition;Demand;Demux;Divide;Dot Product;Inputs;Inventory;MPC Controller;Mux;Outputs;Product;Reference;Setpoints;SubSystem;Sum;c1 in feeds;c2 in feeds;u;v;y


MODELNAME: mpc_bumpless
PATH: examples/mpc/main/mpc_bumpless.slx
ANNOTATION: Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE: DiscretePulseGenerator;MPC;Mux;Saturate;Scope;SignalGenerator;Switch;TransferFcn;UnitDelay
BLOCKTYPE_FREQUENCY: 2;1;1;1;2;1;1;1;1
CHECKSUM: A586BC701D9458F81DE7F21B5720D805
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
MPC Controller;MVplots;Mux;Operator Commands;Reference;Saturation;Switch;Switching Signal;Transfer Fcn;Unit Delay;Yplots


MODELNAME: mpc_cstr_multiple
PATH: examples/mpc/main/mpc_cstr_multiple.slx
ANNOTATION: Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 7;2;6;4;2;1;1;1;2;6;3;1;2;1;3;2;1
CHECKSUM: 8D717B565A652D06481046C713A50CDD
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;-DeltaE/R;CAi;CSTR;Constant;DeltaH/RhoCp;Demux;F/V;F/V ;F/V + UA/(RhoCpV);Feed Concentration;Feed Temperature;Integrator;MATLAB Function;MV;Math Function;Measurements;Memory;Multiple MPC Controllers;Mux;Product;Reference;Reference Previewer;Selector;SubSystem;Sum;Switch ;T and C;Tc;Ti;UA/(V*RhoCp);current;first;k;next_t;seq;sequence;t

BLOCKTYPE:
Constant;Demux;Gain;Inport;Integrator;Math;Memory;Multiple MPC;Mux;Outport;Product;S-Function;Scope;Selector;Sum;Switch;Terminator


MODELNAME: mpc_cstr_nonlinear
PATH: examples/mpc/main/mpc_cstr_nonlinear.slx
ANNOTATION: Copyright 1990-2018 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 2;5;1;11;7;6;3;2;1;3;1;2;3;1;1;1;3;3;4;1;2
CHECKSUM: 3D91A8A480E21896E1DAB197CEE2B329
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink;Vehicle Dynamics Blockset
PRODUCT_BASECODE: MP
BLOCK:
CSTR;C_feed;Concentration (OV);Concentration Reference;Coolant Temp (MV);Coolant Temperature;DeltaE/R (p5);DeltaH/RhoCp (p3);Display;Extended Kalman Filter;F/V (p1);F/V + UA/(RhoCpV) (p1+p2);F/V 2 (p1);F/V1 (p1);Feed Concentration;Feed Temperature;From;Gain;Goto;Integrator;Math Function;Mux;Nonlinear MPC Controller;Product;Reactor Concentration;Reactor Temp;Reactor Temperature;Reference;Reshape;Saturation;SubSystem;Sum;T_feed;UA/(V*RhoCp) (p2);Unit Delay;Unmeasured Disturbance;Zero-Order Hold;k0 (p4)

BLOCKTYPE:
Constant;Display;Extended Kalman Filter;From;Gain;Goto;Inport;Integrator;Math;Mux;NonlinearMPC;Outport;Product;Ramp;Reshape;Saturate;Scope;Step;Sum;UnitDelay;ZeroOrderHold


MODELNAME: mpc_cstr_single
PATH: examples/mpc/main/mpc_cstr_single.slx
ANNOTATION: Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE_FREQUENCY: 4;2;6;4;2;1;1;1;2;6;3;1;2;1;3;1
CHECKSUM: B79CEA09E7FC53314C462CA46AC3C461
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;-DeltaE/R;CAi;CSTR;Coolant Temperature;DeltaH/RhoCp;Demux;F/V;F/V ;F/V + UA/(RhoCpV);Feed Concentration;Feed Temperature;Integrator;MATLAB Function;MPC Controller;Math Function;Measurements;Memory;Mux;Product;Reference;Reference Previewer;Selector;SubSystem;Sum;T and C;Tc;Ti;UA/(V*RhoCp);current;first;k;next_t;seq;sequence;t

BLOCKTYPE:
Constant;Demux;Gain;Inport;Integrator;MPC;Math;Memory;Mux;Outport;Product;S-Function;Scope;Selector;Sum;Terminator


MODELNAME: mpc_customQPcodegen
PATH: examples/mpc/main/mpc_customQPcodegen.slx
ANNOTATION: Copyright 1990-2017 The MathWorks, Inc.
BLOCKTYPE: Constant;Demux;LTI Block;MPC;Mux;Scope;Sin;ToWorkspace
BLOCKTYPE_FREQUENCY: 5;1;1;1;4;3;1;2
CHECKSUM: 70145B98217AEC8BA59F0A699D1111D6
PRODUCT: Control System Toolbox;MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Angle (radians);Angle reference;DC-Servo Motor;Demux;MPC Controller;Mux;Reference;Tmax;Tmin;To Workspace;Torque (Nm);Torque reference;Vmax;Vmin;Voltage (V)


MODELNAME: mpc_economicEO
PATH: examples/mpc/main/mpc_economicEO.slx
ANNOTATION: Copyright 2017-2018 The MathWorks Inc.
BLOCKTYPE_FREQUENCY: 1;1;7;1;1;1;4;1;1;2;2;1;1
CHECKSUM: 232C71B925EA975D2BFB8138A9934230
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
 Demux ; SFunction ; Terminator ;Availability;C2H4 Availability;C2H4O;Integrator;MV;Mux;Nonlinear MPC Controller;ODEs;Plant;Reference;Reshape;SubSystem;Tc;Unit Delay;dxdt;u;x;y

BLOCKTYPE:
Constant;Demux;Inport;Integrator;Mux;NonlinearMPC;Outport;Reshape;S-Function;Scope;Step;Terminator;UnitDelay


MODELNAME: mpc_misonoise
PATH: examples/mpc/main/mpc_misonoise.slx
ANNOTATION: u(t) y(t) r(t) v(t) d(t) Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE: Clock;MPC;Mux;Scope;Sin;StateSpace;Step;Sum;ToWorkspace
BLOCKTYPE_FREQUENCY: 1;1;2;4;1;1;3;1;5
CHECKSUM: 1D7E172AD51477C49147A03A1EFC6E91
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Clock;MD;MPC Controller;MV;Mux;Outputs/References/Noise;Reference;Sine Wave;State-Space;Step;Sum;To Workspace;UD


MODELNAME: mpc_mixedconstraints
PATH: examples/mpc/main/mpc_mixedconstraints.slx
ANNOTATION: u(t) y(t) r(t) Copyright 1990-2012 The MathWorks, Inc.
BLOCKTYPE: Constant;Integrator;MPC;Mux;Scope;Sum
BLOCKTYPE_FREQUENCY: 3;2;1;2;3;1
CHECKSUM: 148D0924D91B2C9EA84064E8219186AC
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
Constant;Control Action;High Limit;Integrator ;Low Limit;MPC Controller;Mux;Outputs/References;Reference;sum;u+y


MODELNAME: mpc_nonlinear
PATH: examples/mpc/main/mpc_nonlinear.slx
BLOCK: Demux;Fcn;Inputs;MPC Controller;Mux;Outputs;Reference;Step;Sum;To Workspace;Transfer Fcn
BLOCKTYPE: Demux;Fcn;MPC;Mux;Scope;Step;Sum;ToWorkspace;TransferFcn
BLOCKTYPE_FREQUENCY: 1;1;1;3;2;2;1;2;3
CHECKSUM: 2035746D8B203B0111439AE582B10915
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
ANNOTATION:
u(t) y(t) r(t) The MPC control data are defined in MPCNONLINEAR.M Copyright 1990-2014 The MathWorks, Inc.


MODELNAME: mpc_nonlinear_ss
PATH: examples/mpc/main/mpc_nonlinear_ss.slx
BLOCKTYPE: Demux;Fcn;Inport;LTI Block;MPC;Mux;Outport;Scope;Step;Sum;ToWorkspace;TransferFcn
BLOCKTYPE_FREQUENCY: 2;2;2;1;1;4;1;4;2;2;4;6
CHECKSUM: 1187046CED08B7EFEF6813C6775F97E0
PRODUCT: Control System Toolbox;MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
ANNOTATION:
r(t) y(t) u(t) u(t) y(t) r(t) Copyright 1990-2012 The MathWorks, Inc. r(t) Copyright 1990-2014 The MathWorks, Inc.

BLOCK:
Demux;Fcn;In;Inputs (Linear Controller);Inputs (MPC);Linear Controller;Linear control loop;MPC Controller;MPC control loop;Mux;Out;Outputs (Linear Controller);Outputs (MPC);Reference;Step;SubSystem;Sum;To Workspace;Transfer Fcn;references


MODELNAME: mpc_offsets
PATH: examples/mpc/main/mpc_offsets.slx
ANNOTATION: x1 x2 u(t) y(t) r(t) Copyright 1990-2014 The MathWorks, Inc.
BLOCKTYPE: Constant;Gain;Inport;Integrator;MPC;Math;Mux;Outport;Product;Scope;Sum;ToWorkspace
BLOCKTYPE_FREQUENCY: 5;2;1;2;1;1;1;1;1;2;6;2
CHECKSUM: 1652F9DD76F3FECC35F19FC7BC1AF29B
PRODUCT: MATLAB;Model Predictive Control Toolbox;Simulink
PRODUCT_BASECODE: MP
BLOCK:
50% variation from steady state;Constant;Gain;In;Input;Integrator;MPC Controller;Math Function;Mux;Nonlinear Plant;Out;Outputs/References;Product;Reference;SubSystem;Sum;To Workspace


