11-27-2006 01:48 PM
When I try to load the sample code for "Acq-Int Clk" for example, 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))11-28-2006 11:36 AM
11-28-2006 03:51 PM
Thanks Ken,
I think this has me on the right track now.
08-12-2016 11:22 AM
Hi Keen,
I am facing the same problem when trying to convert code from Visual Basic 6.0 to Visual Studio 2008. The code example I found is in:
C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Ext Clk
According to the example, I replaced the original code in Visual Basic 6.0:
DAQmxErrChk(NIDAQmxCAPI.DAQmx.DAQmxCreateTask("", taskHandle))
With
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
However, the code still does not work, saying the DAQmxCreateTask is not declared
I was wondering if you wound be willing to provide me some sugestions?
Thanks!
08-15-2016 08:49 AM
bwang,
Are you able to run the example code without any problem? Can you post your code here so we can see what else might be going wrong?
J. Calvert
Applications Engineer
National Instruments
08-24-2016 03:12 PM
Hi Kathryn,
Thank you for your help.
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.