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: 

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
(2,459 Views)

Hello,

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

 

Samantha
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,436 Views)