Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Generating a finite waveform using an external clock, and retriggering

$
0
0

I need to generate a finite waveform that's driven via an external clock.  This waveform will have about 900 different tick counts for low and high ticks.  I also have an external trigger signal that I want to use to fire this finite waveform again (using the task retriggerable feature).

 

I have 2 main questions. First, CreatePulseChannelTicks() only takes a single value for high and low ticks.  If I start this task, those 2 values are generated on repeat.  I have defined my array of values in a CODataTicks[].  If I write this array out using CounterSingleChannelWriter.WriteMultiSample(doDataTicksArray), does that still use the external clock I defined in ConfigureSampleClock?

 

2nd, is it possible to use the finite waveform, external clock source, and retriggerable feature together?  If I'm reading this correctly, this page suggests it may not be possible: https://www.ni.com/docs/en-US/bundle/ni-daqmx/page/gensnglefinconttrains.html If this is supported, can you point me to an example?

 

 


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>