connection arena excel - cours
TRANSCRIPT
SYS826 35
SYS826– Introduction à la simulation Page 69
Fichiers Externes (Lecture/Écriture)
Paramètres Exécution Résultats
SYS826– Introduction à la simulation Page 70
Lecture/Écriture – Élément FILES
L’élément FILES définit les caractéristiques des fichiers externes.
SYS826 36
SYS826– Introduction à la simulation Page 71
Élément FILES
Operand
Number — File number
Identifier — File name used for identification on READ and WRITE blocks, VARIABLES elements, Variable modules, EXPRESSIONS elements, and Expression modules
System Name — Operating system file name enclosed in double quotes, or the connection string that opens an ADO connection to the data source in double quotes
Access Type — File type
Structure — File structure. If you use Format, specify the exact FORTRAN-style format or C-style format, which must be 255 characters or fewer.
End of File Action
Comment Character — Character indicating comment record
Initialize Option — Action to be taken at beginning of each simulation replication for sequential files
SYS826– Introduction à la simulation Page 72
Élément FILES (Recordset)
Operand
Recordset Name — Name used to identify the recordset in READ or WRITE blocks, VARIABLES elements, Variable modules, EXPRESSIONS elements, and Expression modules
Recordset CommandText — Text of the command that will be used to open the recordset
Recordset CommandType — Type of command entered in the Recordset CommandText
Les Recordsets dans Arena doivent correspondent aux Plages EXCEL
SYS826 37
SYS826– Introduction à la simulation Page 73
Plage de données – EXCEL 2003
SYS826– Introduction à la simulation Page 74
Plage de données – EXCEL 2010
SYS826 38
SYS826– Introduction à la simulation Page 75
Lecture/Écriture – ARENA & EXCEL
SYS826– Introduction à la simulation Page 76
Élément VARIABLE (Direct Read)
Operand
Linked File— Name of the file from which to read the variable's value or values. You can use any file access type supported by Arena except sequential text files and Lotus spreadsheet (.wks) files.
Linked Recordset— Name of the recordset in the specified linked file from which to read values. This field is available only if you specify a Linked File. Arena uses the 1-D Array Index and 2-D Array
Index properties to determine the amount and position of data to read from the recordset. A recordset is required for all file types except .xml. The recordset size must be equal to or greater than the ranges of the arrays specified for the variable.
File Read Time— Specifies when to read the values from the file into the variable. If you select PreCheck, the values for the variable are read while the model is still in Edit mode, before checking and compiling the model. If you select BeginSimulation, values are read when the model is compiled, prior to the first replication. If you select BeginReplication, values are read prior to each replication.
SYS826 39
SYS826– Introduction à la simulation Page 77
Block WRITE
Operand
File ID—File to be written to
Format—Format to use in interpreting data
Record Number—Record number to be written
Variables or Expressions—List of variables or expressions to write
Le bloc WRITE permet d’écrire des données dans des fichiers externes.
SYS826– Introduction à la simulation Page 78
Block WRITE
SYS826 40
SYS826– Introduction à la simulation Page 79
Lecture/Écriture – ARENA & EXCEL
SYS826– Introduction à la simulation Page 80
Lecture/Écriture – ARENA & EXCEL
SYS826 41
SYS826– Introduction à la simulation Page 81
Lecture/Écriture – ARENA & EXCEL
SYS826– Introduction à la simulation Page 82
Agenda de la séance
− Bonnes Pratiques de Simulation;
− Concepts Intermédiaire de simulation;
• Elements: SETS, NICKNAMES, STATESETS;
• Blocks: WAIT, SIGNAL, PREEMPT;
− Exemple d’un système Manufacturier;
− Lecture/Écriture Externe:
• Elements: FILES, VARIABLES;
• Blocks: WRITE;
− Champs d’application de la simulation;
• Exemples de projet industriel.