home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.univie.ac.at!alijku11!jsixt
- Message-ID: <19930112.175505208029.NETNEWS@ALIJKU11>
- Date: Tue, 12 Jan 1993 17:55:05 CET
- Newsgroups: comp.windows.x
- From: jsixt@risc.uni-linz.ac.at (Johannes Sixt)
- Distribution: world
- References: <1993Jan11.150749.17020@lambda.msfc.nasa.gov> <1993Jan11.172359.9320@ods.com>
- Organization: RISC, J.K. University of Linz, Austria
- Subject: Re: timers
- Nntp-Posting-Host: 193.170.36.100
- Lines: 39
-
- In article <1993Jan11.172359.9320@ods.com>, chris@ods.com (Chris Atkins) writes:
- > Gary Lasseter (lasseter@lambda.msfc.nasa.gov) wrote:
- >
- > : I'm working on a real-time telemetry display application supporting NASA/MSFC. I'm looking for information regarding the most
- >
-
- I do not know what this is. Let's assume it's some sort of animation. I.e.
- graphics output is necessary.
- >
- > Gary,
- > You are correct about the Xt timers not being extremely accurate. I believe
- > the correct questions are:
- > 1)How can you get accurate timers in a non realtime environment(I assume you arerunning in a unix environment)? You can't.
- > 2)Assuming you could find a solution to 1, how can you get this to work in the
- > Xt environment?
-
- Try the following:
- Seperate your program into 2 programs, one for managing the graphical user
- interface (using Xt/Motif), the other does the accurate timing and the animation.
-
- More accurately:
- 1. When the GUI starts up it realizes a large Widget of some class
- (DrawingArea or Core, for example) where the graphics shall go. It
- puts the XID of its window in some root window property, which can be
- fetched by other applications.
-
- 2. Then the GUI forks, execing the animation program. The animation
- program opens a display connection and fetches the XID of the window
- which it shall paint to from the root window property.
-
- Communication between the programs can be done with pipes, XtAppAddInput() (in the
- GUI), and select() (in the animation program). Of course, you can tell the XID
- of the drawing window to the animation program through these pipes.
-
- If the thing you mention is some sort of real time control it gets easier because
- you need not tell the XID of the window to the control program but you only need
- the communications part. You still do forking and execing.
-
- -- Hannes
-