4.71429

4.7 | 7 ratings Rate this file 149 downloads (last 30 days) File Size: 4.31 KB File ID: #3522

rtc: a pedestrian real-time clock figure

by us

 

29 May 2003 (Updated 03 Feb 2006)

Code covered by BSD License  

creates a versatilely configurable real-time clock in a figure

Download Now | Watch this File

File Information
Description

- creates a real-time clock (using a timer object), which runs smoothly in the background while the user continues with her daily ML chores.
- all aspecects of the display (geometry) are user-definable.
- the clock can be stopped and restarted (toggled)

help rtc
  RTC a pedestrian Real-Time Clock
  - start
  [par] = rtc
  - start with previously saved geometry
  [par] = rtc('i',par);
  - stop
  [par] = rtc % toggle
  rtc s % delete clock
  - display/retrieve current geometry parameters
  rtc d
  par=rtc('d');
  - update geometry
  [par] = rtc('u',par);
  - show parameter description
  rtc h
  - save current geometry in mat-file <fn> var <v>
  [par] = rtc('S',fn);
  - reload geometry from mat-file <fn> var <v>
  [par] = rtc('L',fn);
 
  EXAMPLE
  rtc; % start real-time clock
  par=rtc('d'); % get current geometry
  par.F.w=[[300 300]... % change figure position
  [400 400]];
  par.F.col=[.5 .75 .75]; % change figure bg color
  par.H.mark='diamond'; % change HR marker
  par.H.fcol=[1 1 0]; % change HR color
  par.M.fcol=[.4 .5 .75]; % change MIN color
  par.M.size=3; % change MIN size
  rtc('u',par); % apply
  pause(5); % run
  rtc; % stop
  pause(5); % wait
  rtc; % cont

MATLAB release MATLAB 6.5 (R13)
Other requirements tested on wintel boxes (2k/xp)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
31 Dec 2003 Maurice Hendrix

Cool!

07 Apr 2004 Brett Shoelson

Very nice applet, very pretty code! Nice work, Urs.

18 Nov 2004 Zahid Ullah Khan

Its great :-)

18 Jul 2005 hu jin

helpful. effective.I am using it display the Positon read from the daq card! Thanks.

03 Feb 2006 Nick Cheilakos

Nice work

03 Jun 2006 almohanad makki  
06 Dec 2006 Lisy Yera

Esta especial

21 Aug 2007 kiko kiko

really great !!!

28 Oct 2009 Dimuthu Senanayaka

nice...sir

Please login to add a comment or rating.
Updates
04 Jun 2003

updated help

04 Jun 2003

enhanced help and description

06 Jun 2003

got rid of an annoying typo (being quite anal)

30 Jan 2006

changed category

03 Feb 2006

change of category and a small typo in the help section

Tag Activity for this File
Tag Applied By Date/Time
clock us 22 Oct 2008 07:02:19
fun us 22 Oct 2008 07:02:19
realtime us 22 Oct 2008 07:02:19
now us 22 Oct 2008 07:02:19
time us 22 Oct 2008 07:02:19
date us 22 Oct 2008 07:02:19
timer us 22 Oct 2008 07:02:19
figure us 22 Oct 2008 07:02:19
utility us 22 Oct 2008 07:02:19
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com