From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

CWDAQ in VB 2010

Hi,

 

I want the sample code of CWDAQ in VB 2010 for using with .net framework 2.0.

Could you suggest for me?

 

Thank you,

Good NI

0 Kudos
Message 1 of 12
(3,651 Views)

Hello,

 

What type of hardware are you using with your VB2010 application? CWDAQ is used for Traditional DAQ drivers. If your device is supported in DAQmx, I would advise using the DAQmx drivers, functions, and libraries. Here is a link to another forum page relating to CWDAQ.

 

CWDAQ Reference

 

As far as DAQmx programming examples, they can be found in the Windows Start Menu under Programs > National Instruments > NI-DAQ > Examples > DotNET2.0.

 

Eric

Eric Liauw
Senior AE Specialist - Automated Test | CLD | CTA
National Instruments
0 Kudos
Message 2 of 12
(3,633 Views)

Hello Eric,

 

I use PCI-6023E, develop in Windows XP by VB 2010, use in Windows 2000 Pro .Net Framework 2.0.

 

Thank you very much for your suggestion,

Good NI

 

0 Kudos
Message 3 of 12
(3,630 Views)

Hello Eric,

 

I did not find the example of .Net Framework 2.0.

Could you please send the example for me?

 

Thank you,

Good NI

0 Kudos
Message 4 of 12
(3,619 Views)

Hello,

 

The examples can be found on your local computer once you install .NET support. If you modify your install of DAQmx from the Windows control panel, you can add support for .NET 2.0. Once you do that, you can find the examples in your start menu. The screenshot below shows some of these locations and options.

 

Text Based Support.png

 

Eric

Eric Liauw
Senior AE Specialist - Automated Test | CLD | CTA
National Instruments
0 Kudos
Message 5 of 12
(3,615 Views)

Hello Eric,

 

Due to my system uses the NI-DAQ driver, I cannot use NI-DAQmx driver.

I tried to use NI-DAQmx driver and it worked under VB 2010 but I attempted to use NI-DAQ driver with VB 2010 but it did not work.

Could you please send me the sample code of PCI-6023E?

 

Thank you,

Ratchapol P.

0 Kudos
Message 6 of 12
(3,598 Views)

 Hello,

 

At the moment, I would still recommend using the current DAQmx drivers instead of the older Traditional DAQ drivers. The current DAQmx drivers provide a better feature set and better support than the older TDAQ drivers. Also, the use of Traditional DAQ in newer Windows operating systems such Vista and 7 are not really supported.

 

I have a couple of questions about your hardware and software setup that you are working with at the moment. You mentioned that you are using a PCI-6023E, are you using any other NI hardware in the computer? What operating system are you currently running on, Windows 7, Vista, XP? As a note, when you install the hardware in Windows, the drivers you use will either be DAQmx or TDAQ, you will be unable to run both at the same time.

 

Eric

Eric Liauw
Senior AE Specialist - Automated Test | CLD | CTA
National Instruments
0 Kudos
Message 7 of 12
(3,581 Views)

Hello Eric,

 

1. My system uses only PCI-6023E.

2. I use Windows XP for development and use the small application program at Windows 2000 Pro.

3. I tried to use NI-DAQ driver, it works.

4. I tried to install NI-DAQmx, it did not work and then uninstall and install NI-DAQ again.

I cannot change my system which uses the NI-DAQ to NI-DAQmx driver.

Due to the main program was develop by other.

 

Thank you,

Good NI

0 Kudos
Message 8 of 12
(3,571 Views)

Hello,

 

Unfortunately there is no support for TDAQ in DotNET. If you wish to use TDAQ you will have to wrap the functions and call the DLL wrapper.

 

At the moment are you trying to add to the old application? Will the old application using TDAQ be ran at the same time as the application you are developing? When you say NI-DAQ works, what do you mean by that, can you explain a little further?

 

Eric

Eric Liauw
Senior AE Specialist - Automated Test | CLD | CTA
National Instruments
0 Kudos
Message 9 of 12
(3,556 Views)

Hi Eric,

 

1. I did not try to add to the old application because it is exe file.

2. The old application did not run at the same time as my application.

3. I use the sample files of NI Measurement Studio (VB6 for NI-DAQ, VB6 for NI-DAQmx, VB.NET for NI-DAQmx)

4. How do you wrap the functions and call the DLL wrapper? Please clarify for me.

 

Thank you,

Good NI.

0 Kudos
Message 10 of 12
(3,553 Views)