123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441 |
- //
- // File: PmsmSimUt_data.cpp
- //
- // Code generated for Simulink model 'PmsmSimUt'.
- //
- // Model version : 1.18
- // Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
- // C/C++ source code generated on : Tue Aug 1 23:42:37 2023
- //
- // Target selection: ert.tlc
- // Embedded hardware selection: Intel->x86-64 (Windows64)
- // Code generation objectives: Unspecified
- // Validation result: Not run
- //
- #include "PmsmSimUt.h"
- #include "PmsmSimUt_private.h"
- // Block parameters (default storage)
- PmsmSimUtModelClass::P_PmsmSimUt_T PmsmSimUtModelClass::PmsmSimUt_P = {
- // Variable: Params
- // Referenced by:
- // '<Root>/Constant1'
- // '<Root>/Constant2'
- // '<Root>/Constant3'
- // '<Root>/Constant4'
- // '<Root>/Gain1'
- // '<S2>/Constant4'
- // '<S6>/Constant1'
- // '<S6>/Constant2'
- // '<S6>/Constant3'
- // '<S7>/Gain'
- // '<S15>/Gain'
- // '<S15>/Kp4'
- // '<S15>/Kp5'
- // '<S16>/Gain'
- // '<S16>/Kp4'
- // '<S16>/Kp5'
- // '<S17>/Constant'
- // '<S17>/Constant1'
- // '<S17>/Constant2'
- // '<S17>/Constant3'
- // '<S17>/Discrete-Time Integrator'
- // '<S17>/Gain'
- // '<S17>/Gain1'
- // '<S17>/Gain2'
- // '<S18>/Gain'
- // '<S18>/Gain1'
- // '<S20>/Gain'
- // '<S20>/Kp4'
- // '<S20>/Kp5'
- // '<S19>/Constant1'
- // '<S19>/Gain'
- // '<S19>/Gain1'
- {
- 0.0001,
- 1.0,
- 0.0,
- 1000.0,
- 0.1,
- 0.002,
- 0.25,
- 1.8,
- 0.25,
- 1.8,
- 0.0,
- 0.0008,
- 2.0,
- 0.00056,
- 8.1e-5,
- 8.1e-5,
- 0.0789
- },
- // Mask Parameter: AlphaBetaZerotodq0_Alignment
- // Referenced by: '<S1>/Constant'
- 1.0,
- // Mask Parameter: AlphaBetaZerotodq0_Alignment_e
- // Referenced by: '<S21>/Constant'
- 1.0,
- // Mask Parameter: Subsystem_Init
- // Referenced by: '<S20>/Discrete-Time Integrator'
- 0.0,
- // Mask Parameter: Subsystem1_Init
- // Referenced by: '<S16>/Discrete-Time Integrator'
- 0.0,
- // Mask Parameter: Subsystem_Init_c
- // Referenced by: '<S15>/Discrete-Time Integrator'
- 0.0,
- // Mask Parameter: CompareToConstant_const
- // Referenced by: '<S11>/Constant'
- 1.0,
- // Mask Parameter: CompareToConstant1_const
- // Referenced by: '<S12>/Constant'
- 2.0,
- // Mask Parameter: CompareToConstant_const_a
- // Referenced by: '<S23>/Constant'
- 1.0,
- // Mask Parameter: CompareToConstant1_const_o
- // Referenced by: '<S24>/Constant'
- 2.0,
- // Expression: [0,0]
- // Referenced by: '<S13>/dq'
- { 0.0, 0.0 },
- // Expression: [0,0]
- // Referenced by: '<S14>/dq'
- { 0.0, 0.0 },
- // Computed Parameter: Wm_Y0
- // Referenced by: '<S19>/Wm'
- 0.0,
- // Computed Parameter: DiscreteTimeIntegrator1_gainval
- // Referenced by: '<S19>/Discrete-Time Integrator1'
- 1.0,
- // Expression: 0
- // Referenced by: '<S19>/Discrete-Time Integrator1'
- 0.0,
- // Expression: pi/30
- // Referenced by: '<S18>/Gain3'
- 0.10471975511965977,
- // Computed Parameter: Iq_ref_Y0
- // Referenced by: '<S5>/Iq_ref'
- 0.0,
- // Computed Parameter: DiscreteTimeIntegrator_gainval
- // Referenced by: '<S20>/Discrete-Time Integrator'
- 1.0,
- // Expression: Limits(1)
- // Referenced by: '<S20>/Discrete-Time Integrator'
- 500.0,
- // Expression: Limits(2)
- // Referenced by: '<S20>/Discrete-Time Integrator'
- -500.0,
- // Expression: Limits(1)
- // Referenced by: '<S20>/Saturation2'
- 500.0,
- // Expression: Limits(2)
- // Referenced by: '<S20>/Saturation2'
- -500.0,
- // Expression: 0
- // Referenced by: '<Root>/Constant5'
- 0.0,
- // Expression: 1
- // Referenced by: '<Root>/Constant6'
- 1.0,
- // Expression: Limits(1)
- // Referenced by: '<S16>/Saturation2'
- 10000.0,
- // Expression: Limits(2)
- // Referenced by: '<S16>/Saturation2'
- -10000.0,
- // Expression: Limits(1)
- // Referenced by: '<S15>/Saturation2'
- 10000.0,
- // Expression: Limits(2)
- // Referenced by: '<S15>/Saturation2'
- -10000.0,
- // Expression: [0,0]
- // Referenced by: '<S25>/dq'
- { 0.0, 0.0 },
- // Expression: [0,0]
- // Referenced by: '<S26>/dq'
- { 0.0, 0.0 },
- // Computed Parameter: DiscreteTimeIntegrator_gainva_p
- // Referenced by: '<S18>/Discrete-Time Integrator'
- 1.0,
- // Expression: 0
- // Referenced by: '<S18>/Discrete-Time Integrator'
- 0.0,
- // Expression: 2*pi
- // Referenced by: '<S18>/Constant'
- 6.2831853071795862,
- // Computed Parameter: DiscreteTimeIntegrator1_gainv_b
- // Referenced by: '<S17>/Discrete-Time Integrator1'
- 1.0,
- // Expression: 0
- // Referenced by: '<S17>/Discrete-Time Integrator1'
- 0.0,
- // Computed Parameter: DiscreteTimeIntegrator_gainv_pq
- // Referenced by: '<S17>/Discrete-Time Integrator'
- 1.0,
- // Expression: 0
- // Referenced by: '<S10>/Constant'
- 0.0,
- // Expression: K1
- // Referenced by: '<S30>/K1'
- 1.0,
- // Expression: K2
- // Referenced by: '<S30>/K2'
- 1.0,
- // Expression: 0
- // Referenced by: '<Root>/Switch2'
- 0.0,
- // Expression: 0
- // Referenced by: '<S18>/Switch'
- 0.0,
- // Expression: 0
- // Referenced by: '<Root>/Switch3'
- 0.0,
- // Expression: -1
- // Referenced by: '<S6>/Gain1'
- -1.0,
- // Expression: 0
- // Referenced by: '<Root>/Switch5'
- 0.0,
- // Expression: 0
- // Referenced by: '<Root>/Switch4'
- 0.0,
- // Computed Parameter: DiscreteTimeIntegrator_gainva_b
- // Referenced by: '<S16>/Discrete-Time Integrator'
- 1.0,
- // Expression: Limits(1)
- // Referenced by: '<S16>/Discrete-Time Integrator'
- 10000.0,
- // Expression: Limits(2)
- // Referenced by: '<S16>/Discrete-Time Integrator'
- -10000.0,
- // Expression: 0
- // Referenced by: '<Root>/Switch1'
- 0.0,
- // Expression: 0
- // Referenced by: '<S7>/Memory'
- 0.0,
- // Expression: 10000
- // Referenced by: '<Root>/Saturation2'
- 10000.0,
- // Expression: -10000
- // Referenced by: '<Root>/Saturation2'
- -10000.0,
- // Computed Parameter: DiscreteTimeIntegrator_gainva_c
- // Referenced by: '<S15>/Discrete-Time Integrator'
- 1.0,
- // Expression: Limits(1)
- // Referenced by: '<S15>/Discrete-Time Integrator'
- 10000.0,
- // Expression: Limits(2)
- // Referenced by: '<S15>/Discrete-Time Integrator'
- -10000.0,
- // Expression: 0
- // Referenced by: '<Root>/Switch6'
- 0.0,
- // Expression: 0
- // Referenced by: '<S9>/Constant'
- 0.0,
- // Expression: K1
- // Referenced by: '<S28>/K1'
- 1.0,
- // Expression: K2
- // Referenced by: '<S28>/K2'
- 1.0,
- // Expression: [ 1 -1/2 -1/2; 0 sqrt(3)/2 -sqrt(3)/2; 1/2 1/2 1/2 ]
- // Referenced by: '<S22>/Gain3'
- { 1.0, 0.0, 0.5, -0.5, 0.8660254037844386, 0.5, -0.5, -0.8660254037844386, 0.5
- },
- // Expression: 2/3
- // Referenced by: '<S22>/Gain1'
- 0.66666666666666663,
- // Expression: 30/pi
- // Referenced by: '<S18>/Gain2'
- 9.5492965855137211,
- // Expression: -0.01
- // Referenced by: '<S7>/Dead Zone'
- -0.01,
- // Expression: 0.01
- // Referenced by: '<S7>/Dead Zone'
- 0.01,
- // Expression: 0.1
- // Referenced by: '<S7>/Relay1'
- 0.1,
- // Expression: 0
- // Referenced by: '<S7>/Relay1'
- 0.0,
- // Expression: 1000
- // Referenced by: '<S7>/Relay1'
- 1000.0,
- // Expression: 0
- // Referenced by: '<S7>/Relay1'
- 0.0,
- // Expression: 0
- // Referenced by: '<S7>/Relay2'
- 0.0,
- // Expression: -0.1
- // Referenced by: '<S7>/Relay2'
- -0.1,
- // Expression: 0
- // Referenced by: '<S7>/Relay2'
- 0.0,
- // Expression: -1000
- // Referenced by: '<S7>/Relay2'
- -1000.0,
- // Computed Parameter: ManualSwitch1_CurrentSetting
- // Referenced by: '<Root>/Manual Switch1'
- 0U
- };
- //
- // File trailer for generated code.
- //
- // [EOF]
- //
|