Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I import DAQ ActiveX in Delphi 6?

I'm trying to import the ActiveX Type Library or ActiveX control(s) in Delphi 6, but the install fails with several errors such as:

[Error] CWDAQControlsLib_TLB.pas(5125): Undeclared identifier: 'Get_Channels'
[Error] CWDAQControlsLib_TLB.pas(5231): Undeclared identifier: 'Get_Channels'
[Error] CWDAQControlsLib_TLB.pas(5671): Undeclared identifier: 'Get_Ports'
[Error] CWDAQControlsLib_TLB.pas(5676): Undeclared identifier: 'Get_Lines'
[Error] CWDAQControlsLib_TLB.pas(5681): Undeclared identifier: 'Get_NumberOfBits'
[Error] CWDAQControlsLib_TLB.pas(5686): Undeclared identifier: 'Get_Channels'
[Fatal Error] nidaq.dpk(36): Could not compile used unit '..\Imports\CWDAQControlsLib_TLB.pas'

Does anyone know how to get the l
ibraries to import properly in Delphi?

NI-DAQ Version 6.9.1f28
DAQ Card DIO-24

Thanks.
0 Kudos
Message 1 of 2
(3,399 Views)
1. Upgrade to Delphi 6.02
or
2. Manually change the .._TLB.pas file to remove the Get_ prefix. For example, change Get_Channels to Channels. But pay attention to the warning at the top of the _TLB file.

I did this with IMAQVision and it should work here also.

Yariv Etzyoni
0 Kudos
Message 2 of 2
(3,399 Views)