Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't visual basic 6 load CWDAQ.OCX in the example programs? I am using the latest Measurement Studio 6 and VISTA OS.

Can someone help me with getting controls to work with Visual basic 6 in an Vista environment?  I cannot get the examples to work that use the CWDAQ.OCX control.  I did a search on my computer and the file is not even there.  What functions are in CWDAQ.OCX?  Is there a descriptions of what functions are included in this control and other controls?  It is not obvious where to find these descriptions. 
 
I did install Measurement Studio 6 with all the options for Visual basic 6.
 
I am new to programming NI cards with visual basic so any help in getting me started will be greatly appreciated. 
 
I need to talk to a PCI-6110 card in visual basic 6.  I would like to preprogrammed the D/A fifos, store to two analog inputs simutaneously, and use some of the digital I/O.  Can someone direct me the direction as to what controls I need to use?
 
Thanks in advance for any help or guidance. 
 
Tony
0 Kudos
Message 1 of 3
(8,386 Views)
Hi Tony,
 
So the reason you can't find the CWDAQ.OCX ActiveX controls in VB 6.0 in Vista is because that is a Tradtional DAQ (legacy) control meant to work with the Traditional DAQ Driver.
The Tradtional DAQ drivers aren't officially supported in Windows Vista (KnowledgeBase 4FDH4MZN: Traditional NI-DAQ (Legacy) for Windows Vista OS) and so the CWDAQ.OCX controls don't get installed.
 
However, the good news is that the PCI 6110 is a newer card that uses our newer driver, NI-DAQmx. DAQmx is supported in Vista and you can communicate to your card from VB 6.0 using DAQmx in Vista.
 
There are several examples that show you how to communicate using DAQmx in VB 6.0.
These can be found in:
<Users>\Public\Documents\National Instruments\NI-DAQ\Examples
This is also mentioned in the following Knowledgebase article:
KnowledgeBase 47CCSQ5B: NI-DAQmx, NI-VISA and NI-488.2 .NET Example Locations
 
Also, the DAQmx functions are documented in the following locations:
Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C API Visual Basic 6.0 Help
Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C Reference Help
 
Hope this helps!!


Message Edited by Jervin_J on 06-05-2008 02:58 PM
Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 3
(8,368 Views)

Thank Jervin.  This helps a lot.  Sorry that I did not respond sooner.  I was pulled on another project.

Tony

0 Kudos
Message 3 of 3
(8,316 Views)