NI Home > Community > NI Discussion Forums

LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

Showing results for 
Search instead for 
Do you mean 
Reply
Member
helplesstudent
Posts: 2
0 Kudos

Saving Data onto lego mindstorms brick

I am trying to create a sensor for the lego mindstorms and needed to save some of the data that the sensor recieved onto the LEGO mindstorms brick to be used by the robot in a future action.  Does anyone know if it is possible to save data onto the LEGO mindstorms brick and if so how it can be done using LABVIEW
Trusted Enthusiast
Albert.Geven
Posts: 3,346
0 Kudos

Re: Saving Data onto lego mindstorms brick

Hi are you using the NXT LabVIEW toolkit or only the NXT-G environment?

In the first version you can save it in your computer, in the second it can be saved in flash memory like a waveform or as another file in the brick.
In this way you can use it from one program to the next program.
You even can only use a filename without too much data.

greetings from the Netherlands
Member
engseeo
Posts: 14
0 Kudos

Re: Saving Data onto lego mindstorms brick

hi.I need to know if I could save data using file access block within labviwe  nxt toolkits,for example could I save sensor reading using these block(easy write block,easy read block..) plz I need to know as soon as you could  and with details .

thanx

Member
Eagle 1
Posts: 42
0 Kudos

Re: Saving Data onto lego mindstorms brick

Yes, you can write (save) files to the NXT brick.  That is how the light sensor calibration program works -- it stores the values in a .txt file, although I don't remember what it is called.  I haven't tried doing this in LabVIEW, but it shouldn't be a problem.
Member
Bart C
Posts: 5
0 Kudos

Re: Saving Data onto lego mindstorms brick

Hi all,
The "NXT Advanced Programming Guide.pdf" (installed with the toolkit) describes in detail the capabilities provided in the toolkit. Try around page 38. Also, the VIs in the NXT Toolkit>NXT Library>File Access palette are prebuilt wrappers around much of what is discussed in the PDF. The PDF is in the manuals folder.
Bart
LabVIEW R&D
Member
engseeo
Posts: 14
0 Kudos

Re: Saving Data onto lego mindstorms brick

look I try use easy write block to save US sensor reading(distance)

then I use easy read block to display that reading but nothing appear on LCD and there was a warning:

C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\Library VIs\File Access\File_Read_Line.vi
    - The shared library expected to be at "NXTInputOutput.dll" was loaded from "C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\shared\NXTInputOutput\NXTInputOutput.dll".
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\Library VIs\File Access\File_Resize.vi
    - The shared library expected to be at "NXTInputOutput.dll" was loaded from "C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\shared\NXTInputOutput\NXTInputOutput.dll".
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\Library VIs\File Access\File_Write_Line.vi
    - The shared library expected to be at "NXTInputOutput.dll" was loaded from "C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\shared\NXTInputOutput\NXTInputOutput.dll".
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\Library VIs\File Access\NXT_EasyWriteFile.vi
    - The shared library expected to be at "NXTInputOutput.dll" was loaded from "C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\shared\NXTInputOutput\NXTInputOutput.dll".
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\Library VIs\File Access\NXT_OpenFileForRead.vi
    - The shared library expected to be at "NXTInputOutput.dll" was loaded from "C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\shared\NXTInputOutput\NXTInputOutput.dll".
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\Library VIs\File Access\NXT_OpenFileForWrite.vi
    - The shared library expected to be at "NXTInputOutput.dll" was loaded from "C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\shared\NXTInputOutput\NXTInputOutput.dll".

what could be the problem???????????

I attache the program I wrote