Solved

Realtime and WinNT

Posted on 2000-03-10
3
291 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
ID: 2604426
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
ID: 2604587
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
ID: 2604626
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Complete beginner needs help making a cron job 9 125
method notes when mouse over in eclipse 5 87
viewing source code from eclipse 13 110
Is there a simple front-end menu system. 9 103
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

837 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