01-02-2012 04:55 PM
I have two Vis that are quite similar: one does a DAQmx read and the other does a DAQmx write. The read VI has a Create Task, Create Virtual Channel, Timing, Start, Read, Stop, and Close subVIs on the block diagram. The other VI that does the write has a Create Task, Create Virtual Channel, Timing, Write, Stop, and Stop VIs. The reader VI works as expected with no problems whatsoever. The writer is another case. This one gives the following error report when it is run:
Error- 200371 occurred at DAQmx Create Channel(AO-Voltage-Basic).vi
Possible reasons(s):
Requested multiple virtual channels that correspond to the same physical channel within a task. A task cannot contain multiple physical channels of a specified type.
Use different physical channels for each virtual channel.
Physical Channel Name: ao3
Virtual Channel Name: chan1
Device: Dev2
Task Name: myNew OutputTask
The error is being generated by the create virtual channel vi
I have created an output task (VoltageOutTaskDev2_ao3) configured in MAX for a device (Dev2) that has both input and output capabilities. And I am OK going into the create virtual channel vi, but somehow this vi is not working. The Create task is connected to a task copied constant which is selected from what was made in MAX as a task. The physical channel input is going into the create virtual channel vi and is connected to Dev2/ao3. There is only one virtual channel that I am creating and there is only one physical channel being selected. And the task is configured to only one device. It is strange that every thing works OK in the VI that is doing input, but the MAX configuration is not working for the output version of the vi. I would sure like to figure out what I’m doing wrong here as it is getting a bit frustrating after working on this VI for the last couple of days.
Included is a reports file generated from MAX so you will see my configuration.
01-03-2012 03:00 PM
Hi Cuthbert,
That error message indicates maybe you are setting up the on the same channel twice. Could post a screenshot of your set up in LabVIEW?
Regards,
Travis Ann
01-03-2012 03:18 PM