04-14-2010 02:20 PM
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...
Plotting in Excel..
Trobule With Thiss. =/!!!!
Any help I would really apreciated it..... XD
04-14-2010 03:16 PM
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.
04-14-2010 04:05 PM
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..
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.... =/
04-14-2010 05:32 PM
04-14-2010 06:35 PM
04-14-2010 10:46 PM - edited 04-14-2010 10:46 PM
04-16-2010 02:57 PM
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....
04-16-2010 11:03 PM
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.