Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading the same data as a ASCII touchstone file

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.

0 Kudos
Message 1 of 2
(3,499 Views)

Hi Michael  B.

 

Have you tried reading data from the VISA Interactive Control in Measurement & Automation Explorer?  

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 2 of 2
(3,472 Views)