Discussion:
Confusion about NI-DAQmx c API and C++ programming.
(too old to reply)
Moon-Sun
2008-05-02 05:10:05 UTC
Permalink
I know that NI-DAQmx support ANSI C. But I use g++ under linux for years, and I want to stick to it. Isn't it possible? My understanding is that DAQmx is just a library, like GSL (GNU scientific Library) which is also in C. So I should be able to use my favorite C++ syntaxes (and classes) and compile it with g++. Make it simple, can the following code be compiled under linux using g++#include #include "NIDAQmx.h"int main(){ TaskHandle analogTask=0; DAQmxCreateTask("analogInTask", &anaogTask); cout }
ldp
2008-05-02 14:40:13 UTC
Permalink
Yes, you can use the ANSI C DAQmx API in C++ code with no problems. It will compile, link and run just fine. Hope this helps.LDP
Loading...