var dataJson = {"arch":{"ispc":true,"isunix":false,"ismac":false},"build":"test1","ref":false,"files":[{"name":"ert_main.c","type":"source","group":"main","path":"F:\\desktop\\EMS(能量管理系统)\\simulink\\test1_ert_rtw","tag":"","groupDisplay":"主文件","code":"/*\r\n * File: ert_main.c\r\n *\r\n * Code generated for Simulink model 'test1'.\r\n *\r\n * Model version : 1.12\r\n * Simulink Coder version : 9.8 (R2022b) 13-May-2022\r\n * C/C++ source code generated on : Mon Jan 29 10:36:35 2024\r\n *\r\n * Target selection: ert.tlc\r\n * Embedded hardware selection: Intel->x86-64 (Windows64)\r\n * Code generation objectives: Unspecified\r\n * Validation result: Not run\r\n */\r\n\r\n#include \r\n#include /* This example main program uses printf/fflush */\r\n#include \"test1.h\" /* Model header file */\r\n\r\n/*\r\n * Associating rt_OneStep with a real-time clock or interrupt service routine\r\n * is what makes the generated code \"real-time\". The function rt_OneStep is\r\n * always associated with the base rate of the model. Subrates are managed\r\n * by the base rate from inside the generated code. Enabling/disabling\r\n * interrupts and floating point context switches are target specific. This\r\n * example code indicates where these should take place relative to executing\r\n * the generated code step function. Overrun behavior should be tailored to\r\n * your application needs. This example simply sets an error status in the\r\n * real-time model and returns from rt_OneStep.\r\n */\r\nvoid rt_OneStep(void);\r\nvoid rt_OneStep(void)\r\n{\r\n static boolean_T OverrunFlag = false;\r\n\r\n /* Disable interrupts here */\r\n\r\n /* Check for overrun */\r\n if (OverrunFlag) {\r\n rtmSetErrorStatus(rtM, \"Overrun\");\r\n return;\r\n }\r\n\r\n OverrunFlag = true;\r\n\r\n /* Save FPU context here (if necessary) */\r\n /* Re-enable timer or interrupt here */\r\n /* Set model inputs here */\r\n\r\n /* Step the model */\r\n test1_step();\r\n\r\n /* Get model outputs here */\r\n\r\n /* Indicate task complete */\r\n OverrunFlag = false;\r\n\r\n /* Disable interrupts here */\r\n /* Restore FPU context here (if necessary) */\r\n /* Enable interrupts here */\r\n}\r\n\r\n/*\r\n * The example main function illustrates what is required by your\r\n * application code to initialize, execute, and terminate the generated code.\r\n * Attaching rt_OneStep to a real-time clock is target specific. This example\r\n * illustrates how you do this relative to initializing the model.\r\n */\r\nint_T main(int_T argc, const char *argv[])\r\n{\r\n /* Unused arguments */\r\n (void)(argc);\r\n (void)(argv);\r\n\r\n /* Initialize model */\r\n test1_initialize();\r\n\r\n /* Attach rt_OneStep to a timer or interrupt service routine with\r\n * period 0.01 seconds (base rate of the model) here.\r\n * The call syntax for rt_OneStep is\r\n *\r\n * rt_OneStep();\r\n */\r\n printf(\"Warning: The simulation will run forever. \"\r\n \"Generated ERT main won't simulate model step behavior. \"\r\n \"To change this behavior select the 'MAT-file logging' option.\\n\");\r\n fflush((NULL));\r\n while (rtmGetErrorStatus(rtM) == (NULL)) {\r\n /* Perform application tasks here */\r\n }\r\n\r\n /* Terminate model */\r\n test1_terminate();\r\n return 0;\r\n}\r\n\r\n/*\r\n * File trailer for generated code.\r\n *\r\n * [EOF]\r\n */\r\n"},{"name":"test1.c","type":"source","group":"model","path":"F:\\desktop\\EMS(能量管理系统)\\simulink\\test1_ert_rtw","tag":"","groupDisplay":"模型文件","code":"/*\r\n * File: test1.c\r\n *\r\n * Code generated for Simulink model 'test1'.\r\n *\r\n * Model version : 1.12\r\n * Simulink Coder version : 9.8 (R2022b) 13-May-2022\r\n * C/C++ source code generated on : Mon Jan 29 10:36:35 2024\r\n *\r\n * Target selection: ert.tlc\r\n * Embedded hardware selection: Intel->x86-64 (Windows64)\r\n * Code generation objectives: Unspecified\r\n * Validation result: Not run\r\n */\r\n\r\n#include \"test1.h\"\r\n#include \"rtwtypes.h\"\r\n\r\n/* Real-time model */\r\nstatic RT_MODEL rtM_;\r\nRT_MODEL *const rtM = &rtM_;\r\n\r\n/* Exported data definition */\r\n\r\n/* Definition for custom storage class: Global */\r\nreal_T x; /* '/in1' */\r\nreal_T y; /* '/in2' */\r\nreal_T z; /* '/out1' */\r\n\r\n/* Model step function */\r\nvoid test1_step(void)\r\n{\r\n /* Outport: '/out1' incorporates:\r\n * Inport: '/in1'\r\n * Inport: '/in2'\r\n * MATLAB Function: '/fcn'\r\n */\r\n z = x + y;\r\n}\r\n\r\n/* Model initialize function */\r\nvoid test1_initialize(void)\r\n{\r\n /* (no initialization code required) */\r\n}\r\n\r\n/* Model terminate function */\r\nvoid test1_terminate(void)\r\n{\r\n /* (no terminate code required) */\r\n}\r\n\r\n/*\r\n * File trailer for generated code.\r\n *\r\n * [EOF]\r\n */\r\n"},{"name":"test1.h","type":"header","group":"model","path":"F:\\desktop\\EMS(能量管理系统)\\simulink\\test1_ert_rtw","tag":"","groupDisplay":"模型文件","code":"/*\r\n * File: test1.h\r\n *\r\n * Code generated for Simulink model 'test1'.\r\n *\r\n * Model version : 1.12\r\n * Simulink Coder version : 9.8 (R2022b) 13-May-2022\r\n * C/C++ source code generated on : Mon Jan 29 10:36:35 2024\r\n *\r\n * Target selection: ert.tlc\r\n * Embedded hardware selection: Intel->x86-64 (Windows64)\r\n * Code generation objectives: Unspecified\r\n * Validation result: Not run\r\n */\r\n\r\n#ifndef RTW_HEADER_test1_h_\r\n#define RTW_HEADER_test1_h_\r\n#ifndef test1_COMMON_INCLUDES_\r\n#define test1_COMMON_INCLUDES_\r\n#include \"rtwtypes.h\"\r\n#endif /* test1_COMMON_INCLUDES_ */\r\n\r\n#include \"test1_types.h\"\r\n\r\n/* Macros for accessing real-time model data structure */\r\n#ifndef rtmGetErrorStatus\r\n#define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)\r\n#endif\r\n\r\n#ifndef rtmSetErrorStatus\r\n#define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))\r\n#endif\r\n\r\n/* Real-time Model Data Structure */\r\nstruct tag_RTM {\r\n const char_T * volatile errorStatus;\r\n};\r\n\r\n/* Model entry point functions */\r\nextern void test1_initialize(void);\r\nextern void test1_step(void);\r\nextern void test1_terminate(void);\r\n\r\n/* Real-time Model object */\r\nextern RT_MODEL *const rtM;\r\n\r\n/* Exported data declaration */\r\n\r\n/* Declaration for custom storage class: Global */\r\nextern real_T x; /* '/in1' */\r\nextern real_T y; /* '/in2' */\r\nextern real_T z; /* '/out1' */\r\n\r\n/*-\r\n * The generated code includes comments that allow you to trace directly\r\n * back to the appropriate location in the model. The basic format\r\n * is /block_name, where system is the system number (uniquely\r\n * assigned by Simulink) and block_name is the name of the block.\r\n *\r\n * Use the MATLAB hilite_system command to trace the generated code back\r\n * to the model. For example,\r\n *\r\n * hilite_system('') - opens system 3\r\n * hilite_system('/Kp') - opens and selects block Kp which resides in S3\r\n *\r\n * Here is the system hierarchy for this model\r\n *\r\n * '' : 'test1'\r\n * '' : 'test1/fcn'\r\n */\r\n#endif /* RTW_HEADER_test1_h_ */\r\n\r\n/*\r\n * File trailer for generated code.\r\n *\r\n * [EOF]\r\n */\r\n"},{"name":"test1_private.h","type":"header","group":"model","path":"F:\\desktop\\EMS(能量管理系统)\\simulink\\test1_ert_rtw","tag":"","groupDisplay":"模型文件","code":"/*\r\n * File: test1_private.h\r\n *\r\n * Code generated for Simulink model 'test1'.\r\n *\r\n * Model version : 1.12\r\n * Simulink Coder version : 9.8 (R2022b) 13-May-2022\r\n * C/C++ source code generated on : Mon Jan 29 10:36:35 2024\r\n *\r\n * Target selection: ert.tlc\r\n * Embedded hardware selection: Intel->x86-64 (Windows64)\r\n * Code generation objectives: Unspecified\r\n * Validation result: Not run\r\n */\r\n\r\n#ifndef RTW_HEADER_test1_private_h_\r\n#define RTW_HEADER_test1_private_h_\r\n#include \"rtwtypes.h\"\r\n#include \"test1_types.h\"\r\n#endif /* RTW_HEADER_test1_private_h_ */\r\n\r\n/*\r\n * File trailer for generated code.\r\n *\r\n * [EOF]\r\n */\r\n"},{"name":"test1_types.h","type":"header","group":"model","path":"F:\\desktop\\EMS(能量管理系统)\\simulink\\test1_ert_rtw","tag":"","groupDisplay":"模型文件","code":"/*\r\n * File: test1_types.h\r\n *\r\n * Code generated for Simulink model 'test1'.\r\n *\r\n * Model version : 1.12\r\n * Simulink Coder version : 9.8 (R2022b) 13-May-2022\r\n * C/C++ source code generated on : Mon Jan 29 10:36:35 2024\r\n *\r\n * Target selection: ert.tlc\r\n * Embedded hardware selection: Intel->x86-64 (Windows64)\r\n * Code generation objectives: Unspecified\r\n * Validation result: Not run\r\n */\r\n\r\n#ifndef RTW_HEADER_test1_types_h_\r\n#define RTW_HEADER_test1_types_h_\r\n\r\n/* Forward declaration for rtModel */\r\ntypedef struct tag_RTM RT_MODEL;\r\n\r\n#endif /* RTW_HEADER_test1_types_h_ */\r\n\r\n/*\r\n * File trailer for generated code.\r\n *\r\n * [EOF]\r\n */\r\n"},{"name":"rtwtypes.h","type":"header","group":"utility","path":"F:\\desktop\\EMS(能量管理系统)\\simulink\\test1_ert_rtw","tag":"","groupDisplay":"实用工具文件","code":"/*\r\n * File: rtwtypes.h\r\n *\r\n * Code generated for Simulink model 'test1'.\r\n *\r\n * Model version : 1.12\r\n * Simulink Coder version : 9.8 (R2022b) 13-May-2022\r\n * C/C++ source code generated on : Mon Jan 29 10:36:35 2024\r\n *\r\n * Target selection: ert.tlc\r\n * Embedded hardware selection: Intel->x86-64 (Windows64)\r\n * Code generation objectives: Unspecified\r\n * Validation result: Not run\r\n */\r\n\r\n#ifndef RTWTYPES_H\r\n#define RTWTYPES_H\r\n\r\n/* Logical type definitions */\r\n#if (!defined(__cplusplus))\r\n#ifndef false\r\n#define false (0U)\r\n#endif\r\n\r\n#ifndef true\r\n#define true (1U)\r\n#endif\r\n#endif\r\n\r\n/*=======================================================================*\r\n * Target hardware information\r\n * Device type: Intel->x86-64 (Windows64)\r\n * Number of bits: char: 8 short: 16 int: 32\r\n * long: 32\r\n * native word size: 64\r\n * Byte ordering: LittleEndian\r\n * Signed integer division rounds to: Zero\r\n * Shift right on a signed integer as arithmetic shift: on\r\n *=======================================================================*/\r\n\r\n/*=======================================================================*\r\n * Fixed width word size data types: *\r\n * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *\r\n * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *\r\n * real32_T, real64_T - 32 and 64 bit floating point numbers *\r\n *=======================================================================*/\r\ntypedef signed char int8_T;\r\ntypedef unsigned char uint8_T;\r\ntypedef short int16_T;\r\ntypedef unsigned short uint16_T;\r\ntypedef int int32_T;\r\ntypedef unsigned int uint32_T;\r\ntypedef float real32_T;\r\ntypedef double real64_T;\r\n\r\n/*===========================================================================*\r\n * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, *\r\n * real_T, time_T, ulong_T. *\r\n *===========================================================================*/\r\ntypedef double real_T;\r\ntypedef double time_T;\r\ntypedef unsigned char boolean_T;\r\ntypedef int int_T;\r\ntypedef unsigned int uint_T;\r\ntypedef unsigned long ulong_T;\r\ntypedef char char_T;\r\ntypedef unsigned char uchar_T;\r\ntypedef char_T byte_T;\r\n\r\n/*===========================================================================*\r\n * Complex number type definitions *\r\n *===========================================================================*/\r\n#define CREAL_T\r\n\r\ntypedef struct {\r\n real32_T re;\r\n real32_T im;\r\n} creal32_T;\r\n\r\ntypedef struct {\r\n real64_T re;\r\n real64_T im;\r\n} creal64_T;\r\n\r\ntypedef struct {\r\n real_T re;\r\n real_T im;\r\n} creal_T;\r\n\r\n#define CINT8_T\r\n\r\ntypedef struct {\r\n int8_T re;\r\n int8_T im;\r\n} cint8_T;\r\n\r\n#define CUINT8_T\r\n\r\ntypedef struct {\r\n uint8_T re;\r\n uint8_T im;\r\n} cuint8_T;\r\n\r\n#define CINT16_T\r\n\r\ntypedef struct {\r\n int16_T re;\r\n int16_T im;\r\n} cint16_T;\r\n\r\n#define CUINT16_T\r\n\r\ntypedef struct {\r\n uint16_T re;\r\n uint16_T im;\r\n} cuint16_T;\r\n\r\n#define CINT32_T\r\n\r\ntypedef struct {\r\n int32_T re;\r\n int32_T im;\r\n} cint32_T;\r\n\r\n#define CUINT32_T\r\n\r\ntypedef struct {\r\n uint32_T re;\r\n uint32_T im;\r\n} cuint32_T;\r\n\r\n/*=======================================================================*\r\n * Min and Max: *\r\n * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *\r\n * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *\r\n *=======================================================================*/\r\n#define MAX_int8_T ((int8_T)(127))\r\n#define MIN_int8_T ((int8_T)(-128))\r\n#define MAX_uint8_T ((uint8_T)(255U))\r\n#define MAX_int16_T ((int16_T)(32767))\r\n#define MIN_int16_T ((int16_T)(-32768))\r\n#define MAX_uint16_T ((uint16_T)(65535U))\r\n#define MAX_int32_T ((int32_T)(2147483647))\r\n#define MIN_int32_T ((int32_T)(-2147483647-1))\r\n#define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))\r\n\r\n/* Block D-Work pointer type */\r\ntypedef void * pointer_T;\r\n\r\n#endif /* RTWTYPES_H */\r\n\r\n/*\r\n * File trailer for generated code.\r\n *\r\n * [EOF]\r\n */\r\n"}],"coverage":[{"id":"SimulinkCoverage","name":"Simulink Coverage","files":[]},{"id":"Bullseye","name":"Bullseye Coverage","files":[]},{"id":"LDRA","name":"LDRA Testbed","files":[]}],"features":{"annotation":false,"coverage":true,"profiling":true,"tooltip":true,"coverageTooltip":false,"showJustificationLinks":false,"showProfilingInfo":false,"showTaskSummary":false}};