LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DLLs in Dev-C++

Hi All,

I realize that this post has very little to do with CVI, but everyone in this forum has been so helpful before.  Anyways, for financial reasons I wanted to write code for my MultiDaq 6024E card in the Open Source Dev-C++ and was wondering if I could simply use NI DLL's to talk to the card.  I believe I would be able to use the Traditional DAQ functions alright, but how about DAQmx.  Anyone with information on this please let me know.  Thanks.

Cheers,
tdk
0 Kudos
Message 1 of 6
(4,619 Views)

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

Gerardo O.
RF SW Engineering R&D
National Instruments
0 Kudos
Message 2 of 6
(4,599 Views)

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

 

                                                                                                                

0 Kudos
Message 3 of 6
(4,165 Views)

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,

Adam
Academic Product Manager
National Intruments
0 Kudos
Message 4 of 6
(4,136 Views)

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

 

 

0 Kudos
Message 5 of 6
(4,123 Views)

Hi Cris,

 

Here is a good document that describes the syntax for DAQmx channels, which discusses adding multiple channels to the same task.

 

 

Best,

Adam
Academic Product Manager
National Intruments
0 Kudos
Message 6 of 6
(4,100 Views)