Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Better understanding of NI 6212

Hi ,

 

I have a general question about the way I can use my NI 6212.

 

I want to program it using CVI but I need to know something before I start.

 

The NI 6212 is a simultaneously device which means it can generate / acquire in multiple channels but is it possible to set the device to acquire and while he acquire to do other things in the software...

 

Basically what I'm trying to understand is if this device is "stand alone" meaning you set it to acquire and at the time it acquire you can do other softwareloops.... 

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 1 of 2
(2,724 Views)

Hi Kobi,

 

Yes, you can run other code within your DAQmx coding.  However, do know that running other code within DAQmx loops may slow down your DAQmx reads which could lead to buffer overflows.

 

If you are wanting run code simulatenously, DAQ and other code, you may want to use multithreading.

http://zone.ni.com/devzone/cda/tut/p/id/3663

http://zone.ni.com/devzone/cda/tut/p/id/3066

 

Also, I'd recommend looking at the DAQmx examples located in C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\. You can check out what a DAQmx continuous acquisition looks like and how it allows for other code to run while it is acquiring.

 

Let me know if I misunderstood your question. I was a little unsure of what you meant exactly.

 

Allie

0 Kudos
Message 2 of 2
(2,644 Views)