07-31-2014 10:34 AM
Hi,
I want to acquire a fixed number of samples using Ni 9234, a compacDaq and Sound and vibration.
I need 131072 samples at 2048Hz. The project is fairly simple. There is just 2 tasks, acquire and write to ascii.
In the acquire config, if I specify 131072 samples, it doesn't work. I suppose it was because it was too large. So I set 8192 samples and I execute the loop 16 times. At first it seems to work, I had the right number of data in my text file. But when I looked more closely, it seems that between each iteration, there is a lag of about 0.25s. I need a constant sampling rate. Is there a way to acquire 131072 samples at 2048Hz in one iteration. It would also be nice if I can see the data in real-time.
Thank you
Matt
08-01-2014 06:09 PM
Many times, this amount of delay occurs due to initializing and closing the task inside the same loop as your aquisition. Are you doing this in your application? It may be helpful for you to post some more information about how you are setting up your application.
Regards,
Matt Watts
Applications Engineer
National Instruments
08-04-2014 10:02 AM
Hi,
My application is quite simple, but since it's done with signal express, I don't quite know what happen in the background.
Here a screenshoot (it's in French)
08-05-2014 05:55 PM
Hey,
How are you verifying the 0.25s delay?
08-06-2014 07:44 AM
Hi,
I logged the data in an ascii file, I should have recorded them also but I forgot. The first column of the ascii file is the relative time. I also observed that there are more digits after the first iteration, you may look at the screenshot of the ascii file below.
I said 0,25s, but it was to illustrate, it's 0,1652s in fact.
Thank you for your support
Matt
01-22-2015 10:12 AM
I'm still having the same issue. Does someone found a solution ?
Thank you
Matt