Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

CCWDIO in .NET

I've been using MS now since Version 1.0. Now that we are in .NET with the latest release do I still need to use CCWDIO objects and do something like

object.GetItem().Item(CNiVariant ....

to control my digital boards?

Are there native C++ classes for DIO now or are we still wrapping up visual basic code?
Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 1 of 4
(3,728 Views)

Hello

For programming with .NET 1.1 framework( for C#, VB.NET and managed C++), we do have native .NET class for our newer DAQmx driver so you dont have to worry about making wrappers. This API is available with the DAQmx driver from here
If you are developing using MFC with Visual Studio .NET 2003, Measurement Studio 7.0 provides C++ classes for DAQmx.

If you want to use the CWDAQ controls in the .NET languages, the only way to do that is by making wrappers for the controls, since that is the only way to get activex controls to work with the .NET framework.
Once you drop the control onto the form, the Visual Studio IDE should generate the wrappers for you automatically.

Check out this link for more information.

I hope this helps

Bilal Durrani
NI

Bilal Durrani
NI
Message 2 of 4
(3,728 Views)
How do I add in an ActiveX control in .NET?

In Visual C++ 6.0 from the Project Menu I selected Add To Project and selected Components and Controls. From there I could select Registered ActiveX controls and then select the DIO control for example. Once I dropped in the control then C++ wrapped it up for me. Is it a similiar proecess in .NET?
Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 3 of 4
(3,728 Views)

Hello

The process is pretty much the same.

Bilal

Bilal Durrani
NI
0 Kudos
Message 4 of 4
(3,728 Views)