LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coercian dot on power spectrum

Solved!
Go to solution

Hello all,

 

Was just curious about why I have a coercion dot on my FFT Power Spectrum when suppling it a waveform?  I thought (and the detailed help agrees with me) that a waveform was the required type of input.  Maybe there is more going on here than I realize but clearly I don't see it.

 

As a sidenote I'm going this because I'm replacing an express VI in an application I was handed to finish up and the express power spectrum VI seems to give results that are off by the square of the input function.  Ok so that sentence makes little sense, so what I mean is when I hook a function generator up to my DAQ board and supply a sine wave of a known frequency the express power spectrum VI gives 16Hz instead of 4Hz, or 2500 instead of 50.  The normal power spectrum VI works fine.  Don't like Express VI's anyways but just curious.

 

Thanks in advance!

0 Kudos
Message 1 of 12
(3,674 Views)

Code?

 

This shows no coercion dot:

 

0 Kudos
Message 2 of 12
(3,669 Views)

Here's the relevant part of the code.  And yeah its messy...still testing it out at the moment!

0 Kudos
Message 3 of 12
(3,656 Views)

Are you certain that t0 is in the correct format?

Jim

LV 2020
0 Kudos
Message 4 of 12
(3,646 Views)

Well its the inverse of my sampling rate.

0 Kudos
Message 5 of 12
(3,640 Views)

That would be dt.

Jim

LV 2020
0 Kudos
Message 6 of 12
(3,638 Views)

Yeah it would...please excuse my inability to read!  The t0 is just coming in from a "Get Time/Date in Seconds"

0 Kudos
Message 7 of 12
(3,635 Views)
Solution
Accepted by topic author Dac83

Is the Y array DBL?  SGL or EXT would produce a coercion dot.

 

Lynn

Message 8 of 12
(3,625 Views)

Are the array and dt the same precision? i.e. dbl?

 

Lynn beat me to it.

Jim

LV 2020
Message 9 of 12
(3,622 Views)

Good call!  It was a single.  I put in a convert to dbl and coercion dot is gone.  Thanks a lot everybody!

0 Kudos
Message 10 of 12
(3,619 Views)