LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx read.vi; Analog 1D Wfm NChannal N Sample

Hi 

 

I am using the Analog 1D Wfm NChannal N Sample mode of the DAQmx Read.vi to collect voltage data. There are 4 physical channels used so I am assuming that there should be 4 wfms as results. However, I wonder why there are 8 sets of data displayed in the waveform chart. 

 

Take care

Huang

0 Kudos
Message 1 of 4
(2,317 Views)

It might have to do with the task you have wired in: "MyVoltageTask_trial". I would try deleting that and leaving the input empty. Or it might have to do with how you are graphing it.

Message 2 of 4
(2,309 Views)

A couple of points:

  • You persist in posting only a picture of part of the Block Diagram, conveniently "hiding" several DAQmx functions and all of the graphing code (which is, after all, where the problem occurs).
  • Attach your VI.  Also, if you are going to use a Task, write a description of the Task.
  • Note that the Plot shows 4 channels with names like "Dev1/a04", and four other tasks with names like "Voltage_1".  I'm guessing the latter is from the Task definition, the former from the Channel VI (which you probably shouldn't use, but who can say without seeing the code?).

Bob Schor

0 Kudos
Message 3 of 4
(2,229 Views)

The task name wired in is almost certainly the problem.

 

With DAQmx, you can string several Creates together adding channels with each one.  Each create just adds channels to the task that is already coming into it at the top left.  In this specific case, what is coming into that single Create is the task name which probably has 4 channels already defined in it.  So this VI is adding 4 more channels to the 4 already defined in the task.

0 Kudos
Message 4 of 4
(2,225 Views)