Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Do I need MS Visual Studio for programming DAQ card with ANSI C?

Hi,

This might be a stupid question, but I couldn't find a confirmation from anywhere.

I might have to write a DLL consisting of data acquisition functions. This library's
functions are then called from other programs.

Does this library have to be written with Visual Studio that has some DAQ plugin
or can I use any editor/compiler if I have DAQmx drivers installed?

Thank you for reading Smiley Very Happy
0 Kudos
Message 1 of 6
(3,556 Views)
And do I need LabWindows/CVI to do this?
0 Kudos
Message 2 of 6
(3,554 Views)

Hi Kaêm,

Do You have checked this page,

http://digital.ni.com/public.nsf/allkb/8715FD7608B79AFC86256ECA004B87F1?OpenDocument

Best Regards,

Petterik

0 Kudos
Message 3 of 6
(3,470 Views)
Thank you for your reply petterik.

The link you provided gives information about different .NET languages and their
capability to program the DAQ card. It says that with some .NET languages it's
possible to program without the Measurement Studio. But I don't have Visual Studio,
I would like to use GNU C/C++ compiler for this. So, do you know if this is possible?
And am I able to access the LabView's functions in that case?

I found some article that described the usage of Labwindows with GNU C compiler
on Linux platform. I'm doing my development on Windows, but I am not using MS
Visual Studio.

Hopefully I wrote this information clear enough for others to understand Smiley Happy
0 Kudos
Message 4 of 6
(3,440 Views)
Hi Kaêm
 
NI-DAQmx C Reference Help says:
 
Creating an ANSI C Application without LabWindows/CVI

NI-DAQmx has a C API that you can use to create applications. To create an application, follow these general steps:

  1. Create a new project.
  2. Open existing or new source files (.c), and add them to the project. Make sure you include the NI-DAQmx header file, nidaqmx.h, in your source code files. You can find this header file at NI-DAQ\DAQmx ANSI C Dev\include.
  3. Add the NI-DAQmx import library, nidaqmx.lib, to the project. The import library files are located under NI-DAQ\DAQmx ANSI C Dev\lib\.
  4. To view examples of NI-DAQmx applications, go to the NI-DAQ\Examples\DAQmx ANSI C Dev directory.
  5. Build your application.

The following website tells about writing data acquisition programs with third party compilers

http://digital.ni.com/public.nsf/allkb/0EC032F292AFE19C86256C3A0083A647?OpenDocument

It is still maybe possible to use GNU C/C++ though it is not in the list.  Smiley Wink

Regards,

Petterik

Message 5 of 6
(3,414 Views)
Thank you for your information Petterik.

I'll need to gather information about other possible solutions
to our problem, this is included in one of those.

If we decide to this way and go on trying it with gcc, I'll
let you know the results.
0 Kudos
Message 6 of 6
(3,408 Views)