LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual Oscilloscope; Tuning Data Acquisition Rate

Solved!
Go to solution

Hi everyone!  I have been attempting to program an oscilloscope using Labview software and USB-6009 DAQ.  It is very close to completion, but I cannot seem to tune the data acquision rate to the right speed.  Let me show you what I am talking about:

 

waveform dt: 0.1

Frequency:  Accurate

Limit: 5 Hz

Explanation:  " [0.1 dt] That is 10Hz.  So based on Nyquist, 5Hz is the maximum frequency you can sample.  Anything more than that will alias down into the 0-5Hz range."   -Crossrulz

 

 

onetenth.png

 

 

waveform dt: 0.001

Frequency:  x100

Limit: 500 Hz

Explanation:  ????? The frequency seems to be dividing by dt at some point.

 

onethousands.png

 

I would love for this oscilloscope to simultaniously read faster than 5 Hz and be accurate.  Here is my block diagram if anyone would be willing to take a look:

 

Create Channel ->  Read -> Buffer/Collector -> Trigger -> Append -> Measurements/graph

 

blockdiag.png

 

One last note:  The dt that I am changing is on an empty waveform that I append to my input signal in the upper left corner.

0 Kudos
Message 1 of 11
(3,569 Views)
Duplicate: http://forums.ni.com/t5/LabVIEW/Virtual-Oscilloscope-Slow-Data-Acquisition-5-Hz-limit/m-p/2891640

Why the new post when you had it solved and why use the very incorrect acquisition method? 1 sample mode is just wrong and you were told that.
0 Kudos
Message 2 of 11
(3,551 Views)

He answered my question of why I could only sample up to a rate of 5 Hz.  But my program is still not functioning.  I wanted to try to make a new post that would outline my problems a little more coherently.

 

Changing the DAQ assistant to continous did not solve the issue.  Changing to DAQmx did not solve the problem, and I am not sure if it still one-sample.. but it was what was suggested to me last.  If you are reffering to the output.. it doesn't really matter where my signal comes from.  I have been testing it against a known 60-Hz.  (I didn't mean to include AO in this picture)

 

Thank you again.

0 Kudos
Message 3 of 11
(3,541 Views)
You were clearly told to NOT use 1 sample mode and you marked that answer as solving your question. It simply makes no sense to go back to that mode. I don't think you understand the basics of data acquisition and ignoring the answers that you have been given without reason is inconsiderate.
0 Kudos
Message 4 of 11
(3,530 Views)

How do you move to continous mode with the DAQmx?  I tried adding a timer and changing the sample mode to continous,.. but the rate screws with the frequency and I get this message.continous.png

 

As for the output, it sais one-sample is my only option:

 

error.png

 

So.. It may be that I don't know what I'm doing.  but, that is why I am asking for help.

 

0 Kudos
Message 5 of 11
(3,528 Views)

I can assure everyone that I will be, and have been, attempting ALL solutions given to me.  This is important to me.

0 Kudos
Message 6 of 11
(3,514 Views)
Solution
Accepted by topic author Fievels
Have you run any of the examples that come with LabVIEW? STOP using the 1 sample DAQmx Read. Right click on it and change the type. The other error would come if you changed the analog out task. Delete that part since you are not using it.
0 Kudos
Message 7 of 11
(3,510 Views)

Okay.. I understand why you are irritated with me now; I apologize.  Here is an update: 

redone.png

 

 

0 Kudos
Message 8 of 11
(3,493 Views)

Okay, so this is where we are at:

 

input: 60Hz

dt: 120Hz

Read: Nsample Waveform

 

 

60hzinput.png

 

 

 

60hzinput2.png

 

It looks like its almost fast enough.. but still choppy.

 

0 Kudos
Message 9 of 11
(3,478 Views)

!!!!  I have it working now.  

 

Continous mode, N Samples, extra high dt.  

 

I still get memory overflow, but I am really excited to get 60-Hz.  

 

Thank you for your help and patience Dennis.

0 Kudos
Message 10 of 11
(3,466 Views)