10-27-2006 03:34 PM
10-27-2006 04:04 PM - edited 10-27-2006 04:04 PM
I can't view your code and I would never use the DAQ Assistant. Walking a one is pretty simple. This is how I would do it. If you configure the DAQmx Write a little differently, you can wire the number to the data input instead of a Boolean array but I did this way because visually, it's what you asked for. From this, you should be able to add the DAQmx Read and do a comparison.
Message Edited by Dennis Knutson on 10-27-2006 03:05 PM
10-28-2006 10:15 AM
I went with the DAQmx assistant because I can't really find any good documentation on the proper order of events.
For example, do I have to create separate tasks for the Inputs and outputs?
Is the task valid for the duration of the VI
Is there any typr of close operation I need to perform at the end
How do I create the (drop down) list of output channels that feeds into the write.
How do I specify which channel I want to read
Should I use Line I/O or Port (ultimately I want to control one line at a time)
10-28-2006 12:22 PM
Have you read the DAQmx help or the "LabVIEW Measurements Manual" that is part of the LabVIEW bookshelf? There's a lot of resources available on the NI Developer Zone as Well. I would recomend you do a search.
Yes, you create a separate task for each.
The task is valid until you use the Clear Task function.
Yes, eventually you will need to stop the task and then clear it.
Write click on the DAQmx Create Channel physical channels input and select 'Create Control' or 'Create Constant'.
Specify the channel in the physical channel list or create a task in MAX.
It's more convient to use line I/O if you want to control a specific line or set of lines.
10-30-2006 01:14 PM
10-30-2006 01:49 PM
10-30-2006 01:54 PM
10-30-2006 02:12 PM
10-31-2006 12:18 PM
I'm not clear on where the error is. I did the snippet below and it was successful whether I set the For-Loop count to 24 or 32.
10-31-2006 12:29 PM