From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Frequency scaling down of the signal

Hi Navin,

 

where did you set those "3MHz clocks"? They are not visible in your images…

 

(Unfortunately I cannot examine your code in all details because of some missing hardware support.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 17
(519 Views)

Hi GerdW,

 

i have set the clock1 frequency in FPGA base clock properties window and here i am attaching image for your reference. please check it.

 

 

 

0 Kudos
Message 12 of 17
(515 Views)

Hi Navin,

 

as I don't have experience (and hardware drivers) for this special kind of hardware I'm out of suggestions!

 

With a cRIO FPGA I would create a derived clock from base clock - or use a simple Wait function inside a plain WHILE loop…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 17
(509 Views)

Hi Gerdw,

 

i have generated the derived clock with 3MHZ for FPGA, signal frequency is 320KHz, output frequency  is ok now but output signal on the CRO seems like stepped sine signal..

i keep increasing the #samples also still it couldn't be solved

 

how to smoothen the signal can anyone please suggest me

 

regards

navin

0 Kudos
Message 14 of 17
(487 Views)

Hi Navin,

 

do you mind to provide the current state of the project?

Can you attach some images of the waveforms you are worried about?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 17
(483 Views)

Hi GerdW,

 

i am updating the state of the project here

 

Now my timed loop is running at frequency is 3MHz SCTL, signal frequency is 320KHz @fs =3MHz

 

now i am getting output frequency almost equal to input signal frequency, but wave form is not a smooth sine wave, itseems like stepped sine signal. 

Here i am attaching the project file and images of the signal on CRO..

please have a look at it and help me out

Download All
0 Kudos
Message 16 of 17
(481 Views)

Hi Navin,

 


@Navin4561 wrote:

signal frequency is 320KHz @fs =3MHz


At fs=3MHz and sine frequency of 320kHz you get just 9 samples per period: I would expect nothing else than a "stepped" output signal…

 


@Navin4561 wrote:

wave form is not a smooth sine wave, itseems like stepped sine signal.


I don't know where you see something like a "stepped sine wave". All I see is a ramp (aka sawtooth) signal with just 3 or 4 samples per ramp…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 17
(476 Views)