02-01-2021 02:02 AM
hello everyone,
i have implemented a spectrum function on a time domain signal in MATLAB. i want to implement the same function in Labview. i have tried all spectrum VIs in Labview but they didnot give same output signal.
i donot want to use matlab script in my code. can anyone guide that in labview which VI works same as Spectrum function of Matlab?
Thanks
02-01-2021 02:18 AM - edited 02-01-2021 02:19 AM
Hi sundas,
@sundas wrote:
i have implemented a spectrum function on a time domain signal in MATLAB.
Do you mind to explain which functions with their parameters you use in Matlab?
Do you mind to provide example data used for the spectrum calculation?
@sundas wrote:
i want to implement the same function in Labview. i have tried all spectrum VIs in Labview but they didnot give same output signal.
Do you mind to explain the differences in the output data? Are the results "different by orders of magnitude" or just "different in the 6th or 7th decimal digit"?
Do you mind to explain which (LabVIE) functions you tried?
Do you mind to attach a VI with those function, with example data embedded, so we can discuss about your results?
02-01-2021 02:55 AM
i have tried power spectrum, auto power spectrum, amplitude and phase spectrum.
In matlab, i have applied
x = spectrum(x (1:end));
As result, i got one signal curve.
But when i implement the said Labview spectrum VIs i got FFT type signal response.
02-01-2021 03:23 AM
Hi sundas,
you missed to attach a VI with example data…(LV2017 preferred)
@sundas wrote:
x = spectrum(x (1:end));
As result, i got one signal curve.
But when i implement the said Labview spectrum VIs i got FFT type signal response.
What is the difference between a "signal curve" and a "FFT type signal response"?
Don't you expect a "FFT type" response when you calculate a spectrum???
02-24-2021 12:38 AM
Attached is the screenshot of spectrum response in Labview and matlab with same input signal.
please see the attached screenshots and suggest something.
Thanks..
02-24-2021 01:26 AM
03-08-2021 01:17 AM
Hi,
you can refer the attached screenshots to compare the results.
If it helps you this will be great.
Thank you
03-08-2021 04:00 AM
Hi sundas,
@sundas wrote:
you can refer the attached screenshots to compare the results.
If it helps you this will be great.
I have to ask for the 3rd time:
When will you attach an example VI with example data included so we can analyze what you have programmed?
When will you attach the Matlab source code used to create your image?
Just showing images of some arbitrary plots does NOT HELP at all…
03-09-2021 01:18 AM
Hi GerdW,
Please find the attach zipped folder.
I hope now this will help you.
I will wait for your reply.
Thanks
03-09-2021 01:58 AM
Hi sundas,
@sundas wrote:
Please find the attach zipped folder.
I hope now this will help you.
Two notes: