上期我们学习了如何统计和分析数据,这期我们将学习如何在模型运行中显示统计数据和信息、添加3D图表、可视化工具和记录器实体。 一、问题描述 添加3D曲线图来显示暂存区的当前数量、3D直方图来显示暂存区中临时实体的等待时间、3D饼状图来显示每个操作员的状态、3D文本来显示传送带暂存区的平均等待时间、安排曲线图、图表、文本的位置以取得最好视觉效果。 二、模型总体布局图 三、参数设置 打开模型三。 添加一个Dashboard,显示暂存区的容量。 创建Dashboard:点击统计Dashboards添加,从左边的库中拖拽ContentvsTime到dashboard面板中。 调整Dashboard的参数,显示暂存区的容量图表。 在Dashboard属性框中,点击实体选项卡上的绿色加号。现在就可以选择暂存区,从而来显示它的ContentvsTime图表。 点击暂存区(Queues)旁边的加号,选择下一级中的暂存区。点击下面的选择(Select)按钮即可。 把Dashboard的名字改为暂存区容量vs时间(QueueContentvsTime)。点击确定,保存修改并关闭窗口。 (另外一种方式就是,你可以点击笔,然后点击3D视图中的暂存区,把它添加到Dashboard中。) 添加一个Dashboard,来实现暂存区的平均停留时间(AverageStaytime)。往Dashboard中拖拽一个AverageStaytimeBarGraph(平均停留时间图表),然后把图表的名字修改成暂存区平均停留时间。 为每个操作员添加状态饼状图 为每个操作员添加一个状态饼图。在库中选择StatePie(状态图),并拖拽到Dashboard中,更名为OperatorStatePie(操作员状态图)。 向模型中添加3D文本。 通过另外一种方式也可以向模型添加信息,比如,使用可视化工具可以在布局的关键位置显示3D绩效指标。在模型运行的过程中,观察它的变化。在此模型中,我们可以添加3D文本,来显示传送带暂存区中临时实体的平均等待时间。 在模型中添加VisualTool,放置在传送带暂存区旁边,命名为文本(Text)。 双击可视化工具,弹出属性窗口。在文本显示列表中,选择显示实体。将会出现代码模版窗口。把参数文本按照下面的形式进行修改: 文本:AverageConveyorQueueStaytime: 实体:centerobject(currrent,1) 统计:AverageStaytime 实体:点击绿色加号,然后点击Queues(暂存区)旁边的加号,选择暂存区2,然后点击选中。 统计:点击下拉菜单,选择AverageStaytime。 注意:点击可视化工具,然后直接点击显示的3D文本 调整文本的显示。默认情况下,文本的尺寸是1,可以把它调小,把它悬浮在暂存区上。要把文本调小,就在可视化工具的属性窗口中输入理想的尺寸。也可以调整文本厚度,使它看起来更具备3D的效果。 双击可视化工具,打开属性窗口。在显示选项卡上,文本厚度改为0。1。 点击常规选项卡。 将X轴的旋转角度调整为90。 点击确定关闭属性窗口。 模型中的文本已经发生了旋转。用鼠标选中并将文本放置到适当的位置。同时,按下鼠标的左键和右键,前后移动鼠标可以控制文本的Z轴位置,或者选中文本,滑动鼠标滚轮,上下移动文本。 重置,保存及运行模型。 重置、保存模型。然后运行模型,观察在以上操作中添加的图形,图表及3D文本。 Inthelastissue,welearnedhowtocountandanalyzedata。Inthisissue,wewilllearnhowtodisplaystatisticaldataandinformationduringmodeloperation,add3Dcharts,visualizationtools,andrecorderentities。 1。Problemdescription Adda3Dcurvegraphtodisplaythecurrentnumberofthetemporarystoragearea,a3Dhistogramtodisplaythewaitingtimeoftemporaryentitiesinthetemporarystoragearea,a3Dpiecharttodisplaythestatusofeachoperator,anda3DtexttodisplaytheconveyortemporarystorageareaAveragewaitingtime,arrangethepositionofgraphs,charts,andtextstogetthebestvisualeffect。 2。Theoveralllayoutofthemodel 3,parametersetting Openmodelthree。 AddaDashboardtodisplaythecapacityofthetemporarystoragearea。 CreateDashboard:ClickStatisticsDashboardsAdd,anddragContentvsTimefromthelibraryonthelefttothedashboardpanel。 AdjusttheparametersoftheDashboardtodisplaythecapacitychartofthetemporarystoragearea。 IntheDashboardpropertiesbox,clickthegreenplussignontheEntitytab。NowyoucanselectthestagingareatodisplayitsContentvsTimechart。 ClicktheplussignnexttotheQueuestoselecttheQueuesinthenextlevel。ClicktheSelectbuttonbelow。 ChangethenameofDashboardtoQueueContentvsTime(QueueContentvsTime)。ClickOKtosavethechangesandclosethewindow。 (Anotherwayis,youcanclickonthepen,andthenclickonthestagingareainthe3DviewtoaddittotheDashboard。) AddaDashboardtoshowtheAverageStaytimeinthetemporarystoragearea。DraganAverageStaytimeBarGraphtotheDashboard,andthenchangethenameofthecharttoAverageStaytimeBarGraph。 Addastatuspiechartforeachoperator Addastatuspiechartforeachoperator。SelectStatePieinthelibrary,dragittotheDashboard,andrenameittoOperatorStatePie。 Add3Dtexttothemodel。 Thereisanotherwaytoaddinformationtothemodel,forexample,usingvisualizationtoolstodisplay3Dperformanceindicatorsinkeypositionsofthelayout。Whilethemodelisrunning,observeitschanges。Inthismodel,wecanadd3Dtexttoshowtheaveragewaitingtimeofflowitemsinthetemporarystorageareaoftheconveyorbelt。 AddVisualTooltothemodel,placeitnexttotheconveyortemporarystoragearea,andnameitText。 Doubleclickthevisualizationtooltopopupthepropertieswindow。Inthetextdisplaylist,selectthedisplayentity。Thecodetemplatewindowwillappear。Modifytheparametertextinthefollowingform: Text:AverageConveyorQueueStaytime: Entity:centerobject(currrent,1) Statistics:AverageStaytime Entity:Clickthegreenplussign,thenclicktheplussignnexttoQueues(temporarystoragearea),selecttemporarystoragearea2,andthenclicktoselect。 Statistics:ClickthedropdownmenuandselectAverageStaytime。 Note:Clickonthevisualizationtool,andthendirectlyclickonthedisplayed3Dtext Adjustthedisplayoftext。Bydefault,thesizeofthetextis1,youcanreduceitandfloatitonthetemporarystoragearea。Tomakethetextsmaller,enterthedesiredsizeinthepropertieswindowofthevisualizationtool。Youcanalsoadjustthetextthicknesstomakeitlookmore3D。 Doubleclickthevisualizationtooltoopenthepropertieswindow。Onthedisplaytab,thetextthicknessischangedto0。1。 ClicktheGeneraltab。 AdjusttherotationangleoftheXaxisto90。 ClickOKtoclosethepropertieswindow。 Thetextinthemodelhasbeenrotated。Usethemousetoselectandplacethetextintheappropriateposition。Atthesametime,presstheleftandrightbuttonsofthemouseandmovethemouseforwardandbackwardtocontroltheZaxispositionofthetext,orselectthetextandslidethemousewheeltomovethetextupanddown。 Reset,saveandrunthemodel。 Resetandsavethemodel。Thenrunthemodelandobservethegraphics,chartsand3Dtextaddedintheaboveoperations。 注:本模型使用的是FlexSim2019 参考资料:百度百科,Flexsim7。5。4版本中文用户手册【北京创时能公司汉化】版 翻译:Google翻译 本文由LearningYard学苑原创,文中部分图片和文字均来源于网络,如有侵权请联系删除!