02-07-2012 06:51 PM
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
Solved! Go to Solution.
02-08-2012 04:20 PM
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!
02-09-2012 11:15 AM
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
02-09-2012 05:14 PM
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
02-09-2012 06:06 PM
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
02-09-2012 06:08 PM
Hi Aldo -
Thanks for the reply. Curt pointed me to the exact document I was looking for.
Best regards,
Mike
10-12-2013 12:55 PM
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...