1//
2// Trial License - for use to evaluate programs for possible purchase as
3// an end-user only.
4//
5// File: ImportTest.cpp
6//
7// Code generated for Simulink model 'ImportTest'.
8//
9// Model version : 1.2
10// Simulink Coder version : 8.13 (R2017b) 24-Jul-2017
11// C/C++ source code generated on : Wed Jun 27 14:38:01 2018
12//
13// Target selection: ert.tlc
14// Embedded hardware selection: Intel->x86-64 (Windows64)
15// Code generation objectives: Unspecified
16// Validation result: Not run
17//
18#include "ImportTest.h"
19#include "ImportTest_private.h"
20
21// External inputs (root inport signals with auto storage)
22ExternalInputs ImportTest_U;
23
24// External outputs (root outports fed by signals with auto storage)
25ExternalOutputs ImportTest_Y;
26
27// Real-time model
28RT_MODEL ImportTest_M_;
29RT_MODEL *const ImportTest_M = &ImportTest_M_;
30
31// Model step function
32void ImportTest_step(void)
33{
34 // Outport: '<Root>/Out1' incorporates:
35 // Gain: '<Root>/Gain'
36 // Inport: '<Root>/In1'
37
38 ImportTest_Y.Out1 = 3.0 * ImportTest_U.In1;
39}
40
41// Model initialize function
42void ImportTest_initialize(void)
43{
44 // Registration code
45
46 // initialize error status
47 rtmSetErrorStatus(ImportTest_M, (NULL));
48
49 // external inputs
50 ImportTest_U.In1 = 0.0;
51
52 // external outputs
53 ImportTest_Y.Out1 = 0.0;
54}
55
56// Model terminate function
57void ImportTest_terminate(void)
58{
59 // (no terminate code required)
60}
61
62//
63// File trailer for generated code.
64//
65// [EOF]
66//
67