LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dead time in PWM

hello, is there a way to enter the dead time between signals. any suggestions?

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

Hi,

Adding a delay to a control system falls under the topic of controller design.
I Recommend that you study the labVIEW help file for "CD Set Delays to Model" VI, "Discrete Delay Function" VI and the Lead-Lag controller in general ("PID Lead-Lag" VI)

Thanks for the attached .vi,
Adding LabVIEW timing delays inside an executing Control & Simulation Loop is possibly going to break the execution, but it will not affect the results of the simulation.

It is important to understand the difference between execution timing vs. control timing.
Execution timing is the rate/speed at which your software runs (the LabVIEW Code)
Control timing is the rate/speed at which you update the state of your control application, such as updating the values of your I/O nodes in a control system.

Adding "Time Delay" nodes will influence your execution timing. When using the Control & Simulation Loop, the idea is that the loop runs once for each I/O refresh. (Or more specifically the I/Os refresh with the rate you set up for the CDS loop), and it runs at regular, deterministic intervals (Real-Time simulation), so you can easily convert real-time simulation to a system with hardware IO later on.

Basics of Control Design and Simulation

 

Of course in case of pure simulations, you can also decide to run them as fast as your computer allows, but adding delays inside the control loop will just increase the runnig time, it will not change the output (once per loop).

 

You can find some great materials on the LabVIEW Control Design and Simulation Resources page.

Best Regards,
T Simon
National Instruments
Applications Engineer
Certified LabVIEW Developer - Certified TestStand Architect
0 Kudos
Message 2 of 3
(2,857 Views)

Can you show how to use the "CD Set Delays this model VI" in my model to introduce a delay between PWM1 and PWM2 as shown?

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