11-30-2005 10:04 AM
12-06-2005 07:29 PM
08-29-2006 11:05 AM
07-05-2008 03:31 PM
03-07-2011 12:18 AM
Qt 4.7 with included mingw can use NIDAQmx.lib "as is" with LIBS += "<full path>\NIDAQmx.lib" statement in pro file.
09-13-2011 06:56 AM
That is wonderfull!
09-13-2011 05:08 PM
Agreed. One thing to watch out for when using mingw with NI-DAQmx: GCC doesn't support Microsoft's __int64 type natively. Make sure to include a C library header (like stdio.h) so that __int64 gets defined before you include NIDAQmx.h.
03-21-2012 10:07 PM
I am trying to evaluate and use the LabVIEW c-code Generator with Qt Creator 2.3.1, Qt 4.7.4. I exported a very simple VI that implements y = m * x + b. I am adding the source to my project in accordance with (http://zone.ni.com/reference/en-XX/help/373144B-01/lvcgenhelp/cgen_include_gen_code_ext_apps/) but cannot get the code to compile. I attached my exported code - anything you can help me out with would be great! Ideally, I would like to get this to work in a basic command line app to show that it will compile and run. I was doing this as an example main.cpp:
int main(int argc, char *argv)
QCoreApplication a(argc, argv);
std::cout << "y = " << Evaluateline(1.11, 260, 200);
03-22-2012 12:28 AM
This thread is about using NI-DAQmx with mingw, so I was going to suggest that you start a new thread in a LabVIEW-related forum, but I see you already did that: http://forums.ni.com/t5/LabVIEW-Embedded/Using-LV-C-generator-with-Qt/m-p/1923189/highlight/true
Also, please post the exact text of the compilation errors in the other thread. The error messages are important, and you're unlikely to get much help without posting them.
03-22-2012 06:57 AM
I posted to your thread as a bit of a desparation move to see if you had ever successfully used c-generated code in Qt or knew anyone who had gotten it to work. I will post some compiler errors with the other thread.