11-22-2022 03:18 PM
I am trying to acquire high-speed strain data which are a series of pulses with a pulse length of about 350 us. The strain pulse is induced by a power tool which applies 7 strikes every second (7 Hz). I set up an analog reference trigger so that every time the strain value exceeds 0.00022, a set of data (350 us) is acquired.
However, when the DAQmx Start Task and DAQmx Stop Task are placed inside the While loop, about half of the triggers are missed; when the DAQmx Start Task and DAQmx Stop Task are placed outside the While loop, it can only trigger once. Then I set the DAQmx Trigger Start.Retriggerable Node to True trying to make the trigger multiple times. But I get an Error-200452, "Specified property is not supported by the device or is not applicable to the task".
I am using LabVIEW 2013 Professional Development System, NI cDAQ-9174 chasis with an NI-9205 module. My vi is attached.
Any help would be highly appreciated.
01-06-2023 06:56 AM
I only have time now for a very brief overview of an answer, hopefully I can get back to this later with more detail.
Your device doesn't seem to support native retriggering for AI, but there's a workaround you can do. You *can* configure a counter for retriggering while generating a finite pulse train per trigger. And then you can configure your AI task to use that counter's output pulse train as its sample clock.
Be sure that your AI module supports the sample rate that you set with your pulse train frequency. I would probably set the AI task for (allegedly) Continuous Sampling b/c that leaves more options open for how I retrieve data and process it within the app.
-Kevin P