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.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

real time programming using m series

Hello everyone,

I have an m-series board (pci 6259) with which I want to perform realtime programming.
The task is to perform about 20 analog input operations in the fastest possible way every 100 to 200 usecs whereby the first scan should be externally triggered.

For a start, I wrote a program which just scans 1 channel using a single scan in a loop with a hardware trigger.

Unfortunately, it turns out to be far too slow. Any suggestions on how to improve the 'realtime' performance ?

Cheers

HarryG

0 Kudos
Message 1 of 5
(2,864 Views)

Hi Harry,

What operating system and programming language are you using?

Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 2 of 5
(2,822 Views)
Hello,

I use w2000 and LabView 7.0

Cheers

Harry G
0 Kudos
Message 3 of 5
(2,816 Views)

Thanks Harry,

Could you post the program you've already written?

Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 4 of 5
(2,814 Views)

Hi Harry,

I found your other post about increasing the channel count.

It's tough to get real time performance on a Windows OS as there can be alot going on in the background that affects the acquisition rates. However you are within the spec of the board so with efficient programming you should improve performance.

Rather then use the DAQ Assistant, you should use the lower level  DAQmx functions, these take up less memory.
 
Make sure you don't have unnecessary code inside loops (eg initialise functions). If you want to do analysis, try, for the most part, to do it offline.
 
This tutorial may help, it describes most of the functions you need in DAQ:
http://zone.ni.com/devzone/conceptd.nsf/webmain/40522A58794A358B86256E7B006B8D69
 
The following link has some good info also. Have a look at the multifunction synchronisation section:
 
Hope this helps!
Sarah
 
 
Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 5 of 5
(2,810 Views)