ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pwm

HI!I have a PCI-6221 Daq card,now I need to generate two pulse trains(about 40k) on DO,moreover the phase bewteen the trains should be adjustable ,how can I do it ?Thanks!
0 Kudos
Message 1 of 2
(2,705 Views)
 

Hi tiannjc you can make the PWM using the counter on your board. on the next page you can find a small tutorial:

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1P0CAI&l=en-US

 

For the phase shifting  one way you could do it is by changing the frequency of one of the PWM for a little while till you get the phase shift and return it to its normal frequency.

 

Hope this helps

Benjamin C
Principal Systems Engineer // CLA // CLED
0 Kudos
Message 2 of 2
(2,659 Views)