Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

MULTITHREADING SUPPORT

Hi dears;
i want to ask you multithreading support in NIDAQ board.Actually there are 8 threads running and they are getting data from their corresponding channels For example  thread 1 is getting from channel one thread 2 is getting from channel 2 and so on...
how is it possible to do so.Please send me such an examaple in VC++ Or in C.Is it possible that all threads can use the same type of API and daqboard at the same time is no why and how this can be possible.Please tell as soon as possible.thanks
                                                                                           ajmal
Lead Data Scientist
0 Kudos
Message 1 of 4
(3,587 Views)

Hi ajmal-

The NI-DAQmx driver is multi-thread safe.  The Traditional NI-DAQ and NI-DAQmx Base drivers are not.

That being said, it is possible for the NI-DAQmx driver to access the same board through multiple threads at the same time.  It is NOT possible to run multiple threads (or even multiple tasks in the same thread) of the same type of operation at the same time.  So, all analog input operations must be in the same thread and task.  The same restriction applies to analog output operations. 

Examples for ANSI C and NI-DAQmx are available in this location on your hard drive "C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C."  You will need to follow these methods and the methods outlined in the DAQmx C Function Reference Help file that installs with the NI-DAQmx driver.

I hope this helps-

Tom W
National Instruments
0 Kudos
Message 2 of 4
(3,574 Views)
hi sir
 thanks for replying ,please tell how i can upgrade my driver i have pci-6025e daq board and currently running driver is traditionad NIDAQ 6.9.2 version  please suggest the driver to install also the procedure.thanks bye
                                                                               ajmal
Lead Data Scientist
0 Kudos
Message 3 of 4
(3,571 Views)

Hi ajmal-

The installer for both Traditional NI-DAQ 7.4 and NI-DAQmx 7.4 is available here.

Instructions for updating this driver software is available in the "install.txt" file from the same download page or this link

I hope this helps-

Tom W
National Instruments
0 Kudos
Message 4 of 4
(3,551 Views)