I used E5063A .The .sta file contains the trace info and memory info. I have one special request to modify the memory info in .sta file. But I don't know how to parse the .sta file . Does anyone have the decode method to parse .sta file?
the VNA state files are in a proprietary binary format and are not meant to be parsed outside of the VNA firmware. you can however recall the state file on your ENA and assuming that the ENA was in hold mode when you saved the state file, both the data and memory traces should be recreated when you recall the state. once recalled, you can either use the remote API to pull the trace and memory data from the channel into your program or use the save data in a Touchstone (SnP) or a csv file. you may have to do it once with the trace data turned on and then another time with the trace data turned off to get the memory data.
My experience is mostly with our PNA network analyzers, so I can't tell you the exact steps on the E5063A ENA, but they have similar capabilities, so with the help of the user manual, you should be able to figure out the steps.
I can use s2p or csv file to save the current trace data. When I load one new .sta file, I want to load previous s2p or csv data to memory data. I tried to load S2P in ENA it will generate channel 200(max) and display the trace saved in the s2p. The channel defined in .sta file is channel 1. I want to load the data to channel 1's memory. I don't know how to move trace in the s2p to channel 1's memory. Do all channels sharing the same memory data? The user manual don't mention much about the memory data.
You won't be able to move the data from traces in channel 200 to the memory traces in channel 1 from the front panel, but you could do it programmatically as long as the frequency range and the number of points in the two channels match. you would have to recall the s2p file, and with your program read the complex data from each trace recalled by the s2p file. then you would recall the .sta file and have your program upload the data you read from the channel 200 into the corresponding memory buffers in channel 1. Here is a link to the section of ENA online help that reading and writing data programmatically.
Thanks for your tips . I will try it soon.
Retrieving data ...