03-02-2018 10:06 AM
@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.
03-02-2018 01:44 PM
How would I do the clean up?
03-02-2018 02:37 PM - edited 03-02-2018 02:39 PM
@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.
03-02-2018 05:44 PM
Yes. I am closing my the port at the end.
03-02-2018 05:51 PM
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?