Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading from DAQMx AI Channel to slow!

Hello!

I have big problems, with reading MultiChannels from may DAQMX MIO-16E-1!
I just stopped the time between the console writeline as you can see in the code below: it takes 69msec !!!
why that? I have 200 measure points in one second, and I take 10 out of them, so it can only take 5msec if you calculate!
P
lease help me to optimize, so that I can get 10 samples in real time!

Yours, Klaus

0 Kudos
Message 1 of 4
(3,274 Views)
hello klaus,

as far as i can see from your program-code, you do the configuration of your data acquisition inside the main while-loop, where also the time output is done.
so time, which is shown, always includes the configuration.

i suggest to put the channel and timing configuration outside the while loop, so that this is done only once in the program. then the reading time should also be reduced.

regards,

robert h
National Instruments
0 Kudos
Message 2 of 4
(3,263 Views)

hi!

Thanks, in my big program, I already have the things in the constructor!
I found my mistake: the GUI is to slow.. it always taks 15ms to show new values!

BUT: I have another problem with that kind of reading MultiSamples:
I took an multimeter to check wheter the data is in real time or not.. and it isn't ! The shown values are old values..

Are there any problems concerning to read the samples? do I read to much, because they are old.. I mean 1-4 sec after i measure the real voltage, on my program, the real voltage is shown!!!

I haven't had the problems with ReadSingleSamples!

Yours, Klaus

0 Kudos
Message 3 of 4
(3,263 Views)

see my response  here about the old data.

Bilal Durrani
NI
0 Kudos
Message 4 of 4
(3,253 Views)