⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipa_control_acc_common.h

📁 其中提到遺傳學的程式碼與應用提供給次淚相向的研究者參考下載
💻 H
📖 第 1 页 / 共 3 页
字号:
/*
 * IPa_control_acc_common.h
 *
 * Real-Time Workshop code generation for Simulink model "IPa_control_acc.mdl".
 *
 * Model Version                        : 1.38
 * Real-Time Workshop file version      : 4.0 $Date: 2000/09/19 19:45:27 $
 * Real-Time Workshop file generated on : Fri Aug 03 15:51:13 2001
 * TLC version                          : 4.0 (Aug 21 2000)
 * C source code generated on           : Fri Aug 03 15:51:13 2001
 *
 * Relevant TLC Options:
 *   InlineParameters      = 0
 *   RollThreshold         = 5
 *   CodeFormat            = S-Function
 *
 * Simulink model settings:
 *   Solver     : FixedStep
 *   StartTime  : 0.0 s
 *   StopTime   : 6.0 s
 *   FixedStep  : 0.01 s
 */

#ifndef _RTW_COMMON_HEADER_FILE_IPa_control_acc_
#define _RTW_COMMON_HEADER_FILE_IPa_control_acc_

#define S_FUNCTION_NAME                 simulink_only_sfcn
#define S_FUNCTION_LEVEL                2
#define RTW_GENERATED_S_FUNCTION

#ifndef TRUE
# define TRUE (1)
#endif
#ifndef FALSE
# define FALSE (0)
#endif

#define fcn_call_T                      real_T
#define pointer_T                       void*

#define rt_VALIDATE_MEMORY(S, ptr) if(!(ptr)) {\
    ssSetErrorStatus((S), RT_MEMORY_ALLOCATION_ERROR);\
    return;\
  }

#define rt_FREE(ptr) if((ptr) != NULL) {\
    free((ptr));\
    (ptr) = NULL;\
  }
#include "simstruc.h"
#include "rtlibsrc.h"
#include <stdlib.h>
#include <math.h>

/*
 * Block I/O Structure 
 *
 * Note: Individual field names are derived from the signal name when
 * present, otherwise, field names are derived from the source block name
 * with an optional port number appened to the block name if the block has
 * multiple output ports. The comment to the right of structure field
 * contains the signal source block name.
 *
 */

typedef struct IPa_control_BlockIO_tag {
  real_T root_Gain2;                    /* <Root>/Gain2 */
  real_T root_Gain4;                    /* <Root>/Gain4 */
  real_T root_Sum;                      /* <Root>/Sum */
  real_T root_Gain;                     /* <Root>/Gain */
  real_T root_Gain3;                    /* <Root>/Gain3 */
  real_T s2_Integrator;                 /* <S2>/Integrator */
  real_T root_Gain1;                    /* <Root>/Gain1 */
  real_T s5_x_data[101];                /* <S5>/x data */
  real_T s6_Weight;                     /* <S6>/Weight */
  real_T s39_a;                         /* <S39>/a */
  real_T s39_b_a;                       /* <S39>/Sum1 */
  real_T s39_c;                         /* <S39>/c */
  real_T s39_c_b;                       /* <S39>/Sum2 */
  real_T s39_0;                         /* <S39>/0 */
  real_T s34_a;                         /* <S34>/a */
  real_T s34_b_a;                       /* <S34>/Sum1 */
  real_T s34_c;                         /* <S34>/c */
  real_T s34_c_b;                       /* <S34>/Sum2 */
  real_T s34_0;                         /* <S34>/0 */
  real_T s33_PL[101];                   /* <S33>/PL */
  real_T s17_Weight;                    /* <S17>/Weight */
  real_T s35_a;                         /* <S35>/a */
  real_T s35_b_a;                       /* <S35>/Sum1 */
  real_T s35_c;                         /* <S35>/c */
  real_T s35_c_b;                       /* <S35>/Sum2 */
  real_T s35_0;                         /* <S35>/0 */
  real_T s24_Weight;                    /* <S24>/Weight */
  real_T s38_a;                         /* <S38>/a */
  real_T s38_b_a;                       /* <S38>/Sum1 */
  real_T s38_c;                         /* <S38>/c */
  real_T s38_c_b;                       /* <S38>/Sum2 */
  real_T s38_0;                         /* <S38>/0 */
  real_T s25_Weight;                    /* <S25>/Weight */
  real_T s37_a;                         /* <S37>/a */
  real_T s37_b_a;                       /* <S37>/Sum1 */
  real_T s37_c;                         /* <S37>/c */
  real_T s37_c_b;                       /* <S37>/Sum2 */
  real_T s37_0;                         /* <S37>/0 */
  real_T s33_PS[101];                   /* <S33>/PS */
  real_T s26_Weight;                    /* <S26>/Weight */
  real_T s36_a;                         /* <S36>/a */
  real_T s36_b_a;                       /* <S36>/Sum1 */
  real_T s36_c;                         /* <S36>/c */
  real_T s36_c_b;                       /* <S36>/Sum2 */
  real_T s36_0;                         /* <S36>/0 */
  real_T s33_ZE[101];                   /* <S33>/ZE */
  real_T s27_Weight;                    /* <S27>/Weight */
  real_T s40_a;                         /* <S40>/a */
  real_T s40_b_a;                       /* <S40>/Sum1 */
  real_T s40_c;                         /* <S40>/c */
  real_T s40_c_b;                       /* <S40>/Sum2 */
  real_T s40_0;                         /* <S40>/0 */
  real_T s28_Weight;                    /* <S28>/Weight */
  real_T s29_Weight;                    /* <S29>/Weight */
  real_T s30_Weight;                    /* <S30>/Weight */
  real_T s7_Weight;                     /* <S7>/Weight */
  real_T s33_NS[101];                   /* <S33>/NS */
  real_T s8_Weight;                     /* <S8>/Weight */
  real_T s43_a;                         /* <S43>/a */
  real_T s43_b_a;                       /* <S43>/Sum1 */
  real_T s43_c;                         /* <S43>/c */
  real_T s43_c_b;                       /* <S43>/Sum2 */
  real_T s43_0;                         /* <S43>/0 */
  real_T s9_Weight;                     /* <S9>/Weight */
  real_T s10_Weight;                    /* <S10>/Weight */
  real_T s11_Weight;                    /* <S11>/Weight */
  real_T s12_Weight;                    /* <S12>/Weight */
  real_T s33_NL[101];                   /* <S33>/NL */
  real_T s13_Weight;                    /* <S13>/Weight */
  real_T s42_a;                         /* <S42>/a */
  real_T s42_b_a;                       /* <S42>/Sum1 */
  real_T s42_c;                         /* <S42>/c */
  real_T s42_c_b;                       /* <S42>/Sum2 */
  real_T s42_0;                         /* <S42>/0 */
  real_T s14_Weight;                    /* <S14>/Weight */
  real_T s15_Weight;                    /* <S15>/Weight */
  real_T s16_Weight;                    /* <S16>/Weight */
  real_T s18_Weight;                    /* <S18>/Weight */
  real_T s19_Weight;                    /* <S19>/Weight */
  real_T s41_a;                         /* <S41>/a */
  real_T s41_b_a;                       /* <S41>/Sum1 */
  real_T s41_c;                         /* <S41>/c */
  real_T s41_c_b;                       /* <S41>/Sum2 */
  real_T s41_0;                         /* <S41>/0 */
  real_T s20_Weight;                    /* <S20>/Weight */
  real_T s21_Weight;                    /* <S21>/Weight */
  real_T s22_Weight;                    /* <S22>/Weight */
  real_T s23_Weight;                    /* <S23>/Weight */
  real_T s5_Prevent_Div_1;              /* <S5>/Prevent Div//1 */
  real_T s4_MidRange;                   /* <S4>/MidRange */
  real_T s4_Zero;                       /* <S4>/Zero */
  real_T s1_Gain3;                      /* <S1>/Gain3 */
  real_T s2_Fcn;                        /* <S2>/Fcn */
  real_T root_Clock;                    /* <Root>/Clock */
  real_T root_Step;                     /* <Root>/Step */
} IPa_control_BlockIO;

/*
 * Default Parameters Structure 
 *
 * Note: The parameters structure contains all the block parameters
 * in the model.  Individual field names are comprised of the block and
 * parameter name.
 *
 */

typedef struct IPa_control_Parameters_tag {
  real_T root_Step_Time;                /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Step
                                         */
  real_T root_Step_Y0;                  /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Step
                                         */
  real_T root_Step_YFinal;              /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Step
                                         */
  real_T root_Constant_Value;           /* Variable: root_Constant_Value
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Constant
                                         */
  real_T root_Gain2_Gain;               /* Expression: pi/180
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Gain2
                                         */
  real_T s2_Saturation_UpperSat;        /* Expression: pi/2
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S2>/Saturation
                                         */
  real_T s2_Saturation_LowerSat;        /* Expression: -pi/2
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S2>/Saturation
                                         */
  real_T root_Random_Number_Mean;       /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Random Number
                                         */
  real_T root_Random_Number_StdDev;     /* Computed Parameter: StdDev
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Random Number
                                         */
  real_T root_Gain4_Gain;               /* Expression: 0.001
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Gain4
                                         */
  real_T root_Gain_Gain;                /* Expression: 180/pi
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Gain
                                         */
  real_T root_Constant1_Value;          /* Variable: root_Constant1_Value
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Constant1
                                         */
  real_T root_Gain3_Gain;               /* Expression: pi/180
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Gain3
                                         */
  real_T root_Gain1_Gain;               /* Expression: 180/pi
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Gain1
                                         */
  real_T s5_x_data_Value[101];          /* Computed Parameter: Value
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S5>/x data
                                         */
  real_T s6_Weight_Value;               /* Expression: fis.rule(j_rule).weight

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -