LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it able to combine my spectrum circuit to my filter circuit?

Solved!
Go to solution

Hi
I have a problem with combining my spectrum circuit to my filter circuit. when i try to take the output of my spectrum to the input of my filter, it says they are different kinds of info. Is there anyway to combine the 2 circuit together? Here is my vi. I need help urgently! thanx! 

Download All
0 Kudos
Message 1 of 21
(2,935 Views)

I want it to create the spectrum than straight away use the spectrum value to filter away the noise in the waveform. Is it possible? Because the data coming out from the spectrum is a cluster or 3 element. How can i do the let the data run in my filter function? Need help plz! >.< thanx!

0 Kudos
Message 2 of 21
(2,884 Views)

The output of the Power Spectrum and PSD.vi is actually an array of clusters.  First you need to use Index Array to one of the clusters. Your file only has one element in the array. Then Unbundle by Name gives you access to the elements of the cluster.  The Magnitude array is probably what you want to "filter." 

 

How do you intend to identify the "noise" components of the spectrum? It is unusual to apply a time domain filter to frequency domain data. What are you trying to accomplish?

 

Lynn

0 Kudos
Message 3 of 21
(2,870 Views)

Hi lynn
Thanx for the reply. What i am trying to acommplish is just like my vi shows. First i get my spectrum and from the spectrum i get the value for the bandpass filter. Now what i wan to do is to merge the 2 circuit together. But i am stuck on how to unbundle the array cluster. I tried to use the unbunde function but it cannot be unbundle this way. Can you do a demo for me? thanx!

0 Kudos
Message 4 of 21
(2,855 Views)

As i also want to show the x-axis reading of the spectrum circuit and display it on a table. Is this possible? 

0 Kudos
Message 5 of 21
(2,854 Views)

I do not see anything which indicates how you are getting filter parameters.

 

The images below show how you can unbundle the spectral data after indexing and how to display the numerical values of the PSD output.

 

Lynn

 

Unbundle.png

 

PSD Indicator.png

0 Kudos
Message 6 of 21
(2,848 Views)

I used the value in the graph spectrum which the cursor, i was able to read the x-axis value but i wan to record the x-axis value so that i can get a more accurate value to use as the filter point. But i am having trouble to extract the reading from the x-axis of the spectrum circuit. Is there any possible way to extract the reading from the cluster array to the express table function? Thanx

0 Kudos
Message 7 of 21
(2,842 Views)

You can use the Cursor.Position property node to obtain the value of the cursor. If you link the cursor to the plot rather than having it free, you get both the x and y values of the plot at the cursor position.

 

The values from the property node are a cluster of two Doubles.   You can do anything you want with them after that.  I usually avoid Express VIs, so I do not know what the table function does.

 

Lynn

0 Kudos
Message 8 of 21
(2,816 Views)

Hi lynn 
Sorry for the late reply. I was thinking that if i am able to extract all the x and y value to a spreadsheet or to a text file. 

0 Kudos
Message 9 of 21
(2,779 Views)

The Write to Spreadsheet File.vi accepts array input and writes the data to a tab-delimited text file which can be read by any spreadsheet program.  You may need to combine the X- and Y- arrays into one 2D array.

 

Lynn

0 Kudos
Message 10 of 21
(2,774 Views)