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
(1,510 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/2020 on Win8.1/10+cRIO
0 Kudos
Message 2 of 10
(1,473 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
(1,467 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/2020 on Win8.1/10+cRIO
0 Kudos
Message 4 of 10
(1,464 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
(1,454 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/2020 on Win8.1/10+cRIO
0 Kudos
Message 6 of 10
(1,442 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
(1,431 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/2020 on Win8.1/10+cRIO
Message 8 of 10
(1,421 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
(1,415 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/2020 on Win8.1/10+cRIO
0 Kudos
Message 10 of 10
(1,412 Views)