Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

99 views
Skip to first unread message

tjv

unread,
Jun 4, 2008, 8:40:10 AM6/4/08
to
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

Jervin_J

unread,
Jun 5, 2008, 4:10:06 PM6/5/08
to
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 (<a href="http://digital.ni.com/public.nsf/allkb/8EC9E81C3DE4E619862573930083BD7A?OpenDocument" target="_blank">KnowledgeBase 4FDH4MZN: Traditional NI-DAQ (Legacy) for Windows Vista OS</a>)&nbsp;and so the CWDAQ.OCX controls don't get installed.
&nbsp;
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.
&nbsp;
There are several examples that show you how to communicate using DAQmx in VB 6.0.These can be found in:&lt;Users&gt;\Public\Documents\National Instruments\NI-DAQ\ExamplesThis is also mentioned in the following Knowledgebase article:<a href="http://digital.ni.com/public.nsf/allkb/39F4B9264B94308C8625729D0067F9AF?OpenDocument" target="_blank">KnowledgeBase 47CCSQ5B: NI-DAQmx, NI-VISA and NI-488.2 .NET Example Locations</a>
&nbsp;
Also, the DAQmx functions are documented in the following locations:Start»Programs»National Instruments»NI-DAQ»NI-DAQmx C API Visual Basic 6.0 HelpStart»Programs»National Instruments»NI-DAQ»NI-DAQmx C Reference Help
&nbsp;
Hope this helps!!Message Edited by Jervin_J on 06-05-2008 02:58 PM

tjv

unread,
Jun 14, 2008, 10:10:05 AM6/14/08
to
Thank Jervin.&nbsp; This helps a lot.&nbsp; Sorry that I did not respond sooner.&nbsp; I was pulled on another project.
Tony
0 new messages