Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

MMA 7631 accelerometer with arduino uno

hello,

I am trying to develop the vi for accelerometer , i have developed a sample vi but it is showing error again and again. i tried to figure it out but unable to solve. i am having MMA 7631 accelorometer and arduino 7631. i am ataching a vi. please reply for the issue. i have even used firmware for accelerometer too. check out the attachment too.

Download All
0 Kudos
Message 1 of 6
(6,085 Views)

i am not getting any of the errors specififed in your link secondly i am getting a error as data in unexpected form. As per my VI i developed its approximately right, but while scaning i am getting that error. 

0 Kudos
Message 3 of 6
(6,073 Views)
What error? You can't expect much help if you don't provide the exact code and message. If you are getting an error with scan from string, provide the exact string that you receive.
0 Kudos
Message 4 of 6
(6,070 Views)

@AjinkyaM wrote:

i am not getting any of the errors specififed in your link secondly i am getting a error as data in unexpected form. As per my VI i developed its approximately right, but while scaning i am getting that error. 


I gave you that link because that is message board that NI has set up for people using Arduino.

The folks there should be more knowledgeable.

Most people who post on this message board do *not* use Arduino.

0 Kudos
Message 5 of 6
(6,066 Views)

according to my vi i should get data in the format of %d %d %d %d, decimal integer. For some time it runs properly and after than unexpected data format comes in the form of symbols. that is the issue. 

0 Kudos
Message 6 of 6
(6,051 Views)