Question Visual Studio problem with Serial port data transmission with arduino

Cosmic

New member
Joined
May 29, 2023
Messages
1
Programming Experience
3-5
Hello Csharpers,

I built a flight computer about a month ago and I want to visualize the data coming out of it through a Windows Forms App. There isn't much online but I managed to retrieve the inertial measurement unit's gyroscopes and stuff through the serial port. However, after rotating the flight computer, there is a noticeable delay when it's trying to display on the textBoxes, and after a few seconds, it seems to freeze on a rotation angle. It works fine when I output a single angle (such as the X axis) in the serial monitor, however more than that, it freaks out. Anyone know how to solve for this? Thanks
 
Without seeing your code, we can only guess at what the problem is.

The typical beginner mistakes are:
  • Trying to do all the work of in the UI thread.
  • Trying to suck in all the data in a single data available notification.
  • Trying to poll for data incorrectly.
  • Using Application.DoEvents() in attempts to make their UI not freeze.
 

Latest posts

Back
Top Bottom