05-21-2009 03:00 PM
Here is a DevZone article that you might find helpful in your efforts to move from VB6 and Traditional DAQ to VB.NET and DAQmx:
05-23-2009 10:46 AM
Thanks for your reply. I went thru the documentation and it was very helpful.
I need to figure out if I can (actually 'want to') program NI-DAQmx with or without Measurement Studio. I posted a question on a different forum.
I have a copy of Measurement Studio 7.1 (that I may want to upgrade) but I am wondering if I need it instead of using NI-DAQmx API. Since I had to program without Measurement Studio (MS) when I was using VB6 with DAQmx I used the NI-DAQmx C API. Although my experience was that MS made the development process easier I am wondering if not using MS would be one less thing to install. My applications use fairly straightforward DAQ functions and the post processing of the acq is what the apps consist more of.
05-26-2009 09:16 AM
Your assessment is pretty spot-on. Measurement Studio is not required to create an application that uses the DAQmx .NET class library. However, MStudio does provide ease-of-use tools that should smooth your transition to Visual Basic .NET and DAQmx.
I'd like to mention that the DAQ Assistant integration that Measurement Studio provides for Visual Studio 2005 and Visual Studio 2008 is better than for Visual Studio 2003. In my opinion, it is far superior. In VS2005 and V2008, the DAQ Assistant generates components that are suitable for use directly in your application because:
In contrast, the VS2003 DAQ Assistant generates code that integrates the DAQ task configuration code, the DAQ reading/writing code, and the user interface code into a WindowsForms UserControl. This highly-coupled model is really suitable only for prototyping; integrating it into a larger applications requires a great deal of re-working.
So, if you assessed the MStudio-provided DAQ tools in version 7.1 and found them not useful enough to warrant their use, I'd encourage you to check out the tools for VS2005 and VS2008 (if you can use either of those environments). Other reasons you might need Measurement Studio are for the UI controls, the analysis library, the TDMS library, or the Network Variable library.
05-26-2009 10:27 AM
Thanks for all the useful information.
Like I said previously, I have a copy of MStudio 7.1 however I actually have never used it. Someone else had purchased it when DAQmx devices were available and thought we could easily convert our existing code to .NET. But we never got around to that, I ended up just using the DAQmx C API with VB6.
With Windows 7 in the horizon I guess we need to start moving ahead and away from VB6 and Windows XP and to Vista/Win7 and .NET.
Can you suggest if I can use MStudio 7.1 (standard) with VB.net 2005 or would you suggest moving to the latest version of MStudio? I guess I can download the latest version as a trial for 30 days and use that.
05-28-2009 10:17 PM
It is possible to use MStudio 7.1 libraries with VB.NET 2005. However, none of the MStudio Visual Studio environment integration features, including those that I described in my previous post, will be available. MStudio 8.0.1 is the first version of MStudio that supported Visual Studio 2005. Another consideration is that the APIs designed for use with Visual Basic 2005 tend to be better than those designed for use with VB 2003, because they can take advantage of .NET Generics.
I'm not is a position to offer an unbiased opinion on whether you should upgrade or not. I think your best bet, as you suggested, is to use the evaluation version to determine if there is enough value in the product to warrant the expense. Instead of or before downloading and installing the eval, you might want to try the videos or online eval - http://www.ni.com/mstudio/try/.
I do need to point out that the MStudio Standard Edition does not include the DAQ Assistant integration features that I described in my previous post, so you would need to look at the Professional Edition for that functionality.
04-12-2012 07:36 AM
I use cwdaq.ocx component with vb6.0 on XP with a PCI6503 card and CB50LP socket and it works writing some digital outs.
I try this on Win7 but get an error message: Invalid Index on the line .Ports(0).Assignment = cwdioOutput
Is this because i do not have my CB50LP connected or is it not possible to use the (old 2000) cwdaq.ocx on Win7.
The demo apps. seems to run, but i have not tested with CB50LP connected.
My code looks like:
' assign the port to output
.Ports(0).Assignment = cwdioOutput
Select Case LysKode
Do i have to rewrite my code according to the demo program or is it possible to use my code?
04-13-2012 10:11 AM
Are you still using the VB 6 environment in Windows 7 or have you moved to a VB .NET environment? If you have migrated to a .NET environment then you can get some details on how to upgrade your application in this article: http://digital.ni.com/public.nsf/allkb/1F882DF4142
12-15-2014 02:16 AM
As my old machine is spolit, so I get the new machine (win7x64) and I when try to install the NI 7.3 installer, I cant find the NI6508 DAQ hardware.
I tried to Installed the latest version 9.8, the hardware is found but I cant use the CWDAQ.OCX.
I read up the forum, it say that I will need to use DAQmx on x64 machine. But apparently I cant use my existing code based on the OCX.
How do I go about it without changing my VB6 code (as it is done by other people).
02-25-2015 04:23 PM
For my old vb6 programs that I still must maintain I use NI-DAQ v7.4. This is actually a beta that, as far as I know, was never released as RTM. Anyway, it works fine with the traditional stuff and it works with Windows 7. You just have to be sure NOT to install the Ni-DAQmx stuff because it will conflict with the old stuff.
I use a multi-boot setup of Windows 7. One partition is used for traditional development and the other partition has the latest NI drivers for new development.
The only down-side of this configuration is that I have to reboot in order to move from one environment to the other.