10-18-2006 03:02 PM
10-19-2006 12:24 PM
Hey Tdk,
Good news, you can use standard C to call any DAQmx functions.
Step 1: Install DAQmx driver. Free download http://digital.ni.com/softlib.nsf/websearch/7FEAEE6A4B4AA836862571C00064E6CA?opendocument&node=132060_US
Step 2: Open Start»National Instruments»NI-DAQ»NI-DAQmx C Reference Help
This document will help you understand all functions.
Step 3: Start with an example. Browse C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C
You will notice you can use other programming languages. If you need C++, you will use VB .NET or C#. The help is called DAQmx .NET Framework.
Good luck!
Yardov
06-03-2010 03:48 AM
Hey Yardov :
Thinks for your info, now i am in the kind of same stiuation with Tdk but I use VC6.0, I finished step 1, 2,and 3. I put a C file from these examples and the NIDAQmx.h, the head head file into a project, however I ran into some link error2001: unresolved external symbol_ DAQmxClearTask@4..... like this
so, do you have any idea about this problem?
Cris
06-04-2010 10:24 AM
Hi Cris,
Have you tried running the shipping examples as mentioned by Yardov? These file are installed with the free DAQmx driver from ni.com to Start»All Programs»National Instruments»NI-DAQ»Text-Based Support. Please give these examples a shot to see if you encounter the same error.
Best,
06-05-2010 07:07 AM
Hi Adam,
thinks for your reply, It's my complier's problem, i reconfigured it and got the problem solved. by the way , i noted that all the examples provided by DAQmx are about acquire data by with a single channal, can you show any code about acquire a continuous amout of data with two or more channels? thinks
06-07-2010 11:10 AM
Hi Cris,
Here is a good document that describes the syntax for DAQmx channels, which discusses adding multiple channels to the same task.
Best,