LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rotate a ploted 3d graph around an axis

Solved!
Go to solution

Hi ,
I am trying to make something like a CAM simulator , I started with a fixed object (cylinder) and a cutter (also cylinder) and i am trying to make the cutter to rotate around the axis of the cylinder and tangent to the top surface of the cylinder.
I attached the VI plus a video for what happened with me.

Capture.PNG

0 Kudos
Message 1 of 12
(5,434 Views)

hi hosa200,

 

you might have missed to attach the vi.

 

ps: fill the controls with values, make them all default, so ppl trying to help you can play around, without guessing what values should be.

also don't forget to include subvis.


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 2 of 12
(5,415 Views)

I update everything as you mentioned ,thank you

0 Kudos
Message 3 of 12
(5,400 Views)

Your description of the cutter orientation doesn't quite make sense to me.  Is this what you mean?

cutter.PNG

aputman
Message 4 of 12
(5,386 Views)

@aputman wrote:

Your description of the cutter orientation doesn't quite make sense to me.  Is this what you mean?

cutter.PNG


The cutter rotation axis is perpendecular on cylinder rotation axis
like this
1.PNG

0 Kudos
Message 5 of 12
(5,375 Views)

@hosa200 wrote:

@aputman wrote:

Your description of the cutter orientation doesn't quite make sense to me.  Is this what you mean?

cutter.PNG


The cutter rotation axis is perpendecular on cylinder rotation axis
like this
1.PNG


Ok, that is the way I interpreted your description but it didn't make sense from a machining point of view (coming from a non-machinist).  Smiley Very Happy

 

Your x values remain the same in the second Matlab script but I think it should be your z values remaining constant.  I can't open your VI to make sure.

aputman
0 Kudos
Message 6 of 12
(5,372 Views)

@aputman wrote:


Ok, that is the way I interpreted your description but it didn't make sense from a machining point of view (coming from a non-machinist).  Smiley Very Happy

Your x values remain the same in the second Matlab script but I think it should be your z values remaining constant.  I can't open your VI to make sure.


I am using Labview 2016 ,

0 Kudos
Message 7 of 12
(5,370 Views)

Right.  And I am using 2012.  I can only see your picture and from there, I can't see which axis is x, y, or z.  Obviously, based on the video, you are changing the wrong values, so I am assuming that X is parallel to the top of the cylinder and should remain constant. 

aputman
0 Kudos
Message 8 of 12
(5,366 Views)

2012 version

0 Kudos
Message 9 of 12
(5,360 Views)

Sorry, I don't have a license of Mathscript to execute.  So assuming that your code for drawing the cylinder around the axis is correct (only the wrong axis was chosen), this is what I had in mind for the second MathScript node:

mXcut2=mXcut*sin((c*pi)/180);
mYcut2=mYcut*cos((c*pi)/180);
mZcut2 = mZcut;
aputman
0 Kudos
Message 10 of 12
(5,357 Views)