LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 9 条)
8,208 次查看
any idea?
0 项奖励
2 条消息(共 9 条)
8,200 次查看

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 项奖励
3 条消息(共 9 条)
8,194 次查看

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 项奖励
4 条消息(共 9 条)
8,177 次查看

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

0 项奖励
5 条消息(共 9 条)
7,231 次查看

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 项奖励
6 条消息(共 9 条)
7,216 次查看

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 项奖励
7 条消息(共 9 条)
7,212 次查看

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 项奖励
8 条消息(共 9 条)
7,194 次查看

Thanks

 

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

0 项奖励
9 条消息(共 9 条)
7,090 次查看