Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a digital waveform with custom pattern in Counters

Hi,

 

I have a problem in generating the waveform as shown in JPG below. Have to generate 2 digital waveform

 

1. Using counter0 -  digital waveform shall be with 60 pulse (58- valid pulse and 2 empty pulse)

2. Using Freqout - digital waveform should be in sychronize with signal one at 40 pulse signal 2 should become high for next 5 pulse.

 

I tried generating digital pattern using 2D Boolean array convert to digital waveform. But somehow I couldn't get the expected waveform.

 

If anyone could help me in this issue.

 

Thanks in advance

Vijay

0 Kudos
Message 1 of 2
(3,026 Views)

Try this, create two tasks containing the digital output lines you want to generate the waveform.

Perform digital write on the tasks with two 1D Boolean arrays corresponding to the pattern you want to generate. 

Give common clock to both timing vis used for each task.

0 Kudos
Message 2 of 2
(3,002 Views)