08-12-2016 11:13 AM - edited 08-12-2016 11:14 AM
I get the following error:
"DAQmx is not member of NIDAQmxCAPI"
Here is a snippet of the code that causes the problem but the same thing appears in other places as well
'Create the DAQmx task.
DAQmxErrChk(NIDAQmxCAPI.DAQmx.DAQmxCreateTask("", taskHandle))
Solved! Go to Solution.
08-15-2016 10:06 AM
Hi BWang78,
If you're working in VB or VB .NET, why are you referencing the C API? This sounds like you may be looking at an example from the ANSI C folder- you may have better luck looking in the example folders listed here, that are designed for use in the language you're using.
08-24-2016 03:11 PM
Hi Kathryn,
Thank you for your suggestion!
I am now converting VB6 to VS2012 instead. The examples in
C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.5
are useful!
Besides,
1. I changed target framework from ‘.NET Framework 2.0’ to ‘.NET Framework 4.5’
2. I added "National Instruments Common" and "National Instruments DAQmx" as the references.
It works now.