LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

psd

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. 

as2717sussexacuk_0-1719846539243.png

as2717sussexacuk_1-1719846548134.png

thank u 

0 Kudos
Message 1 of 23
(1,466 Views)

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?/???


  • You are using way too many ExpressVIs and DDT wires.
  • You don't understand what happens when converting 1D array to DDT wire.
  • You only attach images of your VI instead of the real VI.

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!

Best regards,
GerdW


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

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. 

as2717sussexacuk_0-1719933538104.png

 

0 Kudos
Message 3 of 23
(974 Views)
0 Kudos
Message 4 of 23
(972 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 23
(950 Views)

as2717sussexacuk_0-1720530035728.png

it doesnt give proper result either. 

0 Kudos
Message 6 of 23
(789 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 23
(779 Views)

as2717@sussex.ac.uk wrote:

as2717sussexacuk_0-1720530035728.png

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. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 23
(724 Views)

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.

0 Kudos
Message 9 of 23
(694 Views)

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. 

0 Kudos
Message 10 of 23
(658 Views)