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

Finite Pulse Train Generation - Exceeding Counter Limits

$
0
0

I have an application where I am using 1 counter as a master clock for 4 other counters, in order to generate 4 synchronized signals.  The idea was that by controlling the master clock, I can easily change the pulse rate of the 4 signals, yet keep them in perfect sync with each other.  I use this in both Continuous and Finite modes.

 

The issue is that under one condition, the counter is returning an error when I call START:

 

 

ERR: -200305

Possible reason(s):

Desired finite pulse train generation is not possible.

Change the number of samples to be generated, increase the rate of the pulse train, or choose a different timebase source. Refer to the documentation for more details.

Property: CO.Pulse.Freq
  Corresponding Value: 230.0
Property: CO.Pulse.DutyCyc
  Corresponding Value: 500.0e-3
Property: CO.Pulse.Freq.InitialDelay
  Corresponding Value: 0.0Property: CO.CtrTimebaseSrc
  Corresponding Value: /Digital/80MHzTimebaseProperty: SampQuant.SampPerChan
  Corresponding Value: 20000000 (That's 20,000,000)
Channel Name: Digital/ctr4

Task Name: _unnamedTask<6>

Any idea how I can accomplish this?  Note:  Essentially this is a ~24 hour task (20M/230 = 89,000 sec).  Do I need to set it up to do, say, 2M pulses and then retrigger?  Can I set that retrigger up for a fixed 10X?

 

Also note:  In 99% of the customer's use cases (which are much shorter), this scheme works.  This is a new one they surprised me with, otherwise I would have tested it.  So any solution should be a general solution that will work for 230Hz up to 16,000 Hz, and possibly up to 100K samples.

 

Thanks!

 


Viewing all articles
Browse latest Browse all 1271

Trending Articles



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