LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NXT LabVIEW Program

Hi I have built an NXT labVIEW program attached and cant understand why it wont run.

 

I want the motor to move forward at a power of 20 for 90degrees and the move in reverse at a power of 60 for 90degrees

 

Thank YOu

 

Ailish

0 Kudos
Message 1 of 4
(2,786 Views)

Hi Ailish,

 

You have correctly input the port name (Port B) to the NXT VIs but you haven't identified the NXT. Before the VIs you have already wired up you need to specify which NXT to use. I have a USB connection to my NXT and have tested your code with the addition of the "Specify NXT" VI. See below - 

Example.png

 

Hope this helps,

Jack. W
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,748 Views)

Thank you Jack

 

Will the wheel move back the same distance as forward e.g.90 degrees

 

Ailish

0 Kudos
Message 3 of 4
(2,740 Views)

Hi Ailish,

 

I didn't take note of what the NXT was doing only that it worked! I just checked and no it didn't move back. See below a method to do this.

Example frwd bkwd.png

The second "Drive Distance" VI has negative 50 power directing the motor to reverse.

 

Regards,

Jack. W
Applications Engineer
National Instruments
Message 4 of 4
(2,728 Views)