C# Serial Reading Continually Problem & Force Bar
January 13, 2014
Here is my setup:
- Windows 7 with Visual Studio 2012 Express.
- Coding in C#.
- Arduino UNO providing serial inputs to the computer (via USB).
- Flexiforce Pressure Sensor plugged into the Ardiuno (and working).
So here is what my interface in the C# program looks like, with the names of the items beside it:
And here is the code I have at the moment:
That is the cleanest I can make it look.
I have tried many, many tutorials and pieces of code, but I just cannot get my head around how to get continual reads of the information coming off the serial port, and make it relate to anything in my C# program.
So I thought I'd just see if I could get continual reads into the ForceTextbox, once the GetForceButton is pushed.
Can anyone help me with what code needs to go into the private void GetForceButton_Click section, so that the reads from the serial port are populating the ForceTextbox?
Thanks for any help.