how can i know the time with BS2 ? (DUPLICATE THREAD)
farsad
Posts: 27
dear friends:
i want to record some data with my BS2 every one hour (like a data logger). my problem is that i don't know when to recored the data and how i can use the BS2 clock for knowing the time. for example, in QBasic or VBasic there is a Time function which returns the current time and i can use it and collect my data every one hour. is there any similar function in PBasic?
thanks
Post Edited By Moderator (Chris Savage (Parallax)) : 7/23/2007 2:14:58 PM GMT
i want to record some data with my BS2 every one hour (like a data logger). my problem is that i don't know when to recored the data and how i can use the BS2 clock for knowing the time. for example, in QBasic or VBasic there is a Time function which returns the current time and i can use it and collect my data every one hour. is there any similar function in PBasic?
thanks
Post Edited By Moderator (Chris Savage (Parallax)) : 7/23/2007 2:14:58 PM GMT
Comments
Using SLEEP or NAP has the advantage that power consumption drops markedly during the wait. This is very handy for data logging. See this website for some discussion: www.emesystems.com.
http://forums.parallax.com/forums/default.aspx?f=5&m=203495
Rgds,
QuattroRS4
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
Post Edited (QuattroRS4) : 7/23/2007 1:59:49 AM GMT