LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom high and low times for square waves

Solved!
Go to solution

Hi, is there a way to create a square wave that has an incremental HIGH pulse width and a fixed LOW pulse width?

 

Sorry I'm quite new with labview, any help is appreciated, thanks!

0 Kudos
Message 1 of 4
(7,128 Views)

Hi, here is my solution, it simply alters the frequency to offset the change in duty cycle.

 

Hope it works for your application.

 

Joel.

Joel G
Applications Engineer
National Instruments UK & Ireland
Message 2 of 4
(7,092 Views)
Solution
Accepted by topic author GBPC

 

Hi GBPC,

 

My name is Jack and I work at National Instruments UK.

 

I understand you are trying to output a square wave signal with a fixed low time and variable high time in labVIEW.

 

The reply above works great if you want to use the signal internally. Alternatively if you are trying to output the signal with a piece of internal or external Data Acquisition (DAQ) hardware you will want to use LabVIEWs DAQmx Tool palette.

 

I have created a quick example below for you to look at that should help you come to a solution. It uses the DAQmx VIs to create and initialize a channel and then runs it in a loop with controls to change the high and low times using a property node.

 

Hope this helps

 

 

 

Jack. W
Applications Engineer
National Instruments
Message 3 of 4
(7,083 Views)

Thank you both for the great solutions, they're very helpful!

0 Kudos
Message 4 of 4
(7,065 Views)