Solved

Realtime and WinNT

Posted on 2000-03-10
3
309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add content to output file 4 72
Process filename extension 3 218
no14 challenge 14 77
EvenOdd challenge 10 160
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Suggested Courses

734 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