08-12-2008 08:34 AM
08-12-2008 08:47 AM - edited 08-12-2008 08:48 AM
I'm pretty certain that the Getting Started with DAQmx link I provided goes over this but in case you missed it, it's really quite simple. Shown below is code using the DAQmx functions and using the DAQ Assistant. The object between the control and the DAQ Assistant is a Build Array function. Note that these are for controlling a single line. You can also control multiple lines at the same time.
All of the functions are on the Measurement I/O>DAQmx palette. The functions are polymorphic. That means that in order to select the actual function you want, you need to right click and select - Select Type. Or, you click on the arrow of the Plolymorphic VI Selector (the little box below the function. The DAQ Assistant walks you through the creation of a DAQ task.
08-12-2008 09:01 AM
08-12-2008 09:21 AM
You will need some time (at least a week) to go through the tutorials and all of the lessons before you can start writing any code of your own. The specific tutorial on Digital I/O with the DAQ Assistant can be found at http://zone.ni.com/devzone/cda/tut/p/id/2744#toc5. This covers digital input but digital output is similar.
When you do start writing code, you should always have the context help window open (Help>Show Context Help). As you move your mouse over a function on a palette, you get a brief description. Fully detailed help is also available.
08-12-2008 09:27 AM
08-12-2008 12:44 PM
08-12-2008 02:27 PM
08-12-2008 03:24 PM
Hi Dennis,
This case might be applicable to my problem as well. Do you mind attaching the vi? I was trying to set it up in LabView but can't link the Channel to the Lines in DAQmx though.
thx
wkc
08-12-2008 03:35 PM
08-13-2008 08:26 AM