07-01-2024 10:09 AM
I have a question about this PSD. why does it show only the freq range between 0-0.5? how to correct it? what i am doing wrong?/???
i wanted to see in the freq range 0-100Hz.
thank u
07-01-2024 01:38 PM
Hi as,
as2717@sussex.ac.uk wrote:
I have a question about this PSD. why does it show only the freq range between 0-0.5? how to correct it? i wanted to see in the freq range 0-100Hz.
what i am doing wrong?/???
Suggestion:
Convert the 1D array of samples to a waveform, using the correct dt value. Once you do this the PSD function (there is a non-Express version as well!) will give expected frequency values for the X axis!
07-02-2024 10:19 AM
i cant convert 1d array to waveform. what can i use it is a single waveform in converting option. but it doesnt change the result of PSD. it shows wrong value at 10 Hz. while the signal is 50Hz.
07-02-2024 10:20 AM
07-02-2024 01:39 PM - edited 07-02-2024 01:41 PM
Hi as,
as2717@sussex.ac.uk wrote:
i cant convert 1d array to waveform.
Once you would get rid of ExpressVIs this task becomes really easy:
Conversion of 1D array of samples to waveform…
as2717@sussex.ac.uk wrote:
what can i use it is a single waveform in converting option. but it doesnt change the result of PSD. it shows wrong value at 10 Hz. while the signal is 50Hz.
Because you forgot about the samplerate!
Did I mention the "correct dt" before?
07-09-2024 08:01 AM
it doesnt give proper result either.
07-09-2024 09:09 AM - edited 07-09-2024 09:10 AM
Hi as,
as2717@sussex.ac.uk wrote:
it doesnt give proper result either.
Your image shows an executable VI with a plot on the graph and no error in the error cluster.
As far as I can tell from your image "your VI is working as programmed". (Maybe "as programmed" is different to "as needed"...)
When you need more help then you should attach your VI!
07-09-2024 01:00 PM - edited 07-09-2024 01:08 PM
as2717@sussex.ac.uk wrote:
it doesnt give proper result either.
Why are you not using the waveform instance of the Analog Input Read?
HINT: When you get the AI channel data AS WFM all the configured timing information is part of the waveform and you don't need to try to stuff the y array into a waveform with the (wrong) dt.
Also, I think your scaling is very wrong. The PSD output is in dBm so either scale the linear input by x1000 OR just ADD 30 to the output.
07-10-2024 05:27 AM
i am using myrio 1900 device.
this vi is generating sine wave and sending that signal to the ao/0 and attaching it to the antennna, then another sensor reads it and sends signal to the input of myrio, so i confugured AI0/0 as a source for the psd.
it doesnt work properly tbh, and the values in the ai0/0 is only between 0-4 volts yes bcs it is mxp connectors,
i can use msp connectors if i want proper vision of the signal output and psd, but for the high thr with n samples is only available mxp pin3.
i need n samples for plotting psd which is available only with high thr, or are there any other methods to plod psd without high throughput?
idk, im tired.
07-11-2024 04:40 AM
actually my problem is with acqusition of the signal, why does it look like that in grapgh, but in scope was different, like pure sine wave. in some forum ppl mentioend using fifo. do smn know solution? pls help asap.