Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5666

Capturing .csv files from a R&S Spectrum Analyzer

$
0
0

Hi,

 

I am working on a project in WPF C# to save the trace of a spectrum analyzer to a .csv file on a PC for post processing.  When I call the SaveTrace() method nothing seems to happen.

 

using NationalInstruments.Visa;

namespace dcre {
    public partial class MainWindow : Window {
        private MessageBasedSession mbSession;
        ResourceManager rm = new ResourceManager();
        string resString = "TCPIP::169.254.173.194::INSTR";
        mBsession = (MessageBasedSession)rm.Open(resString);

        private void SaveTrace(){
            mBsession.RawIO.Write(@"MMEM:STOR:TRAC 1,'Trace.csv'");
            mBsession.RawIO.Write(@"MMEM:DATA? 'Trace.csv'");
        }
    }
}

Viewing all articles
Browse latest Browse all 5666

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>