Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
AnswerRe: Steaming real-time data to a file - recommendations? Pin
Luc Pattyn5-Jan-11 10:24
sitebuilderLuc Pattyn5-Jan-11 10:24 
GeneralRe: Steaming real-time data to a file - recommendations? Pin
Paladin20005-Jan-11 10:35
Paladin20005-Jan-11 10:35 
GeneralRe: Steaming real-time data to a file - recommendations? Pin
Luc Pattyn5-Jan-11 10:47
sitebuilderLuc Pattyn5-Jan-11 10:47 
GeneralRe: Steaming real-time data to a file - recommendations? Pin
Wjousts6-Jan-11 3:57
Wjousts6-Jan-11 3:57 
AnswerRe: Steaming real-time data to a file - recommendations? Pin
Luc Pattyn6-Jan-11 4:05
sitebuilderLuc Pattyn6-Jan-11 4:05 
GeneralRe: Steaming real-time data to a file - recommendations? Pin
Wjousts6-Jan-11 11:49
Wjousts6-Jan-11 11:49 
AnswerRe: Steaming real-time data to a file - recommendations? Pin
Wjousts6-Jan-11 3:57
Wjousts6-Jan-11 3:57 
AnswerRe: Streaming real-time data to a file - recommendations? Pin
Kythen6-Jan-11 9:16
Kythen6-Jan-11 9:16 
I had to do something very similar at a previous job. I set it up so that each data source (your sensor) had it's own reader thread. This thread parsed out the data and made note of other things like timing, etc. Each reader had a collection of data sinks, which was just a generic term for a consumer of the data. The reader would pass on each chunk of data to each data sink, which in turn would do whatever it wanted with the data. If you try something similar, you could have both your real-time graph and the file be data sinks. The real-time graph data sink could have it's own thread and 60-second circular queue. The file data sink could use its own queue or write the data directly to the file. Personally, I'd have the data file use another thread and queue and write data to the file in chunks of say 5-10 seconds or so. It's fast enough that you shouldn't lose too many data points if something goes wrong, and it's infrequent enough that things should not get bogged down.
GeneralRe: Streaming real-time data to a file - recommendations? Pin
Wjousts6-Jan-11 11:52
Wjousts6-Jan-11 11:52 
AnswerRe: Streaming real-time data to a file - recommendations? Pin
jschell6-Jan-11 9:21
jschell6-Jan-11 9:21 
GeneralRe: Streaming real-time data to a file - recommendations? Pin
Wjousts6-Jan-11 11:55
Wjousts6-Jan-11 11:55 
AnswerRe: Streaming real-time data to a file - recommendations? Pin
carbon_golem7-Jan-11 5:14
carbon_golem7-Jan-11 5:14 
Questioncall an opener form method Pin
mabrahao5-Jan-11 3:17
mabrahao5-Jan-11 3:17 
AnswerRe: call an opener form method Pin
Paladin20005-Jan-11 3:43
Paladin20005-Jan-11 3:43 
GeneralRe: call an opener form method Pin
mabrahao5-Jan-11 3:50
mabrahao5-Jan-11 3:50 
GeneralRe: call an opener form method Pin
Paladin20005-Jan-11 3:59
Paladin20005-Jan-11 3:59 
GeneralRe: call an opener form method Pin
mabrahao5-Jan-11 4:19
mabrahao5-Jan-11 4:19 
GeneralRe: call an opener form method Pin
Paladin20005-Jan-11 4:22
Paladin20005-Jan-11 4:22 
GeneralRe: call an opener form method Pin
mabrahao5-Jan-11 4:27
mabrahao5-Jan-11 4:27 
GeneralRe: call an opener form method Pin
Paladin20005-Jan-11 4:41
Paladin20005-Jan-11 4:41 
AnswerRe: call an opener form method Pin
Blue_Boy5-Jan-11 4:05
Blue_Boy5-Jan-11 4:05 
GeneralRe: call an opener form method Pin
Luc Pattyn5-Jan-11 5:31
sitebuilderLuc Pattyn5-Jan-11 5:31 
AnswerRe: call an opener form method Pin
dan!sh 5-Jan-11 5:19
professional dan!sh 5-Jan-11 5:19 
AnswerRe: call an opener form method Pin
fjdiewornncalwe5-Jan-11 6:19
professionalfjdiewornncalwe5-Jan-11 6:19 
GeneralRe: call an opener form method [modified] Pin
Paladin20005-Jan-11 6:33
Paladin20005-Jan-11 6:33 

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.