Click here to Skip to main content
15,898,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Image rotation using RotateTransform()???? Pin
Mark Salsbery12-Mar-08 18:26
Mark Salsbery12-Mar-08 18:26 
GeneralRe: Image rotation using RotateTransform()???? Pin
TooShy2Talk12-Mar-08 19:08
TooShy2Talk12-Mar-08 19:08 
QuestionRe: Image rotation using RotateTransform()???? Pin
TooShy2Talk12-Mar-08 19:53
TooShy2Talk12-Mar-08 19:53 
AnswerRe: Image rotation using RotateTransform()???? Pin
Rajkumar R12-Mar-08 21:05
Rajkumar R12-Mar-08 21:05 
GeneralRe: Image rotation using RotateTransform()???? Pin
TooShy2Talk12-Mar-08 22:26
TooShy2Talk12-Mar-08 22:26 
GeneralRe: Image rotation using RotateTransform()???? Pin
Mark Salsbery13-Mar-08 6:34
Mark Salsbery13-Mar-08 6:34 
QuestionThread Response Time Pin
jonsey2984712-Mar-08 17:15
jonsey2984712-Mar-08 17:15 
GeneralRe: Thread Response Time Pin
krmed13-Mar-08 1:59
krmed13-Mar-08 1:59 
If you are truly talking about serial port usage, the data may be sent by your controller at 500K, but remember that for serial communications, every byte contains eight bits of data, plus (normally) one start bit and one stop bit.

Most serial ports cannot handle more than 115,200 baud (although perhaps some USB-Serial adapters can do better). Additionally, most serial ports provide a buffer that can hold more than one character - typically up to 16 - before you need to read the data.

Given that, at 500000 bps, with 10 bits/character gives 50000 Bytes per second. If you allow the port to buffer the data (let's say 16 characters), then you have 3125 full buffers per second which means a read every 320 microseconds.

The other question is how often does your controller actually send that data. It would appear you may need to send a 7-byte packet to the controller and then you get a 7-byte response from it. If that's the case, you obviously cannot get a response as often as you are calculating - in fact it would be about every 640 microseconds.

If you only query your controller periodically, then you won't get a response until you query, so you're in control of how often you must read the serial port.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

GeneralRe: Thread Response Time Pin
jonsey2984713-Mar-08 12:20
jonsey2984713-Mar-08 12:20 
QuestionRe: Thread Response Time Pin
David Crow13-Mar-08 2:24
David Crow13-Mar-08 2:24 
GeneralRe: Thread Response Time Pin
jonsey2984713-Mar-08 12:30
jonsey2984713-Mar-08 12:30 
QuestionRe: Thread Response Time Pin
David Crow14-Mar-08 2:39
David Crow14-Mar-08 2:39 
AnswerRe: Thread Response Time Pin
jonsey2984718-Mar-08 4:30
jonsey2984718-Mar-08 4:30 
Generalopaque pointer Pin
George_George12-Mar-08 16:36
George_George12-Mar-08 16:36 
GeneralRe: opaque pointer Pin
Maxwell Chen12-Mar-08 18:30
Maxwell Chen12-Mar-08 18:30 
GeneralRe: opaque pointer Pin
George_George12-Mar-08 18:35
George_George12-Mar-08 18:35 
GeneralRe: opaque pointer Pin
Maxwell Chen12-Mar-08 18:42
Maxwell Chen12-Mar-08 18:42 
GeneralRe: opaque pointer Pin
George_George12-Mar-08 18:49
George_George12-Mar-08 18:49 
GeneralRe: opaque pointer Pin
Maxwell Chen12-Mar-08 18:54
Maxwell Chen12-Mar-08 18:54 
GeneralRe: opaque pointer Pin
George_George12-Mar-08 18:56
George_George12-Mar-08 18:56 
GeneralRe: opaque pointer Pin
Eytukan13-Mar-08 7:03
Eytukan13-Mar-08 7:03 
AnswerRe: opaque pointer Pin
Maxwell Chen13-Mar-08 9:24
Maxwell Chen13-Mar-08 9:24 
GeneralRe: opaque pointer Pin
George_George13-Mar-08 15:14
George_George13-Mar-08 15:14 
GeneralRe: opaque pointer Pin
Eytukan13-Mar-08 16:06
Eytukan13-Mar-08 16:06 
GeneralRe: opaque pointer Pin
George_George13-Mar-08 16:32
George_George13-Mar-08 16:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.