Search under this category:
NXT Repository/Programming/NXT-G/
Power NXT-G Block
Last update: Wednesday, May 2nd, 2007
Michael Gasperi made this NXT-G block which calculates X to the power Y.
PSP-Nx PS2 Controller Block version 1.1
Last update: Sunday, December 24th, 2006
An updated version (v. 1.1) of my NXT-G block for mindsensors.com PSP-Nx PS2 controller interface for mindstorms NXT. The block allows reading 4 analog joystick values scaled between -100 and +100, as well as read the state of one of 16 buttons on the PS2 controller.
Installation:
1. Download the block here, extract the files on your local machine
2. Open NXT-G “Block Import and Export” wizard (you must have the Dynamic Block Update installed)
3. Select the directory you extracted the PSP-Nx Block files to. You should see “PSP-Nx PS2 Controller” block (version 1.1) available to install
4. Select “Sensor” to add the new block to the Sensor Palette, and press Import
5. Answer “Yes” to any “Replace ….” popup that might show up
Revision History:
v 1.0 - First release
v 1.1 - Fixes a bug in the Buttons control, changes button wire values
to 0..15 instead of 1..16 as in v. 1.0.
As allways, I’ll be happy to get feedback on this new NXT-G block. There is a dedicated topic in our forums related to this release, or you can email me at guy@nxtasy.org.
RCX to NXT Communication Adapter NXT-G block
Last update: Sunday, April 15th, 2007
Mindstroms released this block to control the RCX to NXT communication adapter (NRLink-Nx). NRLink-Nx is a device designed to establish NXT-RCX data link. You can use this on your NXT robot to command and collect data from satellite RCX robot or RCX controlled part of robot.
This device now also communicates with LEGO trains!
Real-time clock Sensor NXT-G Block
Last update: Monday, July 9th, 2007This block allow you to get/set the time in mindsensors.com real-time clock sensor.
Seed Random Generator NXT-G Block
Last update: Saturday, April 14th, 2007
Michael Gasperi created this NXT-G block, which creates random numbers using a defined ’seed’ (thus, if you use the same seed again you’ll get an identical series of numbers).
Sharp IR sensor NXT-G block
Last update: Sunday, April 15th, 2007
Mindsensors.com released this block for use with the Sharp IR sensors series. The control panel allows setting the sensor type (nicely affecting the compare slider to give the right range for that device) and the I2C address.
Another block (DIST-Update) on the same download page allows calibration of the DIST-Nx EEPROM parameters.
Simple Array NXT-G Block
Last update: Saturday, February 10th, 2007
The array block is a repackaged sub-block. It will allow you to Clear the array, Add values, and Get values given the index.
Sine and cosine NXT-G Block
Last update: Sunday, February 11th, 2007These block calculates the sine and cosine of an angle.
Square Root NXT-G Block
Last update: Sunday, February 11th, 2007This blocks allows calculation of (integer) square root of its input
Techno-stuff Air Pressure Sensor NXT-G Block
Last update: Monday, July 9th, 2007This block will let you read air-pressure values (either in kPa or PSI) from the air-pressure sensor of techno-stuff.
Techno-stuff Passive InfraRed Sensor NXT-G Block
Last update: Monday, July 9th, 2007This block will let you use the Techno-stuff motion detector (i.e. Passive InfraRed sensor).
Template VI Library Block (v. 1.0)
Last update: Friday, January 5th, 2007
This “advanced” NXT-G block is released not for users, but for NXT-G block developers. I’ve created this block as a starting point for a “math library” block which I still didn’t manage to get to. Such “libraries” of blocks typically have similar number of input and output terminals, but different functionality in each function. If you use a “Switch” VI you waste a huge amount of memory since all functions are compiled and stored in the final .rbt file, even if you use only one function.
The Template VI Library Block answers this problem. Basically, it allows dynamical reprogramming of the “underlying” VI diagram behind the NXT-G diagram and replacing the “core” SubVI of the block every time the user selects a different function. Adding new functions is very easy - changing the control holding the list of functions and adding the SubVI file is all you have to do! More details on using this block are found in the README file, and inside each VI.
Download the Template VI Library Block here.
Comments/suggestions/bugs can be reported on this topic, or via email to guy@nxtasy.org.
Text Manipulation NXT-G Blocks
Last update: Wednesday, May 30th, 2007Here are a few NXT-G blocks for manipulating strings. There are 5 blocks in this archive:
- Text Compare
- Text Length
- Text Subset
- Text Contains
- Text to Number
whose function is evident by the block name.
download archive here.
Any additions/suggestions/comments? Send an email to repository@nxtasy.org.
Search
Categories
Monthly Archives
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- January 2009
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006