02-14-2011 01:33 PM - edited 02-14-2011 01:34 PM
Hi all,
I'm working with a Rohde & Schwarz ZVM Vector Network Analyzer.
Currently, our workflow involves loading up a config file, saving it to a floppy disk. Then, we copy the file off the floppy disk (which is stored as "touchstone" format) and into an excel file.
I tried writing some code (Using the Measurement Studio libraries for VB.NET) to simply read the data off the channel, but I'm running into issues with how it works. We seem to be getting twice as many values as usual.
In addition, I'm not sure if the data we're collecting is correct or not. Is it possible to simply read the data in the ASCII touchstone file to our program for further processing?
Currently we're doing something along these lines:
' Select Channel 1 mbSession.Write("INST:SEL CHANNEL1") ' Copy data from channel to memory mbSession.Write("TRAC:COPY MDATA1, CH1DATA") ' Read Data data = mbSession.Query("TRAC? MDATA1") ' Do some processing and write data to an excel file Process(data)
If I manually smooth the data by averaging every 2 values, I get something similar to what I should be getting.
But, it's still not quite right. What should I do?
Thanks for your time.
02-15-2011 03:21 PM
Hi Michael B.
Have you tried reading data from the VISA Interactive Control in Measurement & Automation Explorer?