LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use Labwindows/CVI to realize the real-time control based on Windows NT without any subsystem, such as RTX?

The system that I am working on must be developed in Labwindows/CVI in Windows environment, but it needs the control cycle of less than 10 ms, so the real-time control is necessary, and the rule is very strict. I have learned that Windows NT can provide the real-time interrupt response, but I don't know how to program, I am eager to get some help to solve this problem as fast as possible, thank you very much.
0 Kudos
Message 1 of 4
(3,492 Views)
If the rule is very strict there is no way to accomplish this with standard Win-NT capabilities. IMO the best way would be to use one of the many real-time add-ons (hardware and/or software) for NT. You can write a low-level driver yourself but this would probably cost more than buying an add-on system. Unfortunately NI is not supporting their real-time boards from CVI yet. I am using a Keithley system called ADwin for this type of application.

Alptekin
Message 2 of 4
(3,492 Views)
This is only a suggestion (I have not studied this subject till now).
For a similar problem, some weeks ago a Microsoft technician suggested me to use multimedia timers, assuring they are the best you can obtain by Windows in term of accuracy and speed.
I looked at the Windows SDK that ships with CVI and found some documentation: it sounds good, but as I already told you, I have had no time to try it.
Hope it helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 4
(3,492 Views)
Do a search on Google for these Windows API calls:

QueryPerformanceFrequency
and
QueryPerformanceCounter

You need the QueryPerformanceFrequency call to get the number of clocks per
second for your machine and then use QueryPerformanceCounter to get begin
and end counts.

There is no better timer in windows for high resoultion timing.

Russ
Message 4 of 4
(3,492 Views)