Solved

Realtime and WinNT

Posted on 2000-03-10
3
257 Views
Last Modified: 2013-11-20
I'm currently developing an application under NT, which periodically sends data to the parallel port every 50 ms with a tollerance of max +/- 125ms.

I tried several ways to implement this with Multimedia Timers and with own threads with highest thread priority.

But in some (bad) cases, events do not apeare for 2,5 seconds.

Are there solutions do solve this problem? Or do I have to write VxD's to take control of this realtime problem???
0
Comment
Question by:Coma
  • 2
3 Comments
 
LVL 32

Expert Comment

by:jhance
Comment Utility
VxDs are not an option under NT since these are a Win9x feature only.  A device driver is one possibility but remember that NT itself is NOT a RTOS (Real Time Operating System).  An RTOS (like VRTX, VxWorks, pSOS, and others) guarantee a certain latency.  NT doesn't do this so, literally, it's response to an event can take forever.

Your requirement of 50mS +/- 125mS might be achievable, however, with a device driver.  Of course, I'd be really careful with the - 125mS side of the tolerance....

The remaining problem here is that NT doesn't guarantee that even a device driver will get serviced under all circumstances.  If another device driver has control of the system, NT cannot give control to your driver until the one with control gives it up.  If this is a critical situation you might consider a hardware assist solution where it can continue to operate for a reasonable period without any software attention.  Another possibility is one of the NT add-ons that run underneath NT and provide real-time services in an NT environment.
0
 

Author Comment

by:Coma
Comment Utility
Tanx jhance. But what do you mean with "Another possibility is one of the NT add-ons that run underneath NT and provide real-time services in an NT environment"?
0
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
Comment Utility
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now