06-20-2006 07:45 PM
06-20-2006
08:07 PM
- last edited on
11-16-2025
07:34 PM
by
Content Cleaner
I can't help you much with the dual DAQ Assistant problem as I've never used it (in that form), however I might be able to offer a solution in a different form.
On the offchance you missed this, it would far better explain what I'm trying to say.
When you create a task, it is essentailly the same as when you use the DAQ Assistant.
Try this: go to Measurement I/O->DAQ(mx) and then grab a "Task Constant" and drop it on the block diagram. Right click on it, and go to "New Task (DAQ Assistant)". This will bring up the interface you're probably familiar with, but will only associate the task with that constant, and not an express vi. From there, you can wire that task to say DAQ Read, from which you will get your data.
If you would like to persue the (somewhat) more manual method and have more questions, don't hesitate to post them!
06-21-2006 11:30 AM
06-21-2006 12:12 PM
06-21-2006 01:28 PM
06-21-2006 02:02 PM
06-21-2006 04:23 PM
06-21-2006 04:30 PM
06-21-2006 04:52 PM
06-21-2006
05:22 PM
- last edited on
11-16-2025
07:34 PM
by
Content Cleaner
Hello milq,
That following tutorial that Novatron linked you earlier is an awesome resource for becoming familiar with programming with the NI-DAQmx.
Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications
An important point to take away from this tutorial is that you can either create a DAQmx task using the wizard-style interfaces provided by the DAQ Assistant and within Measurement & Automation Explorer (MAX), or you can programmatically create and configure your DAQ Task in your LabVIEW code using the DAQmx Create Virtual Channel VI, DAQmx Timing VI, etc. When you create a new DAQmx Task using the wizard-style interface, you are configuring all of the settings for your task manually. When you use that DAQmx Task in LabVIEW (with a DAQmx Task Control or Constant), you are referencing all of those configuration options you've manually set. To actually perform a read or write operation based on those settings, you need to wire the DAQmx Task into the 'task in' input of a DAQmx Read or DAQmx Write VI.
So for your analog input operation, you can wire the task directly into a DAQmx Read VI. In the DAQmx Read VI, you'll want to select the type of task your reading from in the drop down box (Analog), if your reading from a single or multiple channels (1 Chan or N Chan), and if taking just one or multiple measurements with each call to the DAQmx Read VI (1 Samp or N Samp)
For your digital output operation, you'll want to configure a separate digital output task, and wire it directly to a DAQmx Write VI. Again, select the type of task your writing to (Digital), if your writing to a single or multiple channels, and if you want to perform a single write or multiple writes.
To help with getting started with DAQmx programming in LabVIEW, I would highly recommend taking a look at the DAQmx example located in the LabVIEW Example Finder (Help > Find Examples). A difference you'll note in these examples is that all the task configurations that you have been making with the wizard-style DAQ Assistant are done programmatically with the DAQmx Create Channel and DAQmx Timing VI. I hope this helps and good luck!
Travis G.
Applications Engineering
National Instruments
Message Edited by Travis G. on 06-21-2006 05:23 PM