From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone knows how to achieve software interrupt such that data are retrieved every ms, processed and o/p!

I am trying to use Borland C to write a program such that it is able to retrieve raw data and convert into the scaled voltage every 1 ms. After which the converted data is passed into a PID algorithm which is then output from one of the DAQ channel. IN simple words, i am trying to write a software interrupt to read data every 1 ms. Does anyone knows how to do it?
DAQ card i am using is AT-MIO-16DE-10.
Thnx
0 Kudos
Message 1 of 5
(4,076 Views)
Hi Ascension,

This is not what you want to hear, but,
you can not do this in a Windows environment!
This can only be done in a real time environment.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(4,076 Views)
Actually NI has the LabVIEW RT that runs in a RT OS.
You can develop PID applications very easy. Keeping the RT performance that a control application needs

Blasioz Valenzuela
National Instruments

Ps.If you would like to get more information about Labview RT you can check:

http://www.ni.com/rt
0 Kudos
Message 3 of 5
(4,076 Views)
What RT OS are you referring to? Is there any alogrithm or NI functions that i can make use of to achieve "software interrupt"? Pardon me if i sound ignorant about this!
0 Kudos
Message 4 of 5
(4,076 Views)
Hello ascension,

We have our RT OS that runs in our Hardware. Right now, we have three differenst types of hardware that can run an RT OS and then download code developed on LabVIEW RT.
PXI platform, you can connect in this
platform DAQ devices as yours.
FieldPoint.- Distributed I/O
7030 DAQ boards, for PCI or PXI

To achieve interrupts in LabVIEW RT we have a function called AI Single scan.vi.
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/b917641af3cf3879862568db00704da4?OpenDocument
I am going to give also another link to more information about developing applications in LabVIEW RT
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/42bab3762914fa6486256a5c007ef
ada?OpenDocument

if you need more info specific for DAQ and borland you can go to www.ni.com/ask
and send an email to DAQ

Regards,
Blasioz Valenzuela
0 Kudos
Message 5 of 5
(4,076 Views)