01-07-2010 06:51 AM
Hi all,
I must admit I am unexperienced with DAQ cards (just done some simple stuff in past). We just got the NI USB 6259 card. The plan is to use it for many tasks. One of them is a measuring digital signal at the maximum rate. So far I tried ti create a task in MAX - what I was able to achive was to measure 500 - 700 samples at 1 Mhz using N samples measurment. In order to have sample rate at 1 Mhz I use External clock PFI12 (counter 0 output - I set the counter to generate 20Mhz Signal - 50ns/50ns High Time/Low Time).
The thing is - is it possible to get samples acquired at 1 MHz with continuous mode ? When I try with my current settings I get overflow error - I tried to ru tasks both ways - first started clock generator and then Digital Input; and the other way Digital Input first - so I assume that overflow is not due to improper usage.
In documentation it says :
If the DAQ device receives a DI Sample Clock when the FIFO is full, it reports an overflow error to the host software.
Is there another way to acquire digital signal, where one frame lasts around 6 ms and consists 8 bits ?
Solved! Go to Solution.
01-11-2010 02:34 AM
01-14-2010 05:06 AM
Thanks Dawid for help. I will try out the solutions as soon as possible. The reason to have the 1Mhz sampling rate is mainly because we have just got the card and I wanted to test all the possibilities with it, and according to spec it should be able to handle that task ( I agree that for the signal I was trying to read it was too big), but if we can why not try it 🙂
01-20-2010 08:14 AM
Hi Pachook,
I wanted to follow up with you, how things are going? Did you have a chance to check out your program and ideas given from me?
Beside you can use 1MHz sampling frequency, but you have to read more samples at one time. Usually it's take like 1/2 or 1/4 of buffer size which is dependent on your sampling rate.
Thanks,
Dawid
01-26-2010 07:14 AM
Hello Dawid,
yes I finally got enough time to do some tests with card and LV. I enclose my result program below.
And I also do have some remarks/advice for others :
And about the test program - it should work with 1 Mhz sampling rate, but only when I plugged it to full speed usb prt, for high speed front port or with the usb 2.0 hub I got an overflow error. I made it basing on NI examples - hopefully it is allowed 🙂
01-26-2010 07:56 AM
Pachook,
I'm glad that finally you have found enough time to work with it and finally it works. I just wanted to tell you that USB full speed standard allows you to send 12Mb/s this means 1,25MB/s. When using 1MHz and 16bit resolution (2B) then you're sending every second 2MB. That is why you have to use in those speed USB high speed, which can transfer up to 60MB/s (theoretically).
Beside if you were using simple while loop you don't have to use delay and it that case next iteration would happen when the acquisition would be over (in that case ~100ms).
Anyway I'm glad that finally you solved the problem:)
Regards,
Dawid
01-26-2010 08:02 AM
I agree what you said, I just couldnt remember the Full USB speed 🙂
And in previous version I also used the while loop, just later wanted to play with time loop too.
Anyway thanks for help and hopefully this thread here will help someone
🙂