58 lines
1.2 KiB
C
58 lines
1.2 KiB
C
/*
|
|
* File: test1.c
|
|
*
|
|
* Code generated for Simulink model 'test1'.
|
|
*
|
|
* Model version : 1.12
|
|
* Simulink Coder version : 9.8 (R2022b) 13-May-2022
|
|
* C/C++ source code generated on : Mon Jan 29 10:36:35 2024
|
|
*
|
|
* Target selection: ert.tlc
|
|
* Embedded hardware selection: Intel->x86-64 (Windows64)
|
|
* Code generation objectives: Unspecified
|
|
* Validation result: Not run
|
|
*/
|
|
|
|
#include "test1.h"
|
|
#include "rtwtypes.h"
|
|
|
|
/* Real-time model */
|
|
static RT_MODEL rtM_;
|
|
RT_MODEL *const rtM = &rtM_;
|
|
|
|
/* Exported data definition */
|
|
|
|
/* Definition for custom storage class: Global */
|
|
real_T x; /* '<Root>/in1' */
|
|
real_T y; /* '<Root>/in2' */
|
|
real_T z; /* '<Root>/out1' */
|
|
|
|
/* Model step function */
|
|
void test1_step(void)
|
|
{
|
|
/* Outport: '<Root>/out1' incorporates:
|
|
* Inport: '<Root>/in1'
|
|
* Inport: '<Root>/in2'
|
|
* MATLAB Function: '<Root>/fcn'
|
|
*/
|
|
z = x + y;
|
|
}
|
|
|
|
/* Model initialize function */
|
|
void test1_initialize(void)
|
|
{
|
|
/* (no initialization code required) */
|
|
}
|
|
|
|
/* Model terminate function */
|
|
void test1_terminate(void)
|
|
{
|
|
/* (no terminate code required) */
|
|
}
|
|
|
|
/*
|
|
* File trailer for generated code.
|
|
*
|
|
* [EOF]
|
|
*/
|