Hi Team,.
I have added a label on the conveyor which indicates at what % of length of the conveyor the photo eye should move.
How do I set the location of photo eye on the curved conveyor.
Attached is the model.
Thank you
Hi Team,.
I have added a label on the conveyor which indicates at what % of length of the conveyor the photo eye should move.
How do I set the location of photo eye on the curved conveyor.
Attached is the model.
Thank you
Starting from a reference to the Photo Eye, the following code will set its location depending on the label value.
Object PE = Model.find("PE2");
Object conveyor = ownerobject(PE.find(">variables/conveyorPoint/1+")); double length = Math.fabs(conveyor.getProperty("SweepAngle")*conveyor.getProperty("Radius")*Math.pi/180); function_s(PE, "setDistAlongConveyor", length*conveyor.Sensor1/100);
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved