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
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #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: 128
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)
Reply With Quote
  #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: 678
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"
Reply With Quote
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.
Reply With Quote
  #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: 678
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!
Reply With Quote
  #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: 128
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!
Reply With Quote
  #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: 678
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.