ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Using nidaq32.dll in VB.NET

Hello Everyone,
I am trying to read some values from the NI PCI 6023E (Legacy) A/D card. I installed the traditional NI-DaQ and was able to read the values using VB6 program and NIDaq32.bas after doing a bug fix using palBase. But, When I tried to use the simillar code in VB.NET, I was getting an error " An unhandled exception of type 'System.NullReferenceException' occurred in VBNETprogram.exe  Additional information: Object reference not set to an instance of an object."
 
Will I be able to use the same PCI 6023E Legacy A/D card with the new dll file that comes with NI-Daqmx version?
 
Thanks in advance for your response.
 
 
0 Kudos
Message 1 of 2
(3,300 Views)
Thank you for contacting National Instruments.
 
I checked the Readme for NI-DAQmx 7.5 (ftp://ftp.ni.com/support/daq/pc/ni-daq/daqmx/7.5/readme.html#devSupport), and the 6023E is listed as a supported device in NI-DAQmx, and it works in Visual Basic.NET.
--
Michael P
National Instruments
0 Kudos
Message 2 of 2
(3,272 Views)