LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Example toolkit code, or directions?

AAAAARRRGHHH!

I am an experienced LabVIEW programmer.  I just got an NXT system and have downloaded the LabVIEW toolkit and am trying to figure out how to use it.  Why is it so darn hard to find example code, or even decent documentation?  Am I missing something somewhere?  All I'm looking for is a basic "getting started" example that shows how to get your program running on the NXT brick.  I've made some progress on the direct connect stuff, but that was all by trial and error.  


On a related note, is anyone willing to share code for accessing the Hitechnic accelerometer data via direct connect? The LV code that's available for their website seems to be the non-direct-connect version (whatever you call that).

 Thanks,

Gary

0 Kudos
Message 1 of 3
(6,254 Views)

In the zipped file that one gets when downloading the NXT Toolkit, there is a PDF that is exactly what you are talking about. It's called just that; Getting started or something. There's another one two that goes over making NXT-G blocks, too.

 

Direct connect is basically when the VI is running on your computer, but it is communicating with the NXT and telling it what to do. The opposite of this would be when you make a VI that gets downloaded and run on your NXT. You download and manage such actions in the NXT Terminal, which is an addon that comes with the Toolkit. It's under tools>>NXT Tookit>>NXT Terminal or something like that.

 

Direct connect does not work with some things, so I think it might not work with the Hitechnic sensor (although I don't have any experience with it). To tell you right off the bat, it doesn't work with any degree or rotation functions with the motors either because of a technical reason (I think you can read more about this in the NXT Toolkit Bugs thread). That's why you don't see such VIs in the direct connect area of the pallet.

 

Hope that helps!

0 Kudos
Message 2 of 3
(6,100 Views)

Oooh, here found it on NI's site if you can't find it in the folder:

http://zone.ni.com/devzone/cda/tut/p/id/4435 

0 Kudos
Message 3 of 3
(6,097 Views)