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

buffered counter output in C

$
0
0

Hi everyone,

 

I am looking for a possibility to generate a finite buffered counter output with varying pulse widths, using the X-Series. I am working in C / Python.

 

I want to output two pulses triggered to an external signal. The first pulse should be short, the second pulse long. 

 

The following code outputs only two identical pulses. How can I modify it to output two different pulses?

 

CreateCOPulseChanTicks(channel,"","100MhzTimebase",DAQmx_Val_Low,0,300,300)

CfgImplicitTiming(DAQmx_Val_FiniteSamps,2) #output two pulses
CfgDigEdgeStartTrig(src,DAQmx_Val_Falling) #external signal
SetStartTrigRetriggerable(True) #retrigger

 

Best Regards,

Stefan


Viewing all articles
Browse latest Browse all 1271

Trending Articles



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