LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2009 i2c "error file!"

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.

 

0 Kudos
Message 1 of 9
(7,746 Views)
any idea?
0 Kudos
Message 2 of 9
(7,738 Views)

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.

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 3 of 9
(7,732 Views)

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

0 Kudos
Message 4 of 9
(7,715 Views)

I am having exactly the same problem. It would be great if anybody could help us on that.

0 Kudos
Message 5 of 9
(6,769 Views)

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?

National Instruments
Applications Engineer
0 Kudos
Message 6 of 9
(6,754 Views)

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/

 

 

 

0 Kudos
Message 7 of 9
(6,750 Views)

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?

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 8 of 9
(6,732 Views)

Thanks

 

After I read your post I tried the program using labview 2010 and it worked. Thanks for your help.

0 Kudos
Message 9 of 9
(6,628 Views)