LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Having distortion in sine wave in Fpga node in MyRio

Hi 

I am taking 50Hz 1 volt p-p signal in Fpga Target MyRio. I do get a good wave form at 1 Hz but as I increase the frequency my waveform gets distorted. I have also used time loop (flat sequence) but the output wave is very slow take minutes to execute. I want to run my vi faster what other option on Fpga target MyRio do i have in terms of controlling sampling rate. 

 

kindly help i am completely new to Labview and MyRio

 

 

Regards  

0 Kudos
Message 1 of 9
(1,722 Views)

Hi Aysha,

 


@Aysha_shakeel wrote:

I am taking 50Hz 1 volt p-p signal in Fpga Target MyRio. I do get a good wave form at 1 Hz but as I increase the frequency my waveform gets distorted. I have also used time loop (flat sequence) but the output wave is very slow take minutes to execute. I want to run my vi faster what other option on Fpga target MyRio do i have in terms of controlling sampling rate. 


What is a "time loop (flat structure)"?

Why don't you attach your VI - or even better the whole project as ZIP? (Including the lvproj file is important as it contains definitions related to your myRIO target!)

 


@Aysha_shakeel wrote:

kindly help i am completely new to Labview and MyRio


Did you already take the "Training resources" offered in the header of the LabVIEW board?

Did you learn about basics of RT and FPGA programming with LabVIEW?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(1,719 Views)

I have gone through the resources and found the time loop is solution foe this problem.

https://zone.ni.com/reference/en-XX/help/371599P-01/lvfpgaconcepts/using_timing_functions/

from this link. but it doesn't seem to help me out. I continuously get distortion on 20 mili sec and on 200 mili sec my system seem to work fine but it gets really slow. I have attached the VI trying to do carrier wave PWM modulation using MyRio Fpga target.

 

Regards 

 

0 Kudos
Message 3 of 9
(1,694 Views)

Hi Aysha,

 

you still forgot to include your code/project…

 


@Aysha_shakeel wrote:

I have gone through the resources and found the time loop is solution foe this problem … but it doesn't seem to help me out.


So your "solution" is no solution at all!?

 

Again: Please attach your code when you have problems with your code!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(1,691 Views)

Regards 

Download All
0 Kudos
Message 5 of 9
(1,683 Views)

I am using function generator and Fpga node to get 50Hz 1 volt p-p signal

 

Regards

0 Kudos
Message 6 of 9
(1,681 Views)

You need to attach all of your code.  To develop with a myRIO, you must have a LabVIEW Project.  It should be the case that all of the VIs that you are using in your Project exist inside a single Folder, probably inside the LabVIEW Data folder.  Compress the Folder containing your Project (right-click the Folder, choose "Send To" and then choose "Compressed (zipped) file"), and attach that .zip file.  This will show us what you are doing that is wrong, or what you are failing to do that is necessary to sample a signal.

 

Bob Schor

0 Kudos
Message 7 of 9
(1,667 Views)

Hi Aysha,

 

you failed to attach the whole project, so I miss all the FPGA definitions for your target.

 

What's the point of that chart? The FPGA does not support any displays!

What's the setting of that "Count(msec)" control? Is it still zero when you run this VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(1,667 Views)

I change my milisec counter to 2 mili sec-200 mili sec to get the exact sampling rate. What I am trying to achieve is PWM by comparing sine wave with the carrier. Now the issue is that the sine wave m taking at 50Hz is distorted and the results are not quite satisfying. 

0 Kudos
Message 9 of 9
(1,649 Views)