LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

alligning images with crosshair

Solved!
Go to solution

Hi,

I have this sample vi that i want to make changes to.

can someone please help me.

i have this situation, as the first image is centered, the crosshair is drawn correctly.

as the item rotates, the crosshair is also drawn, but it is not drawn correctly. can someone tell me what i can do to fix it?

 

Here is what I have.

 

 

This is a good crosshairs drawn..

 

good.JPG

 

 

This is BAD

 

bad.JPG

 

 

 

This is what I need to have. (YELLOW LINE)

 

should be.JPG

Best regards,
Krispiekream
0 Kudos
Message 1 of 7
(3,473 Views)

Use Measurement System.Angle (deg) which is delivered from IVA Coordinate System Manager.vi. This will give you the angle. Use it for calculation of the coordinates for your cross mark.

 

Andrey.

 

0 Kudos
Message 2 of 7
(3,450 Views)

I am still having problems with the calculations.

do you know where i can find 

information about measurement calculations with X, Y axis?

 

Best regards,
Krispiekream
0 Kudos
Message 3 of 7
(3,418 Views)
Solution
Accepted by topic author krispiekream

krispiekream wrote:

 

do you know where i can find 

information about measurement calculations with X, Y axis?

 


Here in your code:

 

cross.png

 

Andrey.

0 Kudos
Message 4 of 7
(3,399 Views)

i am sucessfull with 1 line but not 2 lines.

 untitled.PNG

Message Edited by krispiekream on 02-23-2010 02:22 PM
Best regards,
Krispiekream
0 Kudos
Message 5 of 7
(3,388 Views)

This is because you have not changed anything in the first case of the case structure which deals with the position of the vertical line. The following change should do the trick:

 

vertical line.PNG

Vivek Nath
National Instruments
Applications Engineer

Machine Vision
0 Kudos
Message 6 of 7
(3,353 Views)

yeah, the vi i sent wasnt working for case 1.

but i have fixed it and didnt submit it.

i did (90-deg)

 

untitled.PNG

 

Thank you for your help!!!!

Message Edited by krispiekream on 02-25-2010 09:56 AM
Best regards,
Krispiekream
0 Kudos
Message 7 of 7
(3,344 Views)