From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with NI USB-6008 using Qt on mac.

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.

0 Kudos
Message 1 of 2
(1,770 Views)

The error message comes from LV or from Mac OS?

0 Kudos
Message 2 of 2
(1,734 Views)