ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 08-17-2009
Dane Lee's Avatar
Dane Lee Dane Lee is offline
Flexsim User
 
Join Date: Jun 2009
Location: Beijing China
Posts: 23
Downloads: 187
Uploads: 0
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 134
Dane Lee is on a distinguished road
Smile About founctions of kinematic

In the first model, use setloc(),Visualtool go down 1m, then it can back to original position; but use addkinematic(),Visualtool9 can't back to original position in the second model.
In the second model,the code in OnEntry:
double endtime=addkinematic(label(stamp,"kinematics"),0,0 ,-1,1,0,0,0,0,time(),KINEMATIC_TRAVEL);
addkinematic(label(stamp,"kinematics"),0,0,1,1,0,0 ,0,0,time()+endtime,KINEMATIC_TRAVEL);
I think that the distance of it travel down double it travel up.
Please,Tell me how the result of second model can be the same as first model,using addkinematic();
Help your reply,thanks!
Attached Files
File Type: zip Kinematic model.zip (262.8 KB, 206 views)
  #2  
Old 08-17-2009
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

Quote:
Originally Posted by Dane Lee View Post
double endtime=addkinematic(label(stamp,"kinematics"),0,0 ,-1,1,0,0,0,0,time(),KINEMATIC_TRAVEL);
addkinematic(label(stamp,"kinematics"),0,0,1,1,0,0 ,0,0,time()+endtime,KINEMATIC_TRAVEL);
The endtime doesn't return the time it takes to perform the kinematics but it returns the actual moment in time that this kinematic is finished. So use "endtime - time()" instead of "time() + endtime"
The Following User Says Thank You to Steven Hamoen For This Useful Post:
Scott Mackay (10-08-2009)
  #3  
Old 08-17-2009
LINWEIXU
Guest
 
Posts: n/a
Downloads:
Uploads:
Default

addkinematic(label(stamp,"kinematics"),0,0,.9,1,0, 0,0,0,endtime-time(),KINEMATIC_TRAVEL);

Last edited by LINWEIXU; 08-17-2009 at 06:04 PM.
  #4  
Old 08-17-2009
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

Please only ENGLISH language on this forum. Otherwise it is for the moderators impossible to control the forum. Thank you!
  #5  
Old 08-17-2009
Dane Lee's Avatar
Dane Lee Dane Lee is offline
Flexsim User
 
Join Date: Jun 2009
Location: Beijing China
Posts: 23
Downloads: 187
Uploads: 0
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 134
Dane Lee is on a distinguished road
Default

First thank you very much!
As your said, shoud use "endtime " instead of "time() + endtime"

treenode stamp=centerobject(current,1);
double endtime=addkinematic(label(stamp,"kinematics"),0,0 ,-.9,1.5,5,5,0,0,time(),KINEMATIC_TRAVEL);
addkinematic(label(stamp,"kinematics"),0,0,.9,1.5, 5,5,0,0,endtime,KINEMATIC_TRAVEL);
Do you think!
  #6  
Old 08-17-2009
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

Yes that might be the solution. I haven't taken a look at your model so please try it yourself first and if it doesn't work ask again.



All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.