02-21-2008 08:40 PM
02-22-2008 06:15 PM
Hi Angel,
As I understand the issue, you are using the code from the example MultiFunctionSyncAIAO_DigStart. This code only reads and writes on one input channel and one output channel but you would like to add another channel to each task. Is this correct?
I do not think that you will need to use the DAQmxAddGlobalChansToTask function. In this example, you will only need to make one change. In the code, m_reader and m_writer currently use the SingleChannelReader or Writer instance. This will need to be changed to allow multiple channels; the function can be found in the help file.
After this change is made, when the program runs and the user interface appears, you can enter a string representing multiple channels into the physical channels text box. The string format will be along the lines of “Dev1/ai0:1”, but for the proper syntax, you can look in the NI-DAQmx C Reference Help Document under NI-DAQmx Key Concepts>> Channels and Tasks in NI-DAQmx>>Channels, Physical verses Virtual>> Physical Channel Syntax.
Hope this helps, Mallori M.
02-27-2008 12:28 AM
02-29-2008 04:24 PM
Hi Angel,
I am having some trouble locating the problem with this code. I will really dig into it and post back with an update early next week.
Regards, Mallori M.
03-04-2008 10:42 PM
03-04-2008 10:42 PM
03-04-2008 11:46 PM
continuation....
i am unsure of the changes that I made even though that I have an output on the scope.
The output was quite vague and I am still debugging.
By the way, how do I display a sinewave from the matrix?
Thanks2x.
Regards,
A