06-07-2006 03:01 PM
06-08-2006 05:14 PM - edited 06-08-2006 05:14 PM

Message Edited by Travis G. on 06-08-2006 05:15 PM
06-08-2006 08:58 PM
06-09-2006
03:07 PM
- last edited on
08-19-2025
10:06 AM
by
Content Cleaner
Hello trout00,
The terminal names for the digital ports in Traditional NI-DAQ (DIOA#, DIOB#, DIOC#,...) are named in NI-DAQmx P0.#, P1.#, P2.#. So port A is now named port 0, port B is now named port 1, etc. A list of the Terminal Name Equivalents between Traditional NI-DAQ and NI-DAQmx can be found in the E Series Help.
To use an NI-DAQmx global virtual channels you've defined in MAX, you'll need to add those virtual channels to an NI-DAQmx Task in MAX. You can create a new NI-DAQmx Task by right-clicking on Data Neighborhood and selecting Create New, and selecting NI-DAQmx Task. Select Digital > Port Ouput as the task type, and then when asked to add channels to the task, find your NI-DAQmx global virutal channels in the Virtual Tab, and add them to the task. With a task created, you can now use this task from within LabVIEW in place of the DAQmx Create Channel VI I've shown in the above program. Just place a DAQmx Task constant on your block diagram, select the task you've created in MAX in the drop down box, and wire it directly to the 'task in' terminal of the DAQmx Start VI, as shown in this screenshot:
If you want to read and write to ports individually, you'll have to create separate tasks and use separate a DAQmx Start, DAQmx Write, DAQmx Clear, etc. for each task. You can just follow what I've shown you above and duplicate it for the different tasks you want to write to.
Also, here are some great resources for getting started with NI-DAQmx that would probably be helpful for you.
Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications
Physical Channels, Virtual Channels, and Tasks in NI-DAQmx
I hope this helps,
Travis G.
Applications Engineering
National Instruments
Message Edited by Travis G. on 06-09-2006 03:09 PM
Message Edited by Travis G. on 06-09-2006 03:09 PM