Click here to Skip to main content
15,916,838 members
Home / Discussions / C#
   

C#

 
GeneralRe: salam Pin
Keith Barrow5-Jan-11 21:31
professionalKeith Barrow5-Jan-11 21:31 
GeneralRe: salam Pin
Pete O'Hanlon5-Jan-11 22:17
mvePete O'Hanlon5-Jan-11 22:17 
GeneralRe: salam Pin
fjdiewornncalwe6-Jan-11 16:17
professionalfjdiewornncalwe6-Jan-11 16:17 
AnswerRe: salam Pin
katayoonkadri13655-Jan-11 17:41
katayoonkadri13655-Jan-11 17:41 
GeneralRe: salam Pin
OriginalGriff5-Jan-11 20:47
mveOriginalGriff5-Jan-11 20:47 
GeneralRe: salam Pin
JOAT-MON6-Jan-11 12:12
JOAT-MON6-Jan-11 12:12 
QuestionStreaming real-time data to a file - recommendations? [modified] Pin
Wjousts5-Jan-11 8:11
Wjousts5-Jan-11 8:11 
AnswerRe: Steaming real-time data to a file - recommendations? Pin
Luc Pattyn5-Jan-11 8:34
sitebuilderLuc Pattyn5-Jan-11 8:34 
With the low volume you have there should be no problem at all (assuming you want to stream it to disk).

1.
Yes you could keep it in memory and output it all when done.

2.
You could also store it in a file; if you keep the stream open, it will not slow down over time, all that will happen is it will periodically be written to disk in chunks of one or a few sectors. For maximum performance, you could store binary data; if ASCII data is needed a post-processing step could be considered. (For your throughput, you could write ASCII text right away).

3.
And finally you could store the data in a database (on the same or a different machine), again in the appropriate numeric format. You could then load it into Excel faster than through a CSV file.


I have one advice on the data capture: whatever means you use for timing it all, in my experience it is wise to store measured time (maybe just DateTime.Now), not calculated time. That way, even when something would go wrong for a while (your system suddenly being very busy at something else) you would still store sensor values with their matching time values.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] [My CP bug tracking] Nil Volentibus Arduum
Season's Greetings to all CPians.

GeneralRe: Steaming real-time data to a file - recommendations? Pin
Wjousts5-Jan-11 9:48
Wjousts5-Jan-11 9:48 
GeneralRe: Steaming real-time data to a file - recommendations? Pin
Luc Pattyn5-Jan-11 9:52
sitebuilderLuc Pattyn5-Jan-11 9:52 
QuestionRe: Steaming real-time data to a file - recommendations? Pin
Paladin20005-Jan-11 10:11
Paladin20005-Jan-11 10:11 
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 
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 

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.