Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Channels AO Address

hello,
 
 
I have in MAX a task with three channels.
when I want to write my data in the AO,  receipt  a error mensage.
how I can solve this problem.
 
 
0 Kudos
Message 1 of 4
(3,084 Views)
Hi, couple questions:
1) What error message are you receiving?
2) There is a subVI missing from the VI you posted.  Could you build it into an .llb, or zip it up and repost?
3) What hardware are you using, and what versions of NI-DAQ and LabVIEW?
-Alan A.
0 Kudos
Message 2 of 4
(3,078 Views)
hi Alan,
 
her is the information that you wanted.
 
1) error mesage
 
Possible reason(s):
Write cannot be performed, because the number of channels in the data does not match the number of channels in the task.
When writing, supply data for all channels in the task. Alternatively, modify the task to contain the same number of channels as the data written.
Number of Channels in Task: 1
Number of Channels in Data: 3
Task Name: SpannungAusgangTaskNI6722
 
2) i send now the sub VI's
 
3) i have simulated a NI 6722 card
 

Message Edited by rapa on 02-10-2006 02:52 AM

Download All
0 Kudos
Message 3 of 4
(3,073 Views)
Hello,
Well, the error does a pretty good job of describing the problem.  You have created a task with only one channel in it, and then with your DAQmx Write, you are attempting to write to three channels.  There are a couple ways to fix this.  First, add three channels to your task.  For the physical channels input to your create task, use something like "Dev1/ao0:2".  Secondly, if you want to write your three different values to the same channel, use this form of the DAQmx Write:  Analog 1D Double 1Channel NSamples.
-Alan A.
0 Kudos
Message 4 of 4
(3,052 Views)