17 #ifndef RTW_HEADER_DFIG_Model_To_Code_h_
18 #define RTW_HEADER_DFIG_Model_To_Code_h_
22 #ifndef DFIG_Model_To_Code_COMMON_INCLUDES_
23 # define DFIG_Model_To_Code_COMMON_INCLUDES_
30 #ifndef rtmGetErrorStatus
31 # define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
34 #ifndef rtmSetErrorStatus
35 # define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
38 #ifndef rtmGetStopRequested
39 # define rtmGetStopRequested(rtm) ((rtm)->Timing.stopRequestedFlag)
42 #ifndef rtmSetStopRequested
43 # define rtmSetStopRequested(rtm, val) ((rtm)->Timing.stopRequestedFlag = (val))
46 #ifndef rtmGetStopRequestedPtr
47 # define rtmGetStopRequestedPtr(rtm) (&((rtm)->Timing.stopRequestedFlag))
51 # define rtmGetT(rtm) (rtmGetTPtr((rtm))[0])
55 # define rtmGetTPtr(rtm) ((rtm)->Timing.t)
SimTimeStep
Definition: rtw_continuous.h:35
unsigned int uint32_T
Definition: rtwtypes.h:54
char char_T
Definition: rtwtypes.h:71
unsigned short uint16_T
Definition: rtwtypes.h:52
double real_T
Definition: rtwtypes.h:64
unsigned char boolean_T
Definition: rtwtypes.h:66
double time_T
Definition: rtwtypes.h:65
int int_T
Definition: rtwtypes.h:67
const ConstP rtConstP
Definition: DFIG_Model_To_Code_data.cpp:43
const ConstB rtConstB
Definition: DFIG_Model_To_Code_data.cpp:20
const struct tag_ConstB ConstB
Definition: DFIG_Model_To_Code.h:401
ExtY rtY
Definition: DFIG_Model_To_Code.h:429
void initialize()
Definition: DFIG_Model_To_Code.cpp:1536
RT_MODEL rtM
Definition: DFIG_Model_To_Code.h:441
DFIG_Model_To_CodeModelClass()
Definition: DFIG_Model_To_Code.cpp:1906
void step()
Definition: DFIG_Model_To_Code.cpp:464
~DFIG_Model_To_CodeModelClass()
Definition: DFIG_Model_To_Code.cpp:1911
const ExtY & getExternalOutputs() const
Definition: DFIG_Model_To_Code.cpp:1927
void setExternalInputs(const ExtU *pExtU)
Definition: DFIG_Model_To_Code.cpp:1919
X rtX
Definition: DFIG_Model_To_Code.h:438
RT_MODEL * getRTM()
Definition: DFIG_Model_To_Code.cpp:1933
ExtU rtU
Definition: DFIG_Model_To_Code.h:426
DW rtDW
Definition: DFIG_Model_To_Code.h:437
void rt_ertODEUpdateContinuousStates(RTWSolverInfo *si)
Definition: DFIG_Model_To_Code.cpp:443
void DFIG_Model_To_Code_derivatives()
Definition: DFIG_Model_To_Code.cpp:1524
Definition: rtw_solver.h:44
Definition: DFIG_Model_To_Code.h:218
Definition: DFIG_Model_To_Code.h:62
real_T LastUAtTimeB_n
Definition: DFIG_Model_To_Code.h:120
real_T ira
Definition: DFIG_Model_To_Code.h:104
void * BD_COL
Definition: DFIG_Model_To_Code.h:156
real_T DataTypeConversion_d
Definition: DFIG_Model_To_Code.h:90
void * IDX_OUT_SW
Definition: DFIG_Model_To_Code.h:172
real_T Switch3_b
Definition: DFIG_Model_To_Code.h:82
real_T LastUAtTimeA_k
Definition: DFIG_Model_To_Code.h:138
real_T vqs
Definition: DFIG_Model_To_Code.h:111
real_T LastUAtTimeB_j
Definition: DFIG_Model_To_Code.h:132
boolean_T Synchronousreferenceframe_MODE
Definition: DFIG_Model_To_Code.h:179
real_T DataTypeConversion_ce
Definition: DFIG_Model_To_Code.h:91
real_T LastUAtTimeA_f
Definition: DFIG_Model_To_Code.h:146
real_T vdr
Definition: DFIG_Model_To_Code.h:108
real_T isb
Definition: DFIG_Model_To_Code.h:107
real_T TimeStampB_h
Definition: DFIG_Model_To_Code.h:135
real_T LookUpTable_l
Definition: DFIG_Model_To_Code.h:74
real_T TimeStampB_f
Definition: DFIG_Model_To_Code.h:127
void * TMP1
Definition: DFIG_Model_To_Code.h:157
real_T LastUAtTimeA_n
Definition: DFIG_Model_To_Code.h:122
void * XKP12
Definition: DFIG_Model_To_Code.h:166
real_T Gain3
Definition: DFIG_Model_To_Code.h:72
void * SWITCH_STATUS
Definition: DFIG_Model_To_Code.h:160
real_T LastUAtTimeB_c
Definition: DFIG_Model_To_Code.h:144
real_T LookUpTable_g
Definition: DFIG_Model_To_Code.h:79
real_T TimeStampB_l
Definition: DFIG_Model_To_Code.h:147
real_T DataTypeConversion
Definition: DFIG_Model_To_Code.h:83
real_T LookUpTable_h
Definition: DFIG_Model_To_Code.h:75
real_T TimeStampB
Definition: DFIG_Model_To_Code.h:115
real_T DataTypeConversion_a
Definition: DFIG_Model_To_Code.h:88
boolean_T sinthrcosthr_MODE
Definition: DFIG_Model_To_Code.h:178
real_T LookUpTable
Definition: DFIG_Model_To_Code.h:73
real_T LastUAtTimeB_p
Definition: DFIG_Model_To_Code.h:136
real_T LookUpTable_d
Definition: DFIG_Model_To_Code.h:96
real_T LookUpTable_c
Definition: DFIG_Model_To_Code.h:80
void * USWLAST
Definition: DFIG_Model_To_Code.h:164
real_T TimeStampA_c
Definition: DFIG_Model_To_Code.h:141
void * SWITCH_TOPO_SAVED_IDX
Definition: DFIG_Model_To_Code.h:173
real_T TimeStampA_g
Definition: DFIG_Model_To_Code.h:117
real_T TimeStampB_n4
Definition: DFIG_Model_To_Code.h:139
real_T TimeStampA
Definition: DFIG_Model_To_Code.h:113
real_T LastUAtTimeA_p
Definition: DFIG_Model_To_Code.h:134
real_T LookUpTable_g4
Definition: DFIG_Model_To_Code.h:98
real_T TimeStampA_e
Definition: DFIG_Model_To_Code.h:125
real_T LastUAtTimeA_n2
Definition: DFIG_Model_To_Code.h:130
real_T DataTypeConversion_kc
Definition: DFIG_Model_To_Code.h:101
real_T LastUAtTimeA_d
Definition: DFIG_Model_To_Code.h:142
real_T DataTypeConversion_j
Definition: DFIG_Model_To_Code.h:94
real_T LastUAtTimeB_f
Definition: DFIG_Model_To_Code.h:128
void * IDX_SW_CHG
Definition: DFIG_Model_To_Code.h:169
real_T DataTypeConversion_kl
Definition: DFIG_Model_To_Code.h:87
boolean_T Rotorreferenceframe_MODE
Definition: DFIG_Model_To_Code.h:181
real_T LookUpTable_e
Definition: DFIG_Model_To_Code.h:76
real_T DataTypeConversion_g
Definition: DFIG_Model_To_Code.h:85
real_T DataTypeConversion_b
Definition: DFIG_Model_To_Code.h:93
boolean_T Rotorreferenceframe_MODE_g
Definition: DFIG_Model_To_Code.h:184
real_T Switch3_l
Definition: DFIG_Model_To_Code.h:100
void * XTMP
Definition: DFIG_Model_To_Code.h:159
void * XKM12
Definition: DFIG_Model_To_Code.h:165
void * DX_COL
Definition: DFIG_Model_To_Code.h:155
real_T TimeStampA_f
Definition: DFIG_Model_To_Code.h:121
void * SWITCH_MAP
Definition: DFIG_Model_To_Code.h:174
real_T Gain2
Definition: DFIG_Model_To_Code.h:71
real_T TimeStampB_g
Definition: DFIG_Model_To_Code.h:123
void * AS
Definition: DFIG_Model_To_Code.h:151
real_T Gain4
Definition: DFIG_Model_To_Code.h:70
real_T LastUAtTimeA_m
Definition: DFIG_Model_To_Code.h:118
real_T LastUAtTimeB_px
Definition: DFIG_Model_To_Code.h:148
real_T DataTypeConversion_p
Definition: DFIG_Model_To_Code.h:89
real_T irb
Definition: DFIG_Model_To_Code.h:105
void * Y_SWITCH
Definition: DFIG_Model_To_Code.h:170
real_T TimeStampB_ho
Definition: DFIG_Model_To_Code.h:143
real_T isa
Definition: DFIG_Model_To_Code.h:106
real_T Rotoranglethetam_DSTATE
Definition: DFIG_Model_To_Code.h:112
real_T DataTypeConversion_l
Definition: DFIG_Model_To_Code.h:92
real_T LastUAtTimeB_a
Definition: DFIG_Model_To_Code.h:124
real_T TimeStampA_kt
Definition: DFIG_Model_To_Code.h:145
void * TMP2
Definition: DFIG_Model_To_Code.h:158
real_T TimeStampA_k
Definition: DFIG_Model_To_Code.h:137
real_T LastUAtTimeA_h
Definition: DFIG_Model_To_Code.h:126
real_T DataTypeConversion_c
Definition: DFIG_Model_To_Code.h:84
real_T LastUAtTimeB
Definition: DFIG_Model_To_Code.h:116
real_T TimeStampB_k
Definition: DFIG_Model_To_Code.h:119
void * G_STATE
Definition: DFIG_Model_To_Code.h:163
void * SW_CHG
Definition: DFIG_Model_To_Code.h:162
void * DS
Definition: DFIG_Model_To_Code.h:154
real_T LookUpTable_o
Definition: DFIG_Model_To_Code.h:78
real_T TrigonometricFunction_o1
Definition: DFIG_Model_To_Code.h:102
real_T vds
Definition: DFIG_Model_To_Code.h:109
real_T vqr
Definition: DFIG_Model_To_Code.h:110
real_T LastUAtTimeB_nk
Definition: DFIG_Model_To_Code.h:140
void * SWITCH_TYPES
Definition: DFIG_Model_To_Code.h:171
real_T TimeStampB_n
Definition: DFIG_Model_To_Code.h:131
real_T Switch3
Definition: DFIG_Model_To_Code.h:77
boolean_T Stationaryreferenceframe_MODE_h
Definition: DFIG_Model_To_Code.h:183
boolean_T Stationaryreferenceframe_MODE
Definition: DFIG_Model_To_Code.h:180
real_T DataTypeConversion_i
Definition: DFIG_Model_To_Code.h:95
real_T LookUpTable_ci
Definition: DFIG_Model_To_Code.h:81
void * CS
Definition: DFIG_Model_To_Code.h:153
void * BS
Definition: DFIG_Model_To_Code.h:152
real_T TrigonometricFunction_o2
Definition: DFIG_Model_To_Code.h:103
void * SWITCH_STATUS_INIT
Definition: DFIG_Model_To_Code.h:161
real_T LastUAtTimeA
Definition: DFIG_Model_To_Code.h:114
boolean_T Synchronousreferenceframe_MOD_j
Definition: DFIG_Model_To_Code.h:182
real_T DataTypeConversion_k
Definition: DFIG_Model_To_Code.h:86
void * XLAST
Definition: DFIG_Model_To_Code.h:167
real_T TimeStampA_n
Definition: DFIG_Model_To_Code.h:129
boolean_T sinthrcosthr1_MODE
Definition: DFIG_Model_To_Code.h:177
void * ULAST
Definition: DFIG_Model_To_Code.h:168
real_T LookUpTable_k
Definition: DFIG_Model_To_Code.h:97
real_T LookUpTable_hr
Definition: DFIG_Model_To_Code.h:99
real_T TimeStampA_b
Definition: DFIG_Model_To_Code.h:133
Definition: DFIG_Model_To_Code.h:316
real_T OMEGA_GEN
Definition: DFIG_Model_To_Code.h:324
boolean_T BAL_1_CTRL
Definition: DFIG_Model_To_Code.h:320
boolean_T CTRL_PC
Definition: DFIG_Model_To_Code.h:322
boolean_T CTRL_SC
Definition: DFIG_Model_To_Code.h:317
boolean_T CTRL_GC
Definition: DFIG_Model_To_Code.h:318
boolean_T BAL_2_CTRL
Definition: DFIG_Model_To_Code.h:323
Definition: DFIG_Model_To_Code.h:328
real_T I_GRID_STATOR_L1
Definition: DFIG_Model_To_Code.h:329
real_T U_GSI_L12
Definition: DFIG_Model_To_Code.h:338
real_T U_GSI_L23
Definition: DFIG_Model_To_Code.h:339
real_T U_GRID_L23
Definition: DFIG_Model_To_Code.h:333
real_T U_GRID_L12
Definition: DFIG_Model_To_Code.h:332
real_T I_GSI_L1
Definition: DFIG_Model_To_Code.h:341
real_T U_DC
Definition: DFIG_Model_To_Code.h:344
real_T U_STATOR_L31
Definition: DFIG_Model_To_Code.h:337
real_T U_STATOR_L12
Definition: DFIG_Model_To_Code.h:335
real_T I_GSI_L3
Definition: DFIG_Model_To_Code.h:343
real_T I_GRID_STATOR_L2
Definition: DFIG_Model_To_Code.h:330
real_T I_GSI_L2
Definition: DFIG_Model_To_Code.h:342
real_T I_RSI_L1
Definition: DFIG_Model_To_Code.h:345
real_T I_RSI_L2
Definition: DFIG_Model_To_Code.h:346
real_T U_GSI_L31
Definition: DFIG_Model_To_Code.h:340
real_T U_STATOR_L23
Definition: DFIG_Model_To_Code.h:336
uint16_T Rotor_Angle
Definition: DFIG_Model_To_Code.h:348
real_T I_GRID_STATOR_L3
Definition: DFIG_Model_To_Code.h:331
real_T I_RSI_L3
Definition: DFIG_Model_To_Code.h:347
real_T U_GRID_L31
Definition: DFIG_Model_To_Code.h:334
Definition: DFIG_Model_To_Code.h:211
Definition: DFIG_Model_To_Code.h:198
boolean_T Integrator_CSTATE
Definition: DFIG_Model_To_Code.h:199
Definition: DFIG_Model_To_Code.h:193
real_T Integrator_CSTATE
Definition: DFIG_Model_To_Code.h:194
Definition: DFIG_Model_To_Code.h:188
real_T Integrator_CSTATE
Definition: DFIG_Model_To_Code.h:189
Definition: DFIG_Model_To_Code.h:203
real_T wbaseTs2[16]
Definition: DFIG_Model_To_Code.h:204
Definition: DFIG_Model_To_Code.h:352
SimTimeStep simTimeStep
Definition: DFIG_Model_To_Code.h:387
boolean_T derivCacheNeedsReset
Definition: DFIG_Model_To_Code.h:361
time_T tArray[2]
Definition: DFIG_Model_To_Code.h:390
const char_T * errorStatus
Definition: DFIG_Model_To_Code.h:353
boolean_T stopRequestedFlag
Definition: DFIG_Model_To_Code.h:388
uint32_T clockTick1
Definition: DFIG_Model_To_Code.h:386
real_T * periodicContStateRanges
Definition: DFIG_Model_To_Code.h:357
real_T odeF[1][1]
Definition: DFIG_Model_To_Code.h:363
int_T * periodicContStateIndices
Definition: DFIG_Model_To_Code.h:356
boolean_T zCCacheNeedsReset
Definition: DFIG_Model_To_Code.h:360
int_T numSampTimes
Definition: DFIG_Model_To_Code.h:375
int_T numContStates
Definition: DFIG_Model_To_Code.h:373
time_T * t
Definition: DFIG_Model_To_Code.h:389
struct tag_RTM::@3 Timing
RTWSolverInfo solverInfo
Definition: DFIG_Model_To_Code.h:354
ODE1_IntgData intgData
Definition: DFIG_Model_To_Code.h:364
boolean_T CTOutputIncnstWithState
Definition: DFIG_Model_To_Code.h:362
X * contStates
Definition: DFIG_Model_To_Code.h:355
real_T * derivs
Definition: DFIG_Model_To_Code.h:358
time_T stepSize0
Definition: DFIG_Model_To_Code.h:385
uint32_T clockTick0
Definition: DFIG_Model_To_Code.h:384
boolean_T * contStateDisabled
Definition: DFIG_Model_To_Code.h:359
int_T numPeriodicContStates
Definition: DFIG_Model_To_Code.h:374