Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Half Period shifted Signal without copying code?

Hi everyone!

 

Here is the code which generates accurate PWM for Half bridge Control with programmable dead-time, now here is the issue i want to shift the same signals on two DIO's with half the period of the signal. i ve tried following:

 

1. I copied the same code in FPGA and delayed it with half period using a wait( but it is consumes double resources and some times the half period phase difference is also not accurate).

 

 

I need some other technique to shift the same signal by half-period( or copy paste the same signals onto 2 other outputs by not copying the same code and thus saving resources). Any help is appreciated.

 

 

Best regards,

azy

Download All
0 Kudos
Message 1 of 4
(5,264 Views)

Hey,

 

why do you use the sub vi two times?

Do you use a NI modul and even if which one?

 

regards

Patrik

 

 

0 Kudos
Message 2 of 4
(5,197 Views)

Hello patrik,

 

Thanx for the reply.

 

i am using the NI9401 module for PWM signal generation, and i use the subVI 2 times because the rising edge delay has to be at both edges of a pulse, if there is dead-time at starting edge and not at ending edge there might be a short circuit between high and low side mosfets. do u have any idead to copy code with halp period shifted without duplicating code in FPGA ??

 

Best Regards,

azy

0 Kudos
Message 3 of 4
(5,192 Views)

Hey azy,

 

I´ve two links for you. I hope they will help you.

 

http://www.ni.com/white-paper/3254/en/#toc6

https://decibel.ni.com/content/docs/DOC-1065

 

Will the frequency stay constant or do you want it variable?

 

regards Patrik

 

0 Kudos
Message 4 of 4
(5,178 Views)