LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

File Error in Middle of Program

I have a program for the NXT (firmware version 1.05) created in LabVIEW's NXT Toolkit (version 1.0 w/ 1.0.1 patch) that runs until it gets about halfway through and then aborts with a "File Error" message.  The overall program size is about 40KB on the flash memory.  Although I only use a few small arrays, I am suspecting that I am running out of RAM (the NXT has 64KB of it).  Is there any way to check RAM usage while the program is running?

 

By the way, if I trim the program down a lot but still use the same subvi's, the program does not crash.

0 Kudos
Message 1 of 2
(5,795 Views)

I don't really think that RAM would do it if you can fit your program on to the NXT in the first place. But if you mean that more RAM gets used up as the program runs because of operations, then that might do it. If you trimmed it down and it didn't crash, then that might mean that a part you cleaned up was causing operations that used up too much RAM, I guess.

 

I don't really know of any way to read the RAM usage off the top of my head. Try searching around in the toolkit pallet. Maybe there's even a regular LabVIEW VI (not in the toolkit pallet) that can do this.

 

Other than that, I guess if your program works when you trim it down, you're pretty much ok already. I don't really offer much advice here but whatever. 😛 🙂

0 Kudos
Message 2 of 2
(5,744 Views)