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

📄 ex38s1_acc_common.h

📁 其中提到遺傳學的程式碼與應用提供給次淚相向的研究者參考下載
💻 H
📖 第 1 页 / 共 2 页
字号:
/*
 * ex38s1_acc_common.h
 *
 * Real-Time Workshop code generation for Simulink model "ex38s1_acc.mdl".
 *
 * Model Version                        : 1.55
 * Real-Time Workshop file version      : 4.0 $Date: 2000/09/19 19:45:27 $
 * Real-Time Workshop file generated on : Thu Feb 07 22:04:58 2002
 * TLC version                          : 4.0 (Aug 21 2000)
 * C source code generated on           : Thu Feb 07 22:04:59 2002
 *
 * Relevant TLC Options:
 *   InlineParameters      = 0
 *   RollThreshold         = 5
 *   CodeFormat            = S-Function
 *
 * Simulink model settings:
 *   Solver     : VariableStep
 *   StartTime  : 0.0 s
 *   StopTime   : 140.0 s
 *   Variable step solver used
 */

#ifndef _RTW_COMMON_HEADER_FILE_ex38s1_acc_
#define _RTW_COMMON_HEADER_FILE_ex38s1_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;\
  }

#ifndef RT_SQUARE
#define RT_SQUARE(x) ( x * x )
#endif
#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 ex38s1_BlockIO_tag {
  real_T s5_Gain;                       /* <S5>/Gain */
  real_T s7_Internal;                   /* <S7>/Internal */
  real_T root_Sum;                      /* <Root>/Sum */
  real_T root_Clock;                    /* <Root>/Clock */
  real_T root_Zero_Order_Hold7;         /* <Root>/Zero-Order Hold7 */
  real_T s4_Logical_Operator;           /* <S4>/Logical Operator */
  real_T s4_Unit_Delay_Ts_0_1;          /* <S4>/Unit Delay Ts=0.1 */
  real_T s4_Sum2;                       /* <S4>/Sum2 */
  real_T s3_Logical_Operator;           /* <S3>/Logical Operator */
  real_T s3_Unit_Delay_Ts_0_1;          /* <S3>/Unit Delay Ts=0.1 */
  real_T s3_Sum2;                       /* <S3>/Sum2 */
  real_T s2_Logical_Operator;           /* <S2>/Logical Operator */
  real_T s2_Unit_Delay_Ts_0_1;          /* <S2>/Unit Delay Ts=0.1 */
  real_T s2_Sum2;                       /* <S2>/Sum2 */
  real_T s1_Logical_Operator;           /* <S1>/Logical Operator */
  real_T s1_Unit_Delay_Ts_0_1;          /* <S1>/Unit Delay Ts=0.1 */
  real_T s1_Sum2;                       /* <S1>/Sum2 */
  real_T root_Gain;                     /* <Root>/Gain */
  real_T root_Constant;                 /* <Root>/Constant */
  real_T root_Relational_Operator;      /* <Root>/Relational Operator */
  real_T s6_Gain;                       /* <S6>/Gain */
  real_T s6_Saturation;                 /* <S6>/Saturation */
  real_T s6_Gain1;                      /* <S6>/Gain1 */
  real_T s6_Saturation1;                /* <S6>/Saturation1 */
  real_T s8_FIS_S_function;             /* <S8>/FIS S-function */
  real_T root_Unit_Delay_Ts_0_01;       /* <Root>/Unit Delay Ts=0.01 */
  real_T root_Sum1;                     /* <Root>/Sum1 */
  real_T root_Zero_Order_Hold1[2];      /* <Root>/Zero-Order Hold1 */
} ex38s1_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 ex38s1_Parameters_tag {
  real_T s5_White_Noise_Mean;           /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S5>/White Noise
                                         */
  real_T s5_White_Noise_StdDev;         /* Computed Parameter: StdDev
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S5>/White Noise
                                         */
  real_T s5_Gain_Gain;                  /* Expression: [sqrt(Cov)]/[sqrt(Ts)]
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S5>/Gain
                                         */
  real_T s7_Internal_A[3];              /* Computed Parameter: A
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S7>/Internal
                                         */
  real_T s7_Internal_B;                 /* Computed Parameter: B
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S7>/Internal
                                         */
  real_T s7_Internal_C;                 /* Computed Parameter: C
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S7>/Internal
                                         */

  real_T s7_Internal_X0;                /* Computed Parameter: X0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S7>/Internal
                                         */
  real_T s4_Gain_Gain;                  /* Expression: 10
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S4>/Gain
                                         */
  real_T s4_Constant_Value;             /* Expression: 15
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S4>/Constant
                                         */
  real_T s4_Constant1_Value;            /* Expression: 30
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S4>/Constant1
                                         */
  real_T s4_Unit_Delay_Ts_0_1_X0;       /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S4>/Unit Delay Ts=0.1
                                         */
  real_T s3_Gain_Gain;                  /* Expression: 10
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S3>/Gain
                                         */
  real_T s3_Constant_Value;             /* Expression: 45
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S3>/Constant
                                         */
  real_T s3_Constant1_Value;            /* Expression: 60
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S3>/Constant1
                                         */
  real_T s3_Unit_Delay_Ts_0_1_X0;       /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S3>/Unit Delay Ts=0.1

⌨️ 快捷键说明

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