LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Aquiring from dll and Aquiring from Analog In at the same time

I have the question of can I aquire from a dll that is calling an external card  for data and aquiring from Analog In from a National Instruments card at the same time in the same vi?  What I am seeing is a delay of whatever the sample rate is on the National Instruments card, the dll card is getting run only once during that time.  So for 1000 samples/sec of the Analog In, I get only 1 sample/sec from the dll.  For 100 samples/sec of the Analog In, I get only 1 sample/sec from the dll.  Is this true?  or is there a way around this?  The data is going to be dynamically linked so I need them aquired at the same time.  Thanks for any help
0 Kudos
Message 1 of 2
(2,665 Views)
Hi,

Thankyou for posting to the National Instruments Discussion Forums.

You should not have any interference between the NI-DAQmx driver and your custom DLL. I would be interested in looking at the performance of the dll without any DAQmx code in the loop. What kind of performance does the DLl by itself give you?

Essentailly the DAQmx driver sets up a buffer to take hardware timed measurements and allows you to sample at rates faster than the loop time of your LabVIEW code.


Abhinav T.
Applications Engineering
National Instruments India

LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals
0 Kudos
Message 2 of 2
(2,648 Views)