08-24-2019 12:41 PM
Holy cow! 10-100Hz? There goes my plans to run this acquisition (at least a *little*) fast! What a bummer. Well, here it is in LV 14. I just drew a case around the trigger stuff in case it was messing it up - paul
08-25-2019 01:51 PM
@PaulOfElora wrote:
Thanks Oscar - well, not finding any examples that run screaming fast like I need (well, pretty fast - 100kS/s). But - are you suggesting that I put like a 1ms Wait in the loop, then try to grab 100 samples per loop, to get the 100kS/s the card is rated for? Guess I thought (with no evidence) that maybe the call to the hardware, processing, etc. would take some time, which would then clock the loop...
08-25-2019 03:57 PM
@oscarfonseca wrote:
I usually wire the amount of samples I need, rather to using the Wait (ms) or other timing option for loop, since the OS might have jitter and not execute on time each iteration to the ms precision. Wiring the amount of samples you want DAQmx read to fetch will make it a blocking call that will halt execution there until they're available (or the timeout runs out).
Look at the example under the example finder "Voltage (with Events) - Continuous Input". Since the number of samples is event driven, the read call becomes non-blocking. I always use, 99%, this type of acquisition, that way my loop can respond to a stop event, or any other event without any blocking.
mcduff
08-26-2019 04:28 AM
McDuff - this is way cool, and it might just save my bacon. AND it teaches an old engineer some new tricks! Expect to get my hardware soon (gov't bureauracy) - will double down on this & try & squeeze what I can out of this box. Lesson learned - card sample rate and total system latency are 2 very different things! Very grateful for your help - paul