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

Specify Samples Only At Change?

$
0
0

No doubt a variation of this has been asked before, so my apologies but I'm unable to find anything.

 

I am using a PCIe-6537 and trying to generate a long sequence (say 2 seconds) using C. Is there any way to only specify a few samples? Or do I need to specify the value at every sample time?

 

For example, suppose I want on all 32 channels a 1 microsecond HIGH followed by 1 second LOW, repeated twice. I would like to be able to say:

 

Sample 0: 2^32 - 1

Sample 1: 0

Sample 1000000: 2^32 - 1

Sample 1000001: 0

 

However it seems I have to specify the actual value at every point in time. Of course this takes far more time and memory to Write but I don't see any other way. Is there a way?

 

I hope the question is clear. Thank you.


Viewing all articles
Browse latest Browse all 2167

Trending Articles



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