?? exm09222_2_acc.c
字號:
#if 0
This file is not available for use in any application other than as a
Matlab(R) MEX file for use with the Simulink(R) Accelerator product.
If you do not have the Real-Time Workshop licensed, this file contains
encrypted block names, etc. If you purchase the Real-Time Workshop,
this file will contain full block descriptions and improved variable
names.
#endif
/*
* exm09222_2_acc.c
*
* Real-Time Workshop code generation for Simulink model "exm09222_2_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:23:59 2001
* TLC version : 4.0 (Aug 21 2000)
* C source code generated on : Sat Aug 11 16:23:59 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
*/
#include <math.h>
#include <string.h>
#include "exm09222_2_acc.h"
#include "exm09222_2_acc_prm.h"
/* Start of Functions in model "exm09222_2_acc" */
/* Compute block outputs */
static void mdlOutputs(SimStruct *S, int_T tid)
{
/* simstruct variables */
exm09222_2_BlockIO *exm09222_2_B = (exm09222_2_BlockIO *) _ssGetBlockIO(S);
exm09222_2_Parameters *exm09222_2_P = (exm09222_2_Parameters *) ssGetDefaultParam(S);
/* local block i/o variables */
real_T rtb_Constant[3];
real_T rtb_Constant1;
/* Constant Block: <Root>/Constant */
rtb_Constant[0] = (exm09222_2_P->Constant_Value[0]);
rtb_Constant[1] = (exm09222_2_P->Constant_Value[1]);
rtb_Constant[2] = (exm09222_2_P->Constant_Value[2]);
/* Constant Block: <Root>/Constant1 */
rtb_Constant1 = (exm09222_2_P->Constant1_Value);
/* Sum Block: <Root>/Sum */
exm09222_2_B->Sum[0] = rtb_Constant[0] + rtb_Constant1;
exm09222_2_B->Sum[1] = rtb_Constant[1] + rtb_Constant1;
exm09222_2_B->Sum[2] = rtb_Constant[2] + rtb_Constant1;
/* Display Block: <Root>/Display */
/* Call into Simulink for Display */
ssCallAccelRunBlock(S, 0, 3, SS_CALL_MDL_OUTPUTS);
}
/* Perform model update */
#define MDL_UPDATE
static void mdlUpdate(SimStruct *S, int_T tid)
{
/* (no update code required) */
}
/* End of Functions in model "exm09222_2_acc" */
#include "exm09222_2_acc_reg.h"
/* [EOF] exm09222_2_acc.c */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -