LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Output, BASIC STAMP II

How can I output the LabVIEW program that does the following (see
below) to interface with Basic Stamp II.

From a graph, I could retrieve X-Values (X1 and X2) and Y-Values (Y1
and Y2).
Target (X1, Y1)
Laser (X2, Y2)
Change in X (X2 - X1)
Change in Y (Y2 - Y1)

If ChangeX >= 5 If ChangeY >=5;
Move ChangeX==Right; Move ChangeY==Down;
else if ChangeX <= -5 else if ChangeY <= -5
Move ChangeX ==Left; Move ChangeY==Up;
else Move ChangeX==0 else Move ChangeY==0

| increasing Y
|
|
|
V ----------- > increasing X

If the change in X is positive (greater than zero), move change in X
to th
e right. If it was negative (less than zero), move change in X to
left. If the change in Y is positive (greater than zero), move change
in Y down. If it was negative (less than zero), move change in Y up. I
used 5 instead of 0 to give room for error.

Please e-mail me at if you can help, have
information or any question.

Thanks,
Paul
0 Kudos
Message 1 of 1
(2,477 Views)