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

📄 exm09222_1_acc_common.h

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

#ifndef _RTW_COMMON_HEADER_FILE_exm09222_1_acc_
#define _RTW_COMMON_HEADER_FILE_exm09222_1_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 <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 exm09222_1_BlockIO_tag {
  real_T w_t;                           /* <Root>/Signal Generator */
  real_T s_t;                           /* <Root>/Sine Wave */
} exm09222_1_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 exm09222_1_Parameters_tag {
  real_T Signal_Generator_Amplitude;    /* Expression: 1
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Signal Generator
                                         */
  real_T Signal_Generator_Frequency;    /* Computed Parameter: Frequency
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Signal Generator
                                         */
  real_T Sine_Wave_Amp;                 /* Expression: 1
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Sine Wave
                                         */
  real_T Sine_Wave_Freq;                /* Expression: 1
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Sine Wave
                                         */
  real_T Sine_Wave_Phase;               /* Expression: 0
                                         * External Mode Tunable: yes
                                         * Referenced by block:
                                         * <Root>/Sine Wave
                                         */
} exm09222_1_Parameters;

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

typedef struct exm09222_1_D_Work_tag {
  struct {
    void *LoggedData;
  } Scope_PWORK;
} exm09222_1_D_Work;

#endif                                  /* _RTW_COMMON_HEADER_FILE_exm09222_1_acc_ */

/* [EOF] exm09222_1_acc_COMMON.h */

⌨️ 快捷键说明

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