LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sine signal with alternating frequencies.

Hello,

 

I am interested in generating a sine signal whose frequency and amplitude change after every cycle. For example: lets assume we have two amplitudes a1, a2 and frequencies f1 and f2.

 

I want a sine signal with a1, f1 and a2, f2 alternatingly. One sine pulse a1,f1 and other sine pulse a2,f2 and this pattern repeats.

0 Kudos
Message 1 of 8
(3,005 Views)

Where are you having a problem?

 

There are functions on the waveform palette to allow you to build the different cycles of the sine wave.  Then you can append the two different periods of the two sine waves together to build it into one waveform.

Message 2 of 8
(3,003 Views)

 

0 Kudos
Message 3 of 8
(2,999 Views)

Hi Preetham,

                     See the waveform palette,

                    Function pallete>>programming>>waveform

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Message 4 of 8
(2,990 Views)

Hi Preetham,  Please find the screenshotuntitled.PNG

Regards,

SrikrishnaNF

 

Regards,
Srikrishna


Message 5 of 8
(2,975 Views)

Hello srikrishnaNF,

 

Thanks for the solution. But the issue is I just want to append one cycle of a1,f1 and one cycle of a2, f2. f1 and f2 could be DBL. Let me know if you have a solution. I shall appreciate it.

0 Kudos
Message 6 of 8
(2,963 Views)

@Preetham1 wrote:

Hello srikrishnaNF,

 

Thanks for the solution. But the issue is I just want to append one cycle of a1,f1 and one cycle of a2, f2. f1 and f2 could be DBL. Let me know if you have a solution. I shall appreciate it.


I would make an array for your amplitudes and frequencies.  Use a FOR loop to create the waveforms and concatinate.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 8
(2,959 Views)

I just realized what you were asking for.  Sorry for the misinterpretation.  See if this works for you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 8 of 8
(2,954 Views)