/* * 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; /* '/in1' */ real_T y; /* '/in2' */ real_T z; /* '/out1' */ /* Model step function */ void test1_step(void) { /* Outport: '/out1' incorporates: * Inport: '/in1' * Inport: '/in2' * MATLAB Function: '/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] */