LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Capture data from Arduino UNO


@BArtzon wrote:

No I am not.

Bytes at port was removed. 

Everything works somewhat fine... but sometimes when I stop the program and run it again the values does not change when I move the IMU. Can you think of any reason? 

Arduino IDE work fine like expected. 


When you stop the LabVIEW program without closing the serial port properly, the resource can get locked and you won't be able to read data without restarting LabVIEW. Check if you are doing the cleanup after execution properly when exiting the program.

0 Kudos
Message 11 of 15
(194 Views)

How would I do the clean up?

0 Kudos
Message 12 of 15
(186 Views)

@BArtzon wrote:

How would I do the clean up?


Are you closing the port VISA reference at the end of your program?

 

Posting your code would go a long ways here, otherwise we are just guessing.

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
0 Kudos
Message 13 of 15
(180 Views)

Yes. I am closing my the port at the end. 

0 Kudos
Message 14 of 15
(172 Views)

Why is it that sometimes when I run LabVIEW it gets stuck with some data and when I try to move the IMU, the data does not change. Is it because my computer is slow or something?

 

0 Kudos
Message 15 of 15
(169 Views)