LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1channel 1 sample & 1 channel multi samples?

Hi all
 
Here I have a problem, hope get your help.
 
In my task, there are two signals to be acquired, one is  analog voltage signal, the other is a counter for encoder pusles. My task is gathering the two signals together. When I set the DAQmx analog to 1chan 1samp, the output  may be just 1000 samples, then there is no output anymore, so I change DAQmx 1chan Nsamp, but no output comes out anymore.
 
 What is wrong?
0 Kudos
Message 1 of 8
(4,247 Views)

Could you post your VI. I don't understand your comment about 1000 samples with 1Ch 1Samp. When you configure the DAQmx Read for this, you will get 1 and only 1 sample each time you call it.

Message Edited by Dennis Knutson on 09-25-2007 01:21 PM

0 Kudos
Message 2 of 8
(4,237 Views)
Hi:
          Your problem is task. You are trying to mix between analog, and digital let alone the digital input is counter. I would suggest you write program in a traditional maner. It will give you a greater control.
 
        1) Create I/O or Create virtual channel.
        2) Set the clock.
        3) start the task.
        4) Read.
        5) Repeat reading.
         6) when you finish reading stop task.
       7) Delete channel.
 
or
      If you headache try to use DAQ assist. for the simple application ofcause.
 
Good luck.
0 Kudos
Message 3 of 8
(4,229 Views)

Thanks for your reply

Here is my diagram. I didn't count whether it is 1000 samples, but according to its executing time, I guess it should be.

0 Kudos
Message 4 of 8
(4,220 Views)
Trying to figure out what you are doing from a patial image of you code in a word doc is too much for me. I do see several local variables and that's generally not a good sign.
0 Kudos
Message 5 of 8
(4,216 Views)

In my VI, there are three loops,  what I put in Word document is just partial relative for data acquisition. Sorry I don't know how to get the partial picture of it.

 

Anyway, it shows two channels and their settings.

0 Kudos
Message 6 of 8
(4,213 Views)
Why don't you just post the actual VI?
0 Kudos
Message 7 of 8
(4,203 Views)

ok, I got the problem.

 

Thanks.

0 Kudos
Message 8 of 8
(4,200 Views)