Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
regression-suites
Commits
84bb6d68
Commit
84bb6d68
authored
Mar 18, 2017
by
Thanassis Tsiodras
Browse files
Added Demo_ABB
parent
d2f7b19f
Changes
82
Expand all
Hide whitespace changes
Inline
Side-by-side
Demo_ABB/lift_model/Operate_lift.c
0 → 100644
View file @
84bb6d68
This diff is collapsed.
Click to expand it.
Demo_ABB/lift_model/Operate_lift.h
0 → 100644
View file @
84bb6d68
This diff is collapsed.
Click to expand it.
Demo_ABB/lift_model/Operate_lift.mdl
0 → 100644
View file @
84bb6d68
This diff is collapsed.
Click to expand it.
Demo_ABB/lift_model/Operate_lift_data.c
0 → 100644
View file @
84bb6d68
/*
* File: Operate_lift_data.c
*
* Real-Time Workshop code generated for Simulink model Operate_lift.
*
* Model version : 1.7
* Real-Time Workshop file version : 7.4 (R2009b) 29-Jun-2009
* Real-Time Workshop file generated on : Wed Jun 29 09:22:33 2011
* TLC version : 7.4 (Jul 14 2009)
* C/C++ source code generated on : Wed Jun 29 09:22:35 2011
*
* Target selection: ert.tlc
* Embedded hardware selection: 32-bit Generic
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#include
"Operate_lift.h"
#include
"Operate_lift_private.h"
/* Block parameters (auto storage) */
Parameters_Operate_lift
Operate_lift_P
=
{
70
.
0
,
/* Expression: 70
* Referenced by: '<S7>/Integrator1'
*/
60
.
0
,
/* Expression: 60
* Referenced by: '<S14>/Floor_5'
*/
1
.
0
,
/* Expression: 1
* Referenced by: '<S25>/Switch'
*/
50
.
0
,
/* Expression: 50
* Referenced by: '<S14>/Floor_4'
*/
1
.
0
,
/* Expression: 1
* Referenced by: '<S24>/Switch'
*/
40
.
0
,
/* Expression: 40
* Referenced by: '<S14>/Floor_3'
*/
1
.
0
,
/* Expression: 1
* Referenced by: '<S23>/Switch'
*/
30
.
0
,
/* Expression: 30
* Referenced by: '<S14>/Floor_2'
*/
1
.
0
,
/* Expression: 1
* Referenced by: '<S22>/Switch'
*/
20
.
0
,
/* Expression: 20
* Referenced by: '<S14>/Floor_1'
*/
1
.
0
,
/* Expression: 1
* Referenced by: '<S21>/Switch'
*/
10
.
0
,
/* Expression: 10
* Referenced by: '<S14>/Floor_0'
*/
1
.
0
,
/* Expression: 1
* Referenced by: '<S20>/Switch'
*/
100
.
0
,
/* Expression: 100
* Referenced by: '<S7>/m_cabin'
*/
100
.
0
,
/* Expression: 100
* Referenced by: '<S7>/m_load'
*/
0
.
0
,
/* Expression: 0
* Referenced by: '<S7>/Integrator'
*/
-
2
.
0
,
/* Expression: -2
* Referenced by: '<S7>/Dead Zone1'
*/
3
.
0
,
/* Expression: 3
* Referenced by: '<S7>/Dead Zone1'
*/
9
.
81
,
/* Expression: 9.81
* Referenced by: '<S7>/g'
*/
0
.
0
,
/* Expression: 0
* Referenced by: '<S10>/Integrator'
*/
1
.
2
,
/* Expression: 1.2
* Referenced by: '<S10>/K_t'
*/
2
.
0
,
/* Expression: 2
* Referenced by: '<S12>/i_gear'
*/
1
.
0
,
/* Expression: 1
* Referenced by: '<S12>/r_drum [m]'
*/
0
.
0
,
/* Expression: 0
* Referenced by: '<S7>/no brake'
*/
0
.
0
,
/* Expression: 0
* Referenced by: '<S7>/x<0'
*/
0
.
0
,
/* Expression: 0
* Referenced by: '<S7>/x>0'
*/
0
.
0
,
/* Expression: 0
* Referenced by: '<S7>/No end stop'
*/
200
.
0
,
/* Expression: 200
* Referenced by: '<S7>/Gain1'
*/
10000
.
0
,
/* Expression: 1e4
* Referenced by: '<S7>/Saturation1'
*/
-
10000
.
0
,
/* Expression: -1e4
* Referenced by: '<S7>/Saturation1'
*/
200
.
0
,
/* Expression: 200
* Referenced by: '<S2>/U_net'
*/
-
1
.
0
,
/* Expression: -1
* Referenced by: '<S8>/Sign'
*/
0
.
0
,
/* Expression: 0
* Referenced by: '<S13>/Off'
*/
2
.
0
,
/* Expression: 2
* Referenced by: '<S11>/i_gear'
*/
1
.
0
,
/* Expression: 1
* Referenced by: '<S11>/r_drum [m]'
*/
-
1
.
0
,
/* Expression: -1
* Referenced by: '<S11>/Sign'
*/
1
.
2
,
/* Expression: 1.2
* Referenced by: '<S10>/K_t1'
*/
1.0714285714285714E-001
,
/* Expression: 13.5/126
* Referenced by: '<S10>/R_m'
*/
100
.
0
,
/* Expression: 1/0.01
* Referenced by: '<S10>/1//L_m'
*/
1000
.
0
,
/* Expression: 1000
* Referenced by: '<S7>/Spring stiffness'
*/
1000
.
0
,
/* Expression: 1000
* Referenced by: '<S7>/Damping'
*/
1.0E+010
,
/* Expression: 1e10
* Referenced by: '<S7>/Gain'
*/
10000
.
0
,
/* Expression: 1e4
* Referenced by: '<S7>/Saturation'
*/
-
10000
.
0
,
/* Expression: -1e4
* Referenced by: '<S7>/Saturation'
*/
0
,
/* Computed Parameter: Memory_X0
* Referenced by: '<S18>/Memory'
*/
/* Computed Parameter: Logic_table
* Referenced by: '<S18>/Logic'
*/
{
0
,
1
,
0
,
0
,
1
,
1
,
0
,
0
,
1
,
0
,
1
,
1
,
0
,
0
,
0
,
0
},
0
,
/* Computed Parameter: Constant1_Value
* Referenced by: '<S25>/Constant1'
*/
1
,
/* Computed Parameter: Constant_Value
* Referenced by: '<S25>/Constant'
*/
0
,
/* Computed Parameter: Constant1_Value_d
* Referenced by: '<S24>/Constant1'
*/
1
,
/* Computed Parameter: Constant_Value_e
* Referenced by: '<S24>/Constant'
*/
0
,
/* Computed Parameter: Constant1_Value_o
* Referenced by: '<S23>/Constant1'
*/
1
,
/* Computed Parameter: Constant_Value_p
* Referenced by: '<S23>/Constant'
*/
0
,
/* Computed Parameter: Constant1_Value_h
* Referenced by: '<S22>/Constant1'
*/
1
,
/* Computed Parameter: Constant_Value_h
* Referenced by: '<S22>/Constant'
*/
0
,
/* Computed Parameter: Constant1_Value_a
* Referenced by: '<S21>/Constant1'
*/
1
,
/* Computed Parameter: Constant_Value_j
* Referenced by: '<S21>/Constant'
*/
0
,
/* Computed Parameter: Constant1_Value_g
* Referenced by: '<S20>/Constant1'
*/
1
,
/* Computed Parameter: Constant_Value_c
* Referenced by: '<S20>/Constant'
*/
0
,
/* Computed Parameter: Memory_X0_b
* Referenced by: '<S15>/Memory'
*/
/* Computed Parameter: Logic_table_h
* Referenced by: '<S15>/Logic'
*/
{
0
,
1
,
0
,
0
,
1
,
1
,
0
,
0
,
1
,
0
,
1
,
1
,
0
,
0
,
0
,
0
},
0
,
/* Computed Parameter: Memory_X0_f
* Referenced by: '<S16>/Memory'
*/
/* Computed Parameter: Logic_table_m
* Referenced by: '<S16>/Logic'
*/
{
0
,
1
,
0
,
0
,
1
,
1
,
0
,
0
,
1
,
0
,
1
,
1
,
0
,
0
,
0
,
0
},
0
,
/* Computed Parameter: Memory_X0_j
* Referenced by: '<S17>/Memory'
*/
/* Computed Parameter: Logic_table_d
* Referenced by: '<S17>/Logic'
*/
{
0
,
1
,
0
,
0
,
1
,
1
,
0
,
0
,
1
,
0
,
1
,
1
,
0
,
0
,
0
,
0
},
0
,
/* Computed Parameter: Memory_X0_d
* Referenced by: '<S19>/Memory'
*/
/* Computed Parameter: Logic_table_g
* Referenced by: '<S19>/Logic'
*/
{
0
,
1
,
0
,
0
,
1
,
1
,
0
,
0
,
1
,
0
,
1
,
1
,
0
,
0
,
0
,
0
}
};
/*
* File trailer for Real-Time Workshop generated code.
*
* [EOF]
*/
Demo_ABB/lift_model/Operate_lift_private.h
0 → 100644
View file @
84bb6d68
/*
* File: Operate_lift_private.h
*
* Real-Time Workshop code generated for Simulink model Operate_lift.
*
* Model version : 1.7
* Real-Time Workshop file version : 7.4 (R2009b) 29-Jun-2009
* Real-Time Workshop file generated on : Wed Jun 29 09:22:33 2011
* TLC version : 7.4 (Jul 14 2009)
* C/C++ source code generated on : Wed Jun 29 09:22:35 2011
*
* Target selection: ert.tlc
* Embedded hardware selection: 32-bit Generic
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#ifndef RTW_HEADER_Operate_lift_private_h_
#define RTW_HEADER_Operate_lift_private_h_
#include
"rtwtypes.h"
#define CALL_EVENT (-1)
/* Private macros used by the generated code to access rtModel */
#ifndef rtmIsMajorTimeStep
# define rtmIsMajorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP)
#endif
#ifndef rtmIsMinorTimeStep
# define rtmIsMinorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP)
#endif
#ifndef rtmGetTPtr
# define rtmGetTPtr(rtm) ((rtm)->Timing.t)
#endif
#ifndef rtmSetTPtr
# define rtmSetTPtr(rtm, val) ((rtm)->Timing.t = (val))
#endif
#ifndef __RTWTYPES_H__
#error This file requires rtwtypes.h to be included
#else
#ifdef TMWTYPES_PREVIOUSLY_INCLUDED
#error This file requires rtwtypes.h to be included before tmwtypes.h
#else
/* Check for inclusion of an incorrect version of rtwtypes.h */
#ifndef RTWTYPES_ID_C08S16I32L32N32F1
#error This code was generated with a different "rtwtypes.h" than the file included
#endif
/* RTWTYPES_ID_C08S16I32L32N32F1 */
#endif
/* TMWTYPES_PREVIOUSLY_INCLUDED */
#endif
/* __RTWTYPES_H__ */
/*
* UNUSED_PARAMETER(x)
* Used to specify that a function parameter (argument) is required but not
* accessed by the function body.
*/
#ifndef UNUSED_PARAMETER
# if defined(__LCC__)
# define UNUSED_PARAMETER(x)
/* do nothing */
# else
/*
* This is the semi-ANSI standard way of indicating that an
* unused function parameter is required.
*/
# define UNUSED_PARAMETER(x) (void) (x)
# endif
#endif
/* private model entry point functions */
extern
void
Operate_lift_derivatives
(
void
);
#endif
/* RTW_HEADER_Operate_lift_private_h_ */
/*
* File trailer for Real-Time Workshop generated code.
*
* [EOF]
*/
Demo_ABB/lift_model/Operate_lift_types.h
0 → 100644
View file @
84bb6d68
/*
* File: Operate_lift_types.h
*
* Real-Time Workshop code generated for Simulink model Operate_lift.
*
* Model version : 1.7
* Real-Time Workshop file version : 7.4 (R2009b) 29-Jun-2009
* Real-Time Workshop file generated on : Wed Jun 29 09:22:33 2011
* TLC version : 7.4 (Jul 14 2009)
* C/C++ source code generated on : Wed Jun 29 09:22:35 2011
*
* Target selection: ert.tlc
* Embedded hardware selection: 32-bit Generic
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#ifndef RTW_HEADER_Operate_lift_types_h_
#define RTW_HEADER_Operate_lift_types_h_
#include
"rtwtypes.h"
#ifndef _DEFINED_TYPEDEF_FOR_Lift_control_
#define _DEFINED_TYPEDEF_FOR_Lift_control_
typedef
struct
{
int32_T
direction
;
int32_T
motor
;
int32_T
brake
;
int32_T
door
;
}
Lift_control
;
#endif
#ifndef _DEFINED_TYPEDEF_FOR_Lift_sensor_
#define _DEFINED_TYPEDEF_FOR_Lift_sensor_
typedef
struct
{
boolean_T
door_open
;
boolean_T
door_closed
;
boolean_T
floor_detected
;
real_T
pos_x
;
}
Lift_sensor
;
#endif
/* Parameters (auto storage) */
typedef
struct
Parameters_Operate_lift_
Parameters_Operate_lift
;
/* Forward declaration for rtModel */
typedef
struct
RT_MODEL_Operate_lift
RT_MODEL_Operate_lift
;
#endif
/* RTW_HEADER_Operate_lift_types_h_ */
/*
* File trailer for Real-Time Workshop generated code.
*
* [EOF]
*/
Demo_ABB/lift_model/Simulink_DataView_asn.m
0 → 100644
View file @
84bb6d68
% Values for UpDown:
UpDown_value_up
=
1
;
UpDown_value_down
=
0
;
UpDown
=
Simulink
.
AliasType
;
UpDown
.
BaseType
=
'int32'
;
UpDown
.
Description
=
'values of ENUMERATED UpDown'
;
Flag
=
Simulink
.
AliasType
;
Flag
.
BaseType
=
'boolean'
;
Flag
.
Description
=
'A simple BOOLEAN'
;
% Values for Floors:
Floors_value_floor_0
=
10
;
Floors_value_floor_1
=
20
;
Floors_value_floor_2
=
30
;
Floors_value_floor_3
=
40
;
Floors_value_floor_4
=
50
;
Floors_value_floor_5
=
60
;
Floors
=
Simulink
.
AliasType
;
Floors
.
BaseType
=
'int32'
;
Floors
.
Description
=
'values of ENUMERATED Floors'
;
Cabin_button_elem01
=
Simulink
.
BusElement
;
Cabin_button_elem01
.
name
=
'choiceIdx'
;
Cabin_button_elem01
.
DataType
=
'uint8'
;
Cabin_button_elem01
.
dimensions
=
1
;
Cabin_button_elem02
=
Simulink
.
BusElement
;
Cabin_button_elem02
.
name
=
'emergency_stop'
;
Cabin_button_elem02
.
DataType
=
'boolean'
;
Cabin_button_elem02
.
dimensions
=
1
;
Cabin_button_elem03
=
Simulink
.
BusElement
;
Cabin_button_elem03
.
name
=
'floor'
;
Cabin_button_elem03
.
DataType
=
'int32'
;
Cabin_button_elem03
.
dimensions
=
1
;
Cabin_button
=
Simulink
.
Bus
;
Cabin_button
.
Elements
=
[
Cabin_button_elem01
Cabin_button_elem02
Cabin_button_elem03
];
% Values for OpenClose:
OpenClose_value_door_open
=
1
;
OpenClose_value_door_close
=
0
;
OpenClose
=
Simulink
.
AliasType
;
OpenClose
.
BaseType
=
'int32'
;
OpenClose
.
Description
=
'values of ENUMERATED OpenClose'
;
% Values for OnOff:
OnOff_value_on
=
1
;
OnOff_value_off
=
0
;
OnOff
=
Simulink
.
AliasType
;
OnOff
.
BaseType
=
'int32'
;
OnOff
.
Description
=
'values of ENUMERATED OnOff'
;
Lift_control_elem01
=
Simulink
.
BusElement
;
Lift_control_elem01
.
name
=
'direction'
;
Lift_control_elem01
.
DataType
=
'int32'
;
Lift_control_elem01
.
dimensions
=
1
;
Lift_control_elem02
=
Simulink
.
BusElement
;
Lift_control_elem02
.
name
=
'motor'
;
Lift_control_elem02
.
DataType
=
'int32'
;
Lift_control_elem02
.
dimensions
=
1
;
Lift_control_elem03
=
Simulink
.
BusElement
;
Lift_control_elem03
.
name
=
'brake'
;
Lift_control_elem03
.
DataType
=
'int32'
;
Lift_control_elem03
.
dimensions
=
1
;
Lift_control_elem04
=
Simulink
.
BusElement
;
Lift_control_elem04
.
name
=
'door'
;
Lift_control_elem04
.
DataType
=
'int32'
;
Lift_control_elem04
.
dimensions
=
1
;
Lift_control
=
Simulink
.
Bus
;
Lift_control
.
Elements
=
[
Lift_control_elem01
Lift_control_elem02
Lift_control_elem03
Lift_control_elem04
];
Start_condition_elem01
=
Simulink
.
BusElement
;
Start_condition_elem01
.
name
=
'choiceIdx'
;
Start_condition_elem01
.
DataType
=
'uint8'
;
Start_condition_elem01
.
dimensions
=
1
;
Start_condition_elem02
=
Simulink
.
BusElement
;
Start_condition_elem02
.
name
=
'forever'
;
Start_condition_elem02
.
DataType
=
'boolean'
;
Start_condition_elem02
.
dimensions
=
1
;
Start_condition_elem03
=
Simulink
.
BusElement
;
Start_condition_elem03
.
name
=
'nb_of_cycle'
;
Start_condition_elem03
.
DataType
=
'uint8'
;
Start_condition_elem03
.
dimensions
=
1
;
Start_condition
=
Simulink
.
Bus
;
Start_condition
.
Elements
=
[
Start_condition_elem01
Start_condition_elem02
Start_condition_elem03
];
Position
=
Simulink
.
AliasType
;
Position
.
BaseType
=
'double'
;
Position
.
Description
=
'range is [0.0, 100.0]'
;
Lift_sensor_elem01
=
Simulink
.
BusElement
;
Lift_sensor_elem01
.
name
=
'door_open'
;
Lift_sensor_elem01
.
DataType
=
'boolean'
;
Lift_sensor_elem01
.
dimensions
=
1
;
Lift_sensor_elem02
=
Simulink
.
BusElement
;
Lift_sensor_elem02
.
name
=
'door_closed'
;
Lift_sensor_elem02
.
DataType
=
'boolean'
;
Lift_sensor_elem02
.
dimensions
=
1
;
Lift_sensor_elem03
=
Simulink
.
BusElement
;
Lift_sensor_elem03
.
name
=
'floor_detected'
;
Lift_sensor_elem03
.
DataType
=
'boolean'
;
Lift_sensor_elem03
.
dimensions
=
1
;
Lift_sensor_elem04
=
Simulink
.
BusElement
;
Lift_sensor_elem04
.
name
=
'pos_x'
;
Lift_sensor_elem04
.
DataType
=
'double'
;
Lift_sensor_elem04
.
dimensions
=
1
;
Lift_sensor
=
Simulink
.
Bus
;
Lift_sensor
.
Elements
=
[
Lift_sensor_elem01
Lift_sensor_elem02
Lift_sensor_elem03
Lift_sensor_elem04
];
Floor_button_elem01
=
Simulink
.
BusElement
;
Floor_button_elem01
.
name
=
'floor'
;
Floor_button_elem01
.
DataType
=
'int32'
;
Floor_button_elem01
.
dimensions
=
1
;
Floor_button_elem02
=
Simulink
.
BusElement
;
Floor_button_elem02
.
name
=
'direction'
;
Floor_button_elem02
.
DataType
=
'int32'
;
Floor_button_elem02
.
dimensions
=
1
;
Floor_button
=
Simulink
.
Bus
;
Floor_button
.
Elements
=
[
Floor_button_elem01
Floor_button_elem02
];
Demo_ABB/lift_model/bio_sig.h
0 → 100644
View file @
84bb6d68
/*
* Copyright 1994-2002 The MathWorks, Inc.
*
* File: bio_sig.h $Revision: 1.10 $
*
* Abstract:
* typedef for BlockIOSignals, included by *rt_main.c and MODEL.bio
*/
#ifndef _BIO_SIG_H_
# define _BIO_SIG_H_
typedef
struct
BlockIOSignals_tag
{
char_T
*
blockName
;
/* Block's full path name (RTW mangled version) */
char_T
*
signalName
;
/* Signal label (unmangled, or NULL if not present) */
uint_T
portNumber
;
/* Block output port number (starting at 0) */
uint_T
signalWidth
;
/* Signal's width */
void
*
signalAddr
;
/* Signal's Address in the block I/O vector */
char_T
*
dtName
;
/* The C-language data type name */
uint_T
dtSize
;
/* The size in # of bytes for the data type */
}
BlockIOSignals
;
#endif
Demo_ABB/lift_model/blas.h
0 → 100644
View file @
84bb6d68
This diff is collapsed.
Click to expand it.
Demo_ABB/lift_model/blascompat32.h
0 → 100644
View file @
84bb6d68
/*
* @(#)blascompat32.h generated by: makeheader 5.1.5 Mon Jun 29 16:01:27 2009
*
* built from: ../../src/include/copyright.h
* ../../src/include/pragma_interface.h
* include/blascompat32/blascompat32.h
*/
#if defined(_MSC_VER)
# pragma once
#endif
#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
#endif
#ifndef blascompat32_h
#define blascompat32_h
/*
* Copyright 1984-2003 The MathWorks, Inc.
* All Rights Reserved.
*/
/* Copyright 2003-2006 The MathWorks, Inc. */
/* Only define EXTERN_C if it hasn't been defined already. This allows
* individual modules to have more control over managing their exports.
*/
#ifndef EXTERN_C
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif
#endif
/*
* CONFIDENTIAL AND CONTAINING PROPRIETARY TRADE SECRETS
* Copyright 1984-2009 The MathWorks, Inc.
* The source code contained in this listing contains proprietary and
* confidential trade secrets of The MathWorks, Inc. The use, modification,
* or development of derivative work based on the code or ideas obtained
* from the code is prohibited without the express written permission of The
* MathWorks, Inc. The disclosure of this code to any party not authorized
* by The MathWorks, Inc. is strictly forbidden.
* CONFIDENTIAL AND CONTAINING PROPRIETARY TRADE SECRETS
*/
/*
32-bit API wrapper for libmwblas
WARNING: This module is a temporary module specifically designed to
bridge the incompatiblity between Embedded MATLAB (which lacks
a 64-bit integer type) and 64-bit BLAS only.
Do not link to this module otherwise.
Link to libmwblas instead.