LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview

can anybody please tell me , how to generate continuous varying square waveform. It means the Duty cycle should change like 20, 25, 30, 35, 40. in continuous way.

0 Kudos
Message 1 of 10
(3,331 Views)

Hi ravi,

 


@ravi18 wrote:

can anybody please tell me , how to generate continuous varying square waveform. It means the Duty cycle should change like 20, 25, 30, 35, 40. in continuous way.


There are signal generation function in the signal functions palette. (Atleast) One of them is able to generate square waveforms with varying duty cycle.

When the duty cycle should change you could place that square waveform generation in a loop and autoindex over your array of duty values…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(3,294 Views)

ravi18_0-1576220081596.png

ravi18_1-1576220102126.png

i think you r talking about this, But we cant generate varying Duty cycle.

0 Kudos
Message 3 of 10
(3,288 Views)

Hi ravi,

 


i think you r talking about this, But we cant generate varying Duty cycle.

Yes, that's what I'm talking about.

Why can't you change the duty cycle? Your image clearly (or better: blurry) shows a "duty cycle (%)" input for that signal generation function…

 

I just mentioned this thread to a different user…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 10
(3,285 Views)

yes you r right.. But I want the duty cycle should change automatically between some range, not by user controlled. i tried doing it with "building array", But its not working.

0 Kudos
Message 5 of 10
(3,275 Views)

Hi ravi,

 

so you are doing something which is not working…

 

There are two options:

  1. you create the VI on your own correctly
  2. you attach your current VI and we tell you what you have done wrong (I prefer LV2017)

I also changed the thread title to something more senseful: every thread in this forum is about LabVIEW!

 

(What about this "plea for full words" don't you understand?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 10
(3,263 Views)

I am using LV2019, the DAQ which i am using is ni9269. just tell me how to change Duty cycle automatically.

0 Kudos
Message 7 of 10
(3,252 Views)

Hi ravi,

 

unfortunately I cannot open your LV2019 VI now, next time please "Save for previous"…

 

A snippet created in LV2011:

check.png

Creating a square waveform in a loop with variable duty cycle…

 


@ravi18 wrote:

the DAQ which i am using is ni9269. just tell me how to change Duty cycle automatically.


When you use a CO (counter output) DAQmx task you can set the duty cycle using DAQmxWrite…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 10
(3,242 Views)

ok.... thank you so much.

actually i am new for labview, currently I am playing with DAQ assistant only not with DAQmx. 

0 Kudos
Message 9 of 10
(3,236 Views)

Hi ravi,

 


@ravi18 wrote:

actually i am new for labview, currently I am playing with DAQ assistant only not with DAQmx. 


You really should use "plain" DAQmx functions instead of that DAQAssistent, they are very easy to use!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 10
(3,233 Views)