Multifunction DAQ

Showing results for 
Search instead for 
Did you mean: 

DAQ read function aborts VB6 application !

I'm using function :
DAQmxErrChk DAQmxLoadTask("Scan500at100", taskHandleCelda)
DAQmxErrChk DAQmxReadAnalogF64(taskHandleCelda, -1, 10#, DAQmx_Val_GroupByChannel, _
                                DatosCanales(11000), 1000#, CantLecturas, ByVal 0&)
but it aborts VB6 application completely and asks if I want to report this problem to Microsoft.
I created task withing MAX, using drivers 8.6 that came with the Ni- USB -6210 device.
I'm trying to read a burst of reading within a time frame. Not sure if variables are correcly declared in function, but
this is the way VB6 accepted them.
Any help will be appreciated. Thx
0 Kudos
Message 1 of 2


This problem has been related to missing module in the project specifically needed when using the DAQmx Error Checking macro.  Please view the attached Knowledge Base.  If this does not solve the issue please post back.

NI-DAQmx Support in Visual Basic 6.0


National Instruments
Applications Engineer
0 Kudos
Message 2 of 2