07-03-2009 10:39 AM
Hi - Hopefully this will be an easy question to answer.
I am reading in an analog voltage. I need to acquire 20 samples every time the voltage goes above 0.1 V. What is the best way to set this up?
I tried putting an N-samples acquisition in a while loop with an analog edge trigger (rising at 0.1V), but it misses most of the voltage peaks (the data rate is 1 MHz and the voltage will go above 1 V about 1000 times a second).
Thanks for your help! (I attached the VI if you want to see what I've got)
Jeremy
Solved! Go to Solution.
07-03-2009 01:41 PM
07-03-2009 01:51 PM
Ah, I didn't even catch that. Although the loop should have still executed 1000 times per second, instead it only executes 8 or 9. (I know the solution I'm using can't do that, but I'm look for one that can).
Thanks.
07-06-2009 09:30 AM - edited 07-06-2009 09:30 AM
I attached an updated VI so there is no array of dynamic signals and it reads the number of samples and not the number of iterations.
I would really, really appreciate it if someone could help me out here.
Thanks,
Jeremy
07-06-2009 09:52 AM
07-06-2009 10:21 AM
Alright, now we're sort of getting somewhere. See the attached VI. It works fine except I need the loop to execute every time the trigger is "activated". Right now it just loops continously reading in 20 samples after the first trigger. I need exactly 20 samples after each trigger.
Thanks,
Jeremy
07-06-2009 11:01 AM
07-06-2009 11:47 AM
That's pretty much exactly what I needed! I noticed that there is a "recover time" of about 35 ms before it can accept another trigger after the previous trigger, however. Is there any way you can think of to speed that up, or is that just the limitations of the hardware?
Thanks for your help,
Jeremy
07-06-2009 12:41 PM
07-06-2009 12:49 PM
Yeah, the commit is 30 Hz "efficient" but not 1 kHz efficient.
Thanks,
Jeremy