Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2176

Retriggerable pulse generation with matlab

$
0
0

Sorry hate to ask this question here but I got no answers yet from Matlab.

Is there a way to generate retriggerable pulses from NiDAQ using Matlab? Has anyone attempted it?

So far i can generate output pulses using

addtrigger, addcounter

So I add an external triggert to PFI0

That also acts as a clock

 

Then I add a counter with output connected to PFI4

 

The problem is that I have to specify frequency and duty cycle. And if I do that then that stated frequency is not exact as the input especially if my input has a frequency noise. And so on the scope I see the two pulse trains i.e., input clock and the counter output slowly edge away from each other at some slow rate but not slow enough for my purpose.

 

But I looked up NiDAQ manual and they have what is called retriggerable pulse generation which perhaps will solve my problem.

Thanks


Viewing all articles
Browse latest Browse all 2176

Trending Articles



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