Solution
The file "dataacq.h" is not installed by CVI, but is installed by the Traditional NI-DAQ driver. To fix this problem, run the NI-DAQ setup again and select the LabWindows/CVI Support. Please refer to the screenshot of the NI-DAQ setup below.