04-05-2019 02:19 PM
Hello, I am doing a program to acquire data through an NI-6008 in macOS high Sierra 10.13.5, I am using Qt Creator 4.7.0 (Qt 5.11.1 (Clang 8.0 (Apple), 64 bit)) and NI- DAQmx Base 15.0.0. The problem I have is that when I run the program it closes unexpectedly without sending an error message. I have the doubt if the path to the library is correct, since I did not find any .a files. The instructions I have to connect to the NIDAQ library and the NI-6008 are the following:
File .pro.
INCLUDEPATH +="/Applications/National Instruments/NI-DAQmx Base/includes"
LIBS += /Library/Frameworks/nidaqmxbase.framework/Versions/15/nidaqmxbase \
/Library/Frameworks/nidaqmxbaselv.framework/Versions/A/nidaqmxbaselv
or
INCLUDEPATH +="/Applications/National Instruments/NI-DAQmx Base/includes"
LIBS += -frameworks nidaqmxbase \
-frameworks nidaqmxbaselv
File cpp.
TaskHandle taskHandle = 0;
DAQmxBaseCreateTask("MyTask", &taskHandle);
Error message
12:18:17: The program has unexpectedly finished.
What is the error?
Any idea?
Thanks.
04-09-2019 06:07 PM
The error message comes from LV or from Mac OS?