02-21-2010 09:10 AM
Hi everyone,
i am using Labview 2009 with the nxt module and firmware 1.28
when i try to debug the example of the i2c to read and write (from PIC microcontroller)
i get the message "error file!" on my NXT lcd.
what is the problem and how can i fix it?
good day.
02-22-2010 02:27 PM
02-22-2010 06:15 PM
Which specific example are you running? Are you able to run other code? Can you narrow down the cause of the error to a specific VI inside of this example?
Hopefully with a little more information we will be able to figure out exactly what is happening.
02-25-2010 03:21 PM
thanks for the replay.
i am trying to run the example "setupi2c.vi" from the examples of the NXT module i downloaded
i attached the vi to this message.
when i try run or debug i get "file error!" message on the NXT lcd.
i am only tring to send multibyte from PIC to the NXT by using labview code and it doesnt seems to work
does anyone knows:
1.why i get "file error!" message?
2.besides that example is there any other way to send recieve multibytes on the NXT?
thanks again.
itai
02-27-2011 12:01 PM
I am having exactly the same problem. It would be great if anybody could help us on that.
02-28-2011 01:48 PM
I am not able to open the attached file in LabVIEW. I found the example PI_Position_Control.vit for the NXT and does this VI help? Have you tried to run this one or does this not apply to what you are trying to accomplish?
02-28-2011 09:57 PM
Thanks
I can run the other functions in the nxt module. It works perfectly. But, I could not use i2c function. I download the file to NXT but I cannot run it. Immediately after I run the program program stops generating "file error" in the display. I am using Labview 2009 with NXT module for the version and firmware on my NXT is 1.28. I have attached the file that is based on the example given on:
http://zone.ni.com/reference/en-XX/help/372962A-01/lvnxt/i2c_sensors/
03-01-2011 01:46 PM
Hi Binay,
"File Error!" happens for a number of reasons and is a fairly non-descriptive error string. It can mean: Your file is corrupt, there was a run time error during program execution, or you run out RAM during program execution.
I ran the code you attached in LabVIEW 2010 SP1 on a NXT controller with firmware 1.28, and I couldn't reproduce the error. However, I didn't have a sensor attached either..
Can you reproduce the issue with a new VI? Can you verify that you can communicate with your microcontroller with another device via I2C? Can you try running your code on another machine, perhaps one with a later version?
I don't see why it may be related, but can you upgrade to the latest NXT firmware: 1.29?
03-16-2011 08:47 PM
Thanks
After I read your post I tried the program using labview 2010 and it worked. Thanks for your help.