We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Input/Output Question
Page Index Toggle Pages: 1
Input/Output Question (Read 242 times)
Input/Output Question
Jun 2nd, 2008, 11:50pm
 
hi all,
I have a question concerning inputing and outputing information...

Here's the setup: I have a program that is receiving input once per second from an outside source. Currently, I have the program set up to log all of the information in an output folder upon pressing a key. This works well, but...

My question: Is there any way to have the output folders update every time the program receives new data, instead of all at once after all of the data has already been transmitted?

Thanks in advance,
dotch101
Re: Input/Output Question
Reply #1 - Jun 3rd, 2008, 2:21pm
 
The question is a bit too generic to be easy to answer. It depends on the input source, or, rather, on the library that handles it: does it have to be polled regularly, or does the library use a callback to notify of new input?
Actually, in either case, I don't see why you cannot output the gathered data, either on receive event or after polling event.
Page Index Toggle Pages: 1