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

📄 exm09322_1_4_acc_common.h

📁 精通matlab
💻 H
字号:
/*
 * exm09322_1_4_acc_common.h
 *
 * Real-Time Workshop code generation for Simulink model "exm09322_1_4_acc.mdl".
 *
 * Model Version                        : 1.2
 * Real-Time Workshop file version      : 4.0 $Date: 2000/09/19 19:45:27 $
 * Real-Time Workshop file generated on : Sat Aug 11 16:25:43 2001
 * TLC version                          : 4.0 (Aug 21 2000)
 * C source code generated on           : Sat Aug 11 16:25:43 2001
 *
 * Relevant TLC Options:
 *   InlineParameters      = 0
 *   RollThreshold         = 5
 *   CodeFormat            = S-Function
 *
 * Simulink model settings:
 *   Solver     : VariableStep
 *   StartTime  : 0.0 s
 *   StopTime   : 100.0 s
 *   Variable step solver used
 */

#ifndef _RTW_COMMON_HEADER_FILE_exm09322_1_4_acc_
#define _RTW_COMMON_HEADER_FILE_exm09322_1_4_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 exm09322_1_4_BlockIO_tag {
  real_T root_x_c;                      /* <Root>/Int1 */
  real_T root_Max_Brake;                /* <Root>/Max Brake */
  real_T root_Max_Thrust;               /* <Root>/Max Thrust */
  real_T s1_Slider_Gain;                /* <S1>/Slider Gain */
  real_T root_Fc;                       /* <Root>/Ke */
  real_T root_UpLim;                    /* <Root>/UpLim */
  real_T root_x_a;                      /* <Root>/InvMass */
} exm09322_1_4_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 exm09322_1_4_Parameters_tag {
  real_T root_Int1_IC;                  /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Int1
                                         */
  real_T root_Constant_Value;           /* Expression: 1
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Constant
                                         */
  real_T root_Int2_IC;                  /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Int2
                                         */
  real_T root_Max_Brake_Value;          /* Expression: -2000
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Max Brake
                                         */
  real_T root_Max_Thrust_Value;         /* Expression: 1000
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Max Thrust
                                         */
  real_T s1_Slider_Gain_Gain;           /* Variable: s1_Slider_Gain_Gain
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <S1>/Slider Gain
                                         */
  real_T root_Ke_Gain;                  /* Expression: 50
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Ke
                                         */
  real_T root_InvMass_Gain;             /* Expression: 0.01
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/InvMass
                                         */
} exm09322_1_4_Parameters;

/*
 * Continuous states Structure
 *
 * Note: Individual field names are derived from the block name.
 *
 */

typedef struct exm09322_1_4_ContinuousStates_tag {
  real_T root_Int1;
  real_T root_Int2;
} exm09322_1_4_ContinuousStates;

/*
 * State Derivatives Structure
 *
 * Note: Individual field names are derived from the block name.
 *
 */
typedef struct exm09322_1_4_StateDerivatives_tag {
  real_T root_Int1;
  real_T root_Int2;
} exm09322_1_4_StateDerivatives;

/*
 * Data Type Work (DWork) Structure
 *
 * Note: Individual field names are derived from Simulink's DWork record.
 *
 */

typedef struct exm09322_1_4_D_Work_tag {
  struct {
    void *LoggedData;
  } root_Scope_PWORK;
  int_T root_UpLim_MODE;
  int_T root_LowLim_MODE;
} exm09322_1_4_D_Work;

/*
 * Nonsampled Zero-Crossings Structure
 *
 * Note: Individual field names are derived from the block name.
 *
 */

typedef struct exm09322_1_4_NonsampledZCs_tag {
  real_T root_UpLim;
  real_T root_LowLim;
} exm09322_1_4_NonsampledZCs;

#endif                                  /* _RTW_COMMON_HEADER_FILE_exm09322_1_4_acc_ */

/* [EOF] exm09322_1_4_acc_COMMON.h */

⌨️ 快捷键说明

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