Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add DaqMX task to existing project

Solved!
Go to solution

I'm using Measurment Studio 2010 with Visual Basic. I created a NI Daq Windows appplication with an analog input Daq task component. 

Now I need to add additional DaqMX tasks (Digital In and Digital Out tasks) to the existing Visual Basiic project.

 

How can I do this?

 

Thanks,

 

Mike

 

  

0 Kudos
Message 1 of 7
(5,444 Views)

Hi Mike,

 

To begin, here is a tutorial with attached code which creates a DAQmx task for digital output to Visual Basic 6.0 http://zone.ni.com/devzone/cda/epd/p/id/2174 which you can use to modify to fit your application.

 

In addition, there are already Visual Basic DAQmx examples available with your NI-DAQmx driver installation located in the default install directory C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\Visual Basic 6.0.

 

In here, you will find examples for Analog I/O, Digital I/O, and Counter apps. You can take these examples and incorporated them into your existing Visual Basic project so you don't have to re-invent the wheel.

 

Hope this helps!

 

 

Aldo A
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(5,440 Views)
Solution
Accepted by topic author Mgann

Hi,

 

Here's a link that shows how to add a task to a .NET project

 

http://digital.ni.com/public.nsf/allkb/290D84D10809D4C086256FF20076F8B8

 

Curt

 

Message 3 of 7
(5,434 Views)

Hi Curt - 

 

Thanks for this, I think it is exactly what I was looking for. I'll give it a go and let you know how it works out. 

 

Thanks,

 

Mike

0 Kudos
Message 4 of 7
(5,417 Views)

Hi Curt - 

 

I just wanted to thank you again. I was able to test this and it allows me to do exactly what I needed.

 

Thanks,

 

Mike

0 Kudos
Message 5 of 7
(5,414 Views)

Hi Aldo - 

 

Thanks for the reply. Curt pointed me to the exact document I was looking for. 

 

 

Best regards,

 

Mike

0 Kudos
Message 6 of 7
(5,413 Views)

Hi Aldo im currenttly working in a project that resembles the same issue posted here.. When i run the config asssitant it allows me only to use a waveformgraph to display the data issued on the task but i dont see the option of where to choose if i wanted to display it in a textbox and not in the waveform  for example...

0 Kudos
Message 7 of 7
(5,073 Views)