Loginskip to content

New Datalogging NXT-G Block

news/
NXT Repository/Programming/


It’s been a while since I released a new NXT-G block. This one I’ve been thinking about for almost two years. It is a simple to use datalogging block. Nothing fancy - it create a file on your NXT (a BINARY file, meaning it saves ALOT of space compared to regular File Access Block) and writes up to 4 inputs. Each “record” is prefixed with a 1 byte “header” that tells the local machine later how many bytes each input took in the file. The ‘Upload’ button is used to load and decode the datalog file into a regular comma-delimited file you can open in e.g. Microsoft Excel.
config-datalogp.png

The control panel is rather simple - select the range of values for each input. Use ‘Ignore Input’ if you havn’t wired anything to that drawer. Otherwise, try to use the smallest range suitable to your needs (again - this would save space on the NXT, allowing larger logfile). The upload button does just exactly what you think it would… There’s also an option not to erase the logfile after uploading. Notice that the block requires the NXT to be connected via USB cable.

This is a first release, not heavily tested as I would’ve like it do be. I opened this topic on the forums for questions/bugs/comments.

Download the block from here.