LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

obtain an impulse using mathscript composing of multiple frequencies

Hello. Im a newbee in labview and i need some help. Attached here is a mathscript for the generation of impulse composed of frequencies from 10 to 5000. The output doesnt come to a close impulse figure. any suggestions? the for loop is not included, it is one of my shortcoming as a newbee.

0 Kudos
Message 1 of 2
(2,166 Views)

I do not have the mathscript module but I think your calculations are wrong.

 

It appears that you generate two arrays, multiply them together creating a third array. You then calculate the sine of each value in that array. Then add together all the sine values, take the absolute value and return it as an array with one element. This gets repeated 5000 times with exactly the same result each time. 

 

The Spectral Measurements VI probably does not like the 2D array. But it will not produce very interesting results with an array of constant values.

 

What mathematical operation are you trying to perform to get the impulse?

 

Lynn

0 Kudos
Message 2 of 2
(2,138 Views)