Hi all,
What we have now is the 89611 VSA+E443A PSA with software ver 7.1.
I have been able to use the examples in help file in Macro function to
make the VSA sweep and save data automatically.
"
Sub Main
Dim filename,index
index = 1
filename = “C:\Temp\test†+ Cstr(index) + “.matâ€
Do
Measurement.Start
Measurement.WaitForMeasDone
Display.Traces.ActiveTrace.SaveFile filename, “matâ€, True
Filename = “C:\Temp\test†+ Cstr(index) + “.matâ€
Index = index + 1
Loop Until index > 101
End Sub
"
This will do the sweep and save the trace of data into a matlab file format.
However, my question is can I select a certain points from the trace
and then only save those points into the file to save a huge storage
space?
I have done it with other spectrum analyzer using GPIB. Basically,
after each sweep, search for the maximum using marker, and then
store the value at the marker. However, I haven't seen any related
example in VSA doing that. Does anyone know if this is possible in
VSA or not?
Any suggestions will be much appreciated! Thank you all.
What we have now is the 89611 VSA+E443A PSA with software ver 7.1.
I have been able to use the examples in help file in Macro function to
make the VSA sweep and save data automatically.
"
Sub Main
Dim filename,index
index = 1
filename = “C:\Temp\test†+ Cstr(index) + “.matâ€
Do
Measurement.Start
Measurement.WaitForMeasDone
Display.Traces.ActiveTrace.SaveFile filename, “matâ€, True
Filename = “C:\Temp\test†+ Cstr(index) + “.matâ€
Index = index + 1
Loop Until index > 101
End Sub
"
This will do the sweep and save the trace of data into a matlab file format.
However, my question is can I select a certain points from the trace
and then only save those points into the file to save a huge storage
space?
I have done it with other spectrum analyzer using GPIB. Basically,
after each sweep, search for the maximum using marker, and then
store the value at the marker. However, I haven't seen any related
example in VSA doing that. Does anyone know if this is possible in
VSA or not?
Any suggestions will be much appreciated! Thank you all.
Display.Traces.Item(2).Marker.MoveTo(vsaMkrMovePeak);
Should move the marker to the peak of trace 2, and then
MarkerYValue = Display.Traces.Item(2).Marker.Y;
Should read back the amplitude. There are a lot of marker things you can do - look at the 89600 COM API help file marker section for more.
Hope that helps,
Steve