Editing
Archive
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Create velocities file=== Using <code>c:\IGFAcontrol\PCSerialControl\myCppExample\createVelocities.m</code> set the simulation parameters: <source lang=matlab> % Enable XYmotor XYmotor = 1; % 1-> enabled, 0-> not active % Enable Zmotor Zmotor = 1; % 1-> enabled, 0-> not active % Return to initial position after 30 seconds returnToInitPos = 1; % random or ramp motion motiontype = 1; %0->random, 1->ramp % For XY do you want to do translation or rotation? xymode = 1; %0->translation, 1-> rotation %Random motion % XY rotation amplitude (actual will be smaller due to filtering) xyrot_amplitude = 0; %[deg] % Z translation amplitude (actual will be smaller due to filtering) % cannot be larger than 8*0.082 due to motor limitations ztrans_amplitude = 0*0.082; %[mm] %Ramp motion % XY motor start frame for statrting ramp 1:nProj xystart_frame=575; % XY motor end frame for statrting ramp 1:nProj xyend_frame = 600; % Z motor start frame for statrting ramp 1:nProj zstart_frame=575; % Z motor end frame for statrting ramp 1:nProj zend_frame = 600; % XY rotation end angle xyrot_end = 15; %[deg] % Z translation end location % Check maximum velocity! Should be lower than 24000 ztrans_end = 6*0.082;%8*0.082; %[mm] % output file name outfilename = 'YP_IGFAMOTION_0XX_12'; </source> Hit F5 to run the code. This script will save all the variables in outfilename.mat and create outfilename_velocities.txt to be used for the motor control.
Summary:
Please note that all contributions to bone.wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BoneWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Documents
Recent changes
Help
Tools
What links here
Related changes
Page information