Giter Club home page Giter Club logo

anritsuspectrumanalyzer's Introduction

anritsuSpectrumAnalyzer

Scripts for talking to Anritsu MS2721A over ethernet with pyVisa and vxi11

  1. Connect your spectrum analyzer to a local area network (LAN) and use ifconfig (or ipconfig on Windows) to find your LAN DNS, subnet mask, and gateway.
  2. Setup the Anritsu MS2721A with a static IP address by going through Shift->System->Ethernet Config->Manual IP

e.g. IP 169.254.24.65 Gateway 0.0.0.0 Subnet 255.255.0.0

  1. Install the linux device drivers from NI to use the VISA device drivers for a TCP/IP connection. Install pyVisa as well

  2. Setup a new VISA resource by running visaconf on the command line and adding a new resouce with the following options: a. Some useful alias name (e.g. Anritsu_MS2721A) b. Your static ip address that you entered on the spectrum analyzer (e.g. 169.254.24.65) c. Check VXI-11 Protocol

  3. Test you connection in the ipython interactive shell:

[radio@toucan anritsu_sa]$ ipython Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56) Type 'copyright', 'credits' or 'license' for more information IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import visa

In [2]: rm = visa.ResourceManager()

In [3]: print(rm.list_resources()) ('GPIB0::23::INSTR', 'ASRL1::INSTR', 'ASRL2::INSTR', 'ASRL3::INSTR', 'ASRL4::INSTR', 'TCPIP0::169.254.24.65::INSTR')

In [4]: devname = "TCPIP0::169.254.24.65::INSTR"

In [5]: sa = rm.get_instrument(devname)

In [6]: test = sa.write("*IDN?\n")

In [7]: test = sa.read()

In [8]: print(test) "Anritsu,MS2721A/25/27,551039,1.71"

anritsuspectrumanalyzer's People

Contributors

swissel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.