Jump to content
  • 0

DD: Use Play Mode to generate periodic pattern


Stefan-F

Question

Hi,

I want to output a complex but periodic pattern (like the PWM signal of a sine wave), with more than 64k samples / period.

I want to define the data points for a period and output this pattern endlessly.

I tried to use playback mode, like in DigitalDiscovery_PlayRecord.py, which works fine for a single period.

But I have not found a way to repeat the pattern.

I tried setting FDwfDigitalOutRepeatSet() to a value other than one, but the data point address doesn't seem to start over at 0 for each new period, but keeps increasing and outputting random memory contents after the first period.

Is there an other way to solve this problem?

Or is it possible to make FDwfDigitalOutRepeatSet() work for values other than one? 

 

Best regards,

Stefan

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...