for instance In process flow it shows 30sec to do the particular kinematic movement(rotation or travel) but in 3d object it takes less than that, help me to figure the mistake which I have made.
thanks in advance
for instance In process flow it shows 30sec to do the particular kinematic movement(rotation or travel) but in 3d object it takes less than that, help me to figure the mistake which I have made.
thanks in advance
The addkinematic() command "returns the time that this kinematic operation will finish." (https://docs.flexsim.com/en/19.1/Reference/DeveloperAdvancedUser/Kinematics/#addkinematic)
You need to subtract time() from your label assignments in order to get the amount of time that the kinematic will take rather than the end time of the kinematic.
double rotate2 = addkinematic(label(toolArm, "arm"), 90, 0, 0,20,0,0,0,0,time(),KINEMATIC_ROTATE); token.labels.assert("rotationTime2").value = rotate2 - time();
@Kishan Jayakumar The addkinematic function returns the endtime of the kinematic and not the time it takes to perform the kinematic. So in your case you should always subtract time() from it. By the way you don't have to use the labels.assert if you just deal with the value of the label. Just token.labelname is enough.
So for instance in Fixturerotation, the last line should read:
token.FixtureRotationTime = FixtureRotation - time();
11 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