Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

using ni-9215(usb) with visual basic or delphi

Hallo,

i want to develop a programm using ni-9215(USB) with Visual Basic or Delphi(6.0). I noticed that,  the usb drivers for this device(usb carrier 9161) just work over "NI-DAQmx Base" and not "NI-DAQmx".

The example i found with visual basic, used  "nidaqmx.tlb" to reach the desired function for NI-DAQmx.  But after installation of newest NI-DAQmx (8.1) and NI-DAQmxBase(1.4). i could not found such a file for "NI-DAQmx base" even "nidaqmxbase.tlb", but just "nidaqmxbase.dll".

Is it mean that NI-9215 is not supported unter visual basic? or is there another way to access this device?

I tried to import the typlibrary "nidaqmx.tlb" and realised that no functions are importetd in the generated "NIDAQmxCAPI_TLB.pas". But just type-Definations and enums.

So even if  such a file "nidaqmxbase.tlb" exists, it will work mit Visual Basic but not Delphi?

I know that NI does not support directly Delphi, but i was told that it will be possibility to work with Delphi too.


thanks in advance

Hassan




0 Kudos
Message 1 of 3
(3,624 Views)
Hello,
you are correct the USB-9215 is only supported from NI DAQmx Base.
(the NI USB 9215A is supported by NI DAQ mx)
here are information about using DAQmx Base in VB6:
http://digital.ni.com/public.nsf/websearch/A21A013CA229A5988625703E0025A8AE?OpenDocument

I found a disscussion frorum: use DAQmx Base in delphi
http://forums.ni.com/ni/board/message?board.id=70&message.id=3318&requireLogin=False


Delphi: It is not supported from National Instruments but you can try this:
DAQmx Base driver is written in C calling convention. To use C DLL in Delphi requires an import unit. A free header converter (see bottom of page), as well as more details on using C DLL in Delphi can be found from the link below:
http://www.drbob42.com/delphi/headconv.htm

I hope this informations will help you!!
Ragards,
Fabian
0 Kudos
Message 2 of 3
(3,582 Views)
Hello,

thanks for answer,
i tried as you mentioned with delphi 6.0 and it works properly.
I wonder why NI doest not support Delphi, one just need to convert the C++ header file to a Type-library for Delphi.


with Regards,

Hassan
0 Kudos
Message 3 of 3
(3,567 Views)