Solved

Realtime and WinNT

Posted on 2000-03-10
3
317 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

Myth Busting: MongoDB Scalability (it scales!)

I was talking with one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. He mentioned to me that several customers have been telling him that “MongoDB doesn’t scale!” MongoDB’s scalability was in question?

My response was, “Is that a joke?"

Question has a verified solution.

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

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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

623 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