Console Graphics and Timing Events and Real Time programming

Console Graphics and Timing Events and Real Time programming

Post by David E. Re » Sat, 26 Jun 1993 04:55:32

  My question has a few parts, and I am hoping someone can answer at
least some of them.  The basic goal of what I want to do is thus: I
want to be able to display an image to the screen a very precise
amount of time.  I obviously want to be able to define how long this
image should appear, it needs to be accurate to 1/30ths of a second,
and in most cases my choice will be somewhere between about 1/30th of
a second to about 2 seconds.  Then I want the image to go away.  As
soon as the image pops up, I want to begin timing how long it takes
for either a key on the keyboard to be pressed, or for a signal to
come in on the RS-232 port.  This timing needs to be acurate to the
millisecond range.  I expect most events to take anywhere from about
50ms to 2 seconds.  I want to be able to do this so that we can test
patients on Sparc Classics and LX's (and the occasional Sparc 10) (I'm
the sys. admin for the Cognitive Neuropsychology Science Dept. of
Johns Hopkins Univ.)

  The hardware will be Sparc Classics and LX's running Solaris 2.X.
When the machines are used for testing, no one will be running any
processes on them.  (They will be in a pretty much single user mode.
No inetd or anything like that.  There will be remotely mounted disks
but that's basically it.)  I figure the only way to do this would be
to do direct console graphics by copying a pixmap to the framebuffer.
(I have graphics routines to actually render the pixmap so that's not
part of my question).  Also, I figure that I will probably have to be
in real time mode.  That too shouldn't be a problem (I think)

  Now, my questions are the following.  Can anyone point me to sources
of programs written for Solaris 2.x (or 4.1.x that can be ported) that
do console graphics?  What about general books or sources of
information regarding console graphics programming?  And what about
real-time programming? (I find Answerbook a little less than helpful)
Is this idea even feasible?  Is there a better approach? (I thought
that trying to use openwin or X would definately not work).

  Thanks.  I hope my question is well enough phrased to be

-dave reed


1. "Real-Time" Time Display in Console

hi. i have been able to write a simple program that displays the
current time, formatted to how i want, using 'strftime' from the
console. i've played around with it, and no problems.

however, i am now wanting to get a similar result in the console, but
have the displayed time constantly updating. "real-time", so to speak,
instead of just displaying the time of the program's execution.

is there anyway to get this done, so i can have the time displayed
constantly in a console? if not console, could someone point me in the
right direction to doing this in a GUI, X Windows System interface?

thanks all.

Sent via
Before you buy.

2. Printer Driver

3. Matrox Mystique ands X.

4. Xfree and toshiba satellite pro 4200 series

5. IEE Event: Designing Embedded Real-Time Systems

6. Will this ever change?

7. convert UT time in local time / local time in UT time

8. HUP and telnetd

9. time time time how can I tell the time

10. gdb problem: SIG38, Real-time event 38.

11. X Server Time is REAL time of day???

12. System time warping around real time problem - please help

13. Mixed Time-Share & real-Time scheduling