Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Adquiring Data from Spectrum Analayzer Trouble

Hi guys, I`m currently working on my assigment of school which consists in Adquire Data from an Spectrum Analyzer (aligent), I`ve already done(with the help of some tutorials and forum posts) the interface of this instrument... now the problem is how to manage to retrieve two kinds of data....

 

The only thing that I manage to do was adquire Y data,(amplitude data) and plot it on excel, but now the trouble is to adquire de X data, because the program I use to seem to use a "Cluster of 3 element" wire(Inital X, Increments of X, Y data) and I cant manage to get anything from(x data, frecquency scale)...sas that i cant mix different kind of data and i`ve used also the data converter to dynamic data and didn`t work...could somebody recomend me a block that I miss in order to get X data as a vector and plot it on excel. TNX GUYS!!!

 

Block Diagram of the interface... 

 

 esa.JPG

 

 

Plotting in Excel.. 

 

 plot xcel.JPG

 

 

Trobule With Thiss. =/!!!! 

 

 

trouble.JPG 

 

 

Any help I would really apreciated it..... XD 

0 Kudos
Message 1 of 8
(3,969 Views)

You just need to write the individual elements to a Build Waveform function. x0 is written to t0, dx to dt, and Y to Y.

 

p.s. You posted to the wrong board. Things like this belong to instrument control and not DAQ.

0 Kudos
Message 2 of 8
(3,963 Views)

Hi... srry man.. about the wrong board... I`ve already done what you told me about writting each element in the build waveform.. but I`m getting trouble with the t0, says that dosent match to the type.. look.. 

 

 

huh.JPG

 

 

And I was wondering after doing that I just put a block to write to a mesasurement file... or what would be missing????   in order to get the frecuency scale also in the data I adquire.... =/

0 Kudos
Message 3 of 8
(3,959 Views)
sorry, forgot to tell you that you need to insert a 'To Time Stamp' function (Numeric>Conversion palette) or just skip wiring this. The x0 will probably not translate into a correct timestamp anyway. I typically do not use the Write to Measurement File for this sort of operation because I don't think it correctly handles the relative time information that you have.
0 Kudos
Message 4 of 8
(3,952 Views)
tnx..dennise now its all wired up... but yes it dosent make reference to start frecuency.. but know is that how to get the frecuency scale data, do you suggest any other block of writting the data and get the frecuency values??? tnx... any other suggestion of aquiring data ??? in this scheme...  Smiley Wink
0 Kudos
Message 5 of 8
(3,946 Views)
I generally use Write to Spreadsheet File for the data. You could use it for the header or just use a Write To Text File.
Message Edited by Dennis Knutson on 04-14-2010 09:46 PM
0 Kudos
Message 6 of 8
(3,940 Views)

Srry Dude..But I Didn`t quite get it.. look..actually im only adquiring Y data.... and I did managed to save it to excel but that is not the problem.. the problem is that i cant adquire de X data(the frecuency vector) .... because the wires don`t match the block of write to file.... How can I handle this wires in order to get the data from them (that would be... Xo as the start frecuency and the dx as the increments of the sweep)... The purpose of this assigment is to recreate the signal that appears in the vi with X and Y data.... in excel with the same scales... Tnx Dude.... 

0 Kudos
Message 7 of 8
(3,905 Views)

The x data is the two scalars x0 and dx. You can write these as header or create an x array yourself.

 

Hint: to create an x array, think for loop with a shift register and an add function.

0 Kudos
Message 8 of 8
(3,890 Views)