Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » [SUCCESS] Struggle with Serial port class
Re: Struggle with Serial port class [message #27813 is a reply to message #27811] Thu, 05 August 2010 10:00 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
I would guess you need a worker Thread that collects data from a serial port and writes it to a buffer (using a Mutex to be thread safe of course). The main thread can then update the display from the buffer using a timer.

I've never used the class myself so that's the best advice I can give.

For threading see the GuiMT threading example/reference and remember to set your project to compile with MT flags.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: THISBACK
Next Topic: Changing the slider thumb
Goto Forum:
  


Current Time: Wed Aug 20 10:13:06 CEST 2025

Total time taken to generate the page: 0.00613 seconds