element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Forum How to transfer data from a Keysight Spectrum analyser N9020B to my local control PC
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Subscribers 352 subscribers
  • Views 4882 views
  • Users 0 members are here
  • python
  • analyzer
  • instruments
  • spectrum analyser
  • file transfer
Related

How to transfer data from a Keysight Spectrum analyser N9020B to my local control PC

Matteogala
Matteogala over 1 year ago

Hello All,

I am fairly new to using, yet alone automating test equipment. Although I am trying to use the latter to automate a standard tests we do when releasing new software that produces RF frequencies.

I created a python script to connect to the spectrum analyser and I can set it up correctly for the tests I need to do through SCPI commands.

I also save the data as screenshots through the command " :MMEM:STOR:SCR <filename.png>"

I now want to transfer these screenshots to my local PC and I am struggling to understand which command to use. I have attempted to use the :MMEM:COPY:DEV  command although it fails.

This seems to be as I am only connected to the Spectrum analyser through port 5025 (SCPI port) and this does not allow file transfer? How would I then use the above command to achieve what I want?

Does anyone have more experience with this test equipment and could give me some hints where to look?

Thank you in advance for your responses!

(Spectrum Analyser I am using is a N9020B)

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 1 year ago +2
    Hi, I don't have that instrument. However, it's described on page 179 of the PDF user manual . Regardless of physical connection method (Ethernet, USB. etc) you can use a unified method called VISA.…
  • baldengineer
    baldengineer over 1 year ago +1 verified
    It looks like the :MMEM:COPY:DEV command copies files local to the instrument. For example, it would be used to copy files from its internal storage to a USB drive. It is not for transferring files via…
  • shabaz
    shabaz over 1 year ago in reply to baldengineer +1
    Hi James, It's badly formatted in the user manual, but it's here (page 179 onward): @ OP: In a nutshell, the command varies (greatly) from instrument to instrument, and so you'd need to get close…
Parents
  • shabaz
    0 shabaz over 1 year ago

    Hi,

    I don't have that instrument. However, it's described on page 179 of the PDF user manual. Regardless of physical connection method (Ethernet, USB. etc) you can use a unified method called VISA. It eliminates messing about with TCP or UDP sockets, which is really not the way to work. For instance, if you're using Python then the library would be pyvisa. You could also use LabVIEW (either the graphical method, which is popular with automating tests, or using LabWindows/CVI if you're good at C programming. You could also consider MATLAB (it's a bit of an acquired taste), it has an Instrument Control Toolbox, and you can download the driver for your instrument from the Keysight website.

    It's highly recommended not to connect anything at the front end of that equipment unless you're really sure what you're doing (i.e. get someone experienced to set that up for you, or at least for them to specify what you should be connecting there) because it's easy to damage spectrum analyzer inputs, and that equipment is pricey.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 1 year ago

    Hi,

    I don't have that instrument. However, it's described on page 179 of the PDF user manual. Regardless of physical connection method (Ethernet, USB. etc) you can use a unified method called VISA. It eliminates messing about with TCP or UDP sockets, which is really not the way to work. For instance, if you're using Python then the library would be pyvisa. You could also use LabVIEW (either the graphical method, which is popular with automating tests, or using LabWindows/CVI if you're good at C programming. You could also consider MATLAB (it's a bit of an acquired taste), it has an Instrument Control Toolbox, and you can download the driver for your instrument from the Keysight website.

    It's highly recommended not to connect anything at the front end of that equipment unless you're really sure what you're doing (i.e. get someone experienced to set that up for you, or at least for them to specify what you should be connecting there) because it's easy to damage spectrum analyzer inputs, and that equipment is pricey.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube