SlideShare una empresa de Scribd logo
1 de 54
Arena Integration and Customization Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Chapter 10 Last revision July 14, 2003
What We’ll Do ... ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading and Writing Data Files ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Entity Arrivals From  a Text File ,[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Simple Call Center Model ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
External Call Center Data ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Model Logic to Read Data ,[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Control Entity Actual “Call” Entity
Model Logic to Read Data  (cont’d.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Model Logic to Read Data  (cont’d.) ,[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Run Termination ,[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Access Files ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Access Files ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Access Files ,[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Access Files ,[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Excel Files ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Excel Files ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Excel Files ,[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Reading Excel Files ,[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Writing Access and Excel Files ,[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Writing Access and Excel Files ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Writing Access and Excel Files ,[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Advanced Reading and Writing ,[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Part 1  1.038  Part 27 2.374  Part 5194.749  Part 67 9.899  Part 72 10.52  Part 16217.09
Advanced Reading and Writing ,[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Advanced Reading and Writing ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Provider=Microsoft.JET.OLEDB.4.0; Data Source=C:ocumentsook1.xls; Extended Properties=””Excel 8.0; HDR=Yes;”” Driver={SQL Server}; Server=RSI-Joe; Database=BizBikes; Uid=BizWareUser; pwd=MyPassword Use two double quotes for each embedded double quote
What We’ll Do ... ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
ActiveX Automation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Application Object Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Visual Basic for Applications (VBA) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Built-in Arena VBA Events ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Simulation Run VBA Events ,[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 1.  RunBegin 3.  RunBeginSimulation 4.  RunBeginReplication 9.  RunEnd 7.  RunEndSimulation 6.  RunEndReplication 5.  Arena runs replication  2.  Arena checks and initializes the model 8.  Arena terminates the simulation run Simulation run data available OnKeystroke, UserFunction, etc. Module data available Module data available
Arena’s Object Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Sample: Create Ten Status Variables Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 WIP(1) WIP(10) Dim oModel As Arena.Model Dim i As Integer Dim nX As Long ' Add the status variables to this Arena model Set oModel = ThisDocument.Model nX = 0  ' Start at x position 0 For i = 1 To 10 ' Add a status variable to the model window oModel.StatusVariables.Create nX, 0, _ nX + 400, 150, "WIP(" & i & ")", "**.*", False, _ RGB(0, 0, 255), RGB(0, 255, 255), RGB(0, 0, 0), "Arial" ' Move over 500 world units for next position nX = nX + 500 Next i
Sample: Assign Variable Value  During Run Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Dim oSIMAN As Arena.SIMAN Dim nVarIndex As Long Dim sNewValue As String ' Prompt for a new value sNewValue = InputBox("Enter the new average cycle time:") ' Assign their answer to the Mean Cycle Time variable Set oSIMAN = ThisDocument.Model.SIMAN nVarIndex = oSIMAN.SymbolNumber("Mean Cycle Time") oSIMAN.VariableArrayValue(nVarIndex) = sNewValue
Arena Macro Recorder ,[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Model 10-05: Presenting Arrival  Choices to the User ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Our Approach ,[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Our Approach  (cont’d.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
VBA UserForm ,[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Label Option buttons Command button
Show the UserForm ,[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Option Explicit Private Sub ModelLogic_RunBegin() ' Display the UserForm to ask for the type of arrivals frmArrivalTypeSelection.Show Exit Sub End Sub ,[object Object],[object Object]
Change Module Data On OK ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Model 10-06: Record Call Data  in Microsoft Excel ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Using ActiveX Automation in VBA ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Retrieving Simulation Data ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Our Approach ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Our Approach  (cont’d.) ,[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 ,[object Object],[object Object]
Our Approach  (cont’d.) ,[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Our Approach  (cont’d.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
What We’ll Do ... ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Creating Modules with Arena Professional Edition ,[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Panel Icon and User View ,[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Operands ,[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Operands
Module Logic ,[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54 Reference to module operand (  `Data File`  ) Reference to module operand (  `Name`  )
Uses of Templates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Simulation with Arena, 3 rd  ed. Chapter 10 – Arena Integration and Customization Slide   of 54

Más contenido relacionado

Destacado

Securing the privacy of customer
Securing the privacy of customerSecuring the privacy of customer
Securing the privacy of customerShelly
 
Strategic Thinking Lenses
Strategic Thinking LensesStrategic Thinking Lenses
Strategic Thinking LensesDerek Winter
 
Statistical database, problems and mitigation
Statistical database, problems and mitigationStatistical database, problems and mitigation
Statistical database, problems and mitigationBikrant Gautam
 
Understanding strategy development 4
Understanding strategy development 4Understanding strategy development 4
Understanding strategy development 4Amit Fogla
 
Information systems 365 lecture four - Security Policy Development, Data Clas...
Information systems 365 lecture four - Security Policy Development, Data Clas...Information systems 365 lecture four - Security Policy Development, Data Clas...
Information systems 365 lecture four - Security Policy Development, Data Clas...Nicholas Davis
 
Designing With Lenses (UxLx, CHIFOO, BigD)
Designing With Lenses (UxLx, CHIFOO, BigD)Designing With Lenses (UxLx, CHIFOO, BigD)
Designing With Lenses (UxLx, CHIFOO, BigD)Bill Scott
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesFellowBuddy.com
 
مدیریت استراتژیک و کارت امتیازی متوازن
مدیریت استراتژیک  و کارت امتیازی متوازنمدیریت استراتژیک  و کارت امتیازی متوازن
مدیریت استراتژیک و کارت امتیازی متوازنAbolfazl Fatehi
 
Simulation with ARENA - SM Paints
Simulation with ARENA - SM PaintsSimulation with ARENA - SM Paints
Simulation with ARENA - SM Paintshrishik26
 
Chapter 2 pertubation
Chapter 2 pertubationChapter 2 pertubation
Chapter 2 pertubationNBER
 
Generalized audit-software
Generalized audit-softwareGeneralized audit-software
Generalized audit-softwarekzoe1996
 
Intro to Deadlocks
Intro to DeadlocksIntro to Deadlocks
Intro to Deadlockslionpeal
 
SM Lecture One : Introducing Strategy
SM Lecture One : Introducing StrategySM Lecture One : Introducing Strategy
SM Lecture One : Introducing StrategyStratMgt Advisor
 
What is international strategy
What is international strategyWhat is international strategy
What is international strategyrhizluna
 
Kroger Store Simulation Using Arena
Kroger Store Simulation Using ArenaKroger Store Simulation Using Arena
Kroger Store Simulation Using ArenaDhivya Rajprasad
 
SM Lecture Nine (A) - International Strategy
SM Lecture Nine (A)  - International StrategySM Lecture Nine (A)  - International Strategy
SM Lecture Nine (A) - International StrategyStratMgt Advisor
 

Destacado (20)

Securing the privacy of customer
Securing the privacy of customerSecuring the privacy of customer
Securing the privacy of customer
 
Strategic Thinking Lenses
Strategic Thinking LensesStrategic Thinking Lenses
Strategic Thinking Lenses
 
Bis Chapter15
Bis Chapter15Bis Chapter15
Bis Chapter15
 
Statistical database, problems and mitigation
Statistical database, problems and mitigationStatistical database, problems and mitigation
Statistical database, problems and mitigation
 
Understanding strategy development 4
Understanding strategy development 4Understanding strategy development 4
Understanding strategy development 4
 
Information systems 365 lecture four - Security Policy Development, Data Clas...
Information systems 365 lecture four - Security Policy Development, Data Clas...Information systems 365 lecture four - Security Policy Development, Data Clas...
Information systems 365 lecture four - Security Policy Development, Data Clas...
 
Designing With Lenses (UxLx, CHIFOO, BigD)
Designing With Lenses (UxLx, CHIFOO, BigD)Designing With Lenses (UxLx, CHIFOO, BigD)
Designing With Lenses (UxLx, CHIFOO, BigD)
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture Notes
 
Reporte general de arena
Reporte general de arenaReporte general de arena
Reporte general de arena
 
Understanding strategic development
Understanding strategic developmentUnderstanding strategic development
Understanding strategic development
 
مدیریت استراتژیک و کارت امتیازی متوازن
مدیریت استراتژیک  و کارت امتیازی متوازنمدیریت استراتژیک  و کارت امتیازی متوازن
مدیریت استراتژیک و کارت امتیازی متوازن
 
Simulation with ARENA - SM Paints
Simulation with ARENA - SM PaintsSimulation with ARENA - SM Paints
Simulation with ARENA - SM Paints
 
Chapter 2 pertubation
Chapter 2 pertubationChapter 2 pertubation
Chapter 2 pertubation
 
Starbucks Wait Time Analysis
Starbucks Wait Time AnalysisStarbucks Wait Time Analysis
Starbucks Wait Time Analysis
 
Generalized audit-software
Generalized audit-softwareGeneralized audit-software
Generalized audit-software
 
Intro to Deadlocks
Intro to DeadlocksIntro to Deadlocks
Intro to Deadlocks
 
SM Lecture One : Introducing Strategy
SM Lecture One : Introducing StrategySM Lecture One : Introducing Strategy
SM Lecture One : Introducing Strategy
 
What is international strategy
What is international strategyWhat is international strategy
What is international strategy
 
Kroger Store Simulation Using Arena
Kroger Store Simulation Using ArenaKroger Store Simulation Using Arena
Kroger Store Simulation Using Arena
 
SM Lecture Nine (A) - International Strategy
SM Lecture Nine (A)  - International StrategySM Lecture Nine (A)  - International Strategy
SM Lecture Nine (A) - International Strategy
 

Similar a Arena Integration and Customization Simulation

Enterprise Library 3.0 Overview
Enterprise Library 3.0 OverviewEnterprise Library 3.0 Overview
Enterprise Library 3.0 Overviewmcgurk
 
Sql Injection and Entity Frameworks
Sql Injection and Entity FrameworksSql Injection and Entity Frameworks
Sql Injection and Entity FrameworksRich Helton
 
Enterprise Library 2.0
Enterprise Library 2.0Enterprise Library 2.0
Enterprise Library 2.0Raju Permandla
 
EA User Group London 2018 - Extending EA with custom scripts to cater for spe...
EA User Group London 2018 - Extending EA with custom scripts to cater for spe...EA User Group London 2018 - Extending EA with custom scripts to cater for spe...
EA User Group London 2018 - Extending EA with custom scripts to cater for spe...Guillaume Finance
 
Microsoft Database Options
Microsoft Database OptionsMicrosoft Database Options
Microsoft Database OptionsDavid Chou
 
Enterprise Library 2.0 Core Architecture
Enterprise Library 2.0 Core ArchitectureEnterprise Library 2.0 Core Architecture
Enterprise Library 2.0 Core Architecturemcgurk
 
Intake 38 data access 5
Intake 38 data access 5Intake 38 data access 5
Intake 38 data access 5Mahmoud Ouf
 
Azure Enterprise Data Analyst (DP-500) Exam Dumps 2023.pdf
Azure Enterprise Data Analyst (DP-500) Exam Dumps 2023.pdfAzure Enterprise Data Analyst (DP-500) Exam Dumps 2023.pdf
Azure Enterprise Data Analyst (DP-500) Exam Dumps 2023.pdfSkillCertProExams
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010Abram John Limpin
 
Introduction to Actionscript3
Introduction to Actionscript3Introduction to Actionscript3
Introduction to Actionscript3Yoss Cohen
 
Overview of VS2010 and .NET 4.0
Overview of VS2010 and .NET 4.0Overview of VS2010 and .NET 4.0
Overview of VS2010 and .NET 4.0Bruce Johnson
 
Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)Igor Moochnick
 
Windows Azure and a little SQL Data Services
Windows Azure and a little SQL Data ServicesWindows Azure and a little SQL Data Services
Windows Azure and a little SQL Data Servicesukdpe
 
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...Amazon Web Services
 
websphere cast iron labs
 websphere cast iron labs websphere cast iron labs
websphere cast iron labsAMIT KUMAR
 
New Engineering Client for Agile PLM
New Engineering Client for Agile PLMNew Engineering Client for Agile PLM
New Engineering Client for Agile PLMZero Wait-State
 

Similar a Arena Integration and Customization Simulation (20)

Enterprise Library 3.0 Overview
Enterprise Library 3.0 OverviewEnterprise Library 3.0 Overview
Enterprise Library 3.0 Overview
 
Sql Injection and Entity Frameworks
Sql Injection and Entity FrameworksSql Injection and Entity Frameworks
Sql Injection and Entity Frameworks
 
Intake 37 ef2
Intake 37 ef2Intake 37 ef2
Intake 37 ef2
 
Enterprise Library 2.0
Enterprise Library 2.0Enterprise Library 2.0
Enterprise Library 2.0
 
EA User Group London 2018 - Extending EA with custom scripts to cater for spe...
EA User Group London 2018 - Extending EA with custom scripts to cater for spe...EA User Group London 2018 - Extending EA with custom scripts to cater for spe...
EA User Group London 2018 - Extending EA with custom scripts to cater for spe...
 
Entity framework1
Entity framework1Entity framework1
Entity framework1
 
Microsoft Database Options
Microsoft Database OptionsMicrosoft Database Options
Microsoft Database Options
 
Enterprise Library 2.0 Core Architecture
Enterprise Library 2.0 Core ArchitectureEnterprise Library 2.0 Core Architecture
Enterprise Library 2.0 Core Architecture
 
Intake 38 data access 5
Intake 38 data access 5Intake 38 data access 5
Intake 38 data access 5
 
Azure Enterprise Data Analyst (DP-500) Exam Dumps 2023.pdf
Azure Enterprise Data Analyst (DP-500) Exam Dumps 2023.pdfAzure Enterprise Data Analyst (DP-500) Exam Dumps 2023.pdf
Azure Enterprise Data Analyst (DP-500) Exam Dumps 2023.pdf
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010
 
Introduction to Actionscript3
Introduction to Actionscript3Introduction to Actionscript3
Introduction to Actionscript3
 
Database driven web pages
Database driven web pagesDatabase driven web pages
Database driven web pages
 
Overview of VS2010 and .NET 4.0
Overview of VS2010 and .NET 4.0Overview of VS2010 and .NET 4.0
Overview of VS2010 and .NET 4.0
 
Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)Ado.Net Data Services (Astoria)
Ado.Net Data Services (Astoria)
 
Windows Azure and a little SQL Data Services
Windows Azure and a little SQL Data ServicesWindows Azure and a little SQL Data Services
Windows Azure and a little SQL Data Services
 
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
 
websphere cast iron labs
 websphere cast iron labs websphere cast iron labs
websphere cast iron labs
 
Introduction to Visual Studio.NET
Introduction to Visual Studio.NETIntroduction to Visual Studio.NET
Introduction to Visual Studio.NET
 
New Engineering Client for Agile PLM
New Engineering Client for Agile PLMNew Engineering Client for Agile PLM
New Engineering Client for Agile PLM
 

Arena Integration and Customization Simulation

  • 1. Arena Integration and Customization Simulation with Arena, 3 rd ed. Chapter 10 – Arena Integration and Customization Slide of 54 Chapter 10 Last revision July 14, 2003
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32. Sample: Create Ten Status Variables Simulation with Arena, 3 rd ed. Chapter 10 – Arena Integration and Customization Slide of 54 WIP(1) WIP(10) Dim oModel As Arena.Model Dim i As Integer Dim nX As Long ' Add the status variables to this Arena model Set oModel = ThisDocument.Model nX = 0 ' Start at x position 0 For i = 1 To 10 ' Add a status variable to the model window oModel.StatusVariables.Create nX, 0, _ nX + 400, 150, "WIP(" & i & ")", "**.*", False, _ RGB(0, 0, 255), RGB(0, 255, 255), RGB(0, 0, 0), "Arial" ' Move over 500 world units for next position nX = nX + 500 Next i
  • 33. Sample: Assign Variable Value During Run Simulation with Arena, 3 rd ed. Chapter 10 – Arena Integration and Customization Slide of 54 Dim oSIMAN As Arena.SIMAN Dim nVarIndex As Long Dim sNewValue As String ' Prompt for a new value sNewValue = InputBox("Enter the new average cycle time:") ' Assign their answer to the Mean Cycle Time variable Set oSIMAN = ThisDocument.Model.SIMAN nVarIndex = oSIMAN.SymbolNumber("Mean Cycle Time") oSIMAN.VariableArrayValue(nVarIndex) = sNewValue
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.