Skip to main content

Python package for controlling Nanonis Tramea software through python

Project description

Python Interface Package for Nanonis

Official python package for the Nanonis TRAMEA Controller software.

Usage

This package allows users of the Nanonis TRAMEA Controller software to use and control said software through python commands.

How to use

Importing

import nanonis_tramea

Initializing Connection through the socket module

import socket

connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

connection.connect((IP_ADRESS_HERE, PORT_HERE))

nanonisInstance = nanonis_spm.Nanonis(connection)

NOTE : THE PORT HAS TO BE AN INTEGER AND THE IP ADRESS A STRING

Enabling Debug Console Output

The function "returnDebugInfo()" takes an integer as an argument. This integer should be either 1 = on, or 0 = off. This option is off by default.

Enable by running: nanonisInstance.returnDebugInfo(1)

Examples

There is a collection of examples installed with the package.

The description of all the available functions can be found in the TCP Protocol Document, and hovering on the function depending on the used IDE.

IMPORTANT: The TCP Interface requires every argument to be of certain size (see documentation). This is why the Numpy dependency is required, since it enables the specification of variable sizes.

Change Log

1.0.6

Fixed the programmatic control of the Oscilloscope High Resolution graph, where some functions now include an input for channel selection to support the 4-channel version of this graph.

1.0.5

Fixed some missing variable names in the function declaration of some MCVA functions. Removed a check in the ParseError function which set a different error string offset for functions returning exactly 8 bytes.

1.0.4

Fixed the indentation of two Script functions (Script.Open and Script.LUTOpen) which triggered an error when trying to use the class. Changed the behavior of the returnDebugInfo function so that nothing is printed out if there is no error.

1.0.3

Added the function Util.VersionGet to get the software version, the MCVA5 preamplifier functions, and the V5e Generic PI Controller functions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanonis_tramea-1.0.6.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nanonis_tramea-1.0.6-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file nanonis_tramea-1.0.6.tar.gz.

File metadata

  • Download URL: nanonis_tramea-1.0.6.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.1

File hashes

Hashes for nanonis_tramea-1.0.6.tar.gz
Algorithm Hash digest
SHA256 e7f67e7ff3f4b586fac5ac832e10596e0f1b00b0e5fb430f09b91c0b0bf3c7df
MD5 102daa91510164a7d4c9929b648c9f2d
BLAKE2b-256 2704e372d61b9500235d0c161acbcae4ece75b679a5464bb08fc022b43add616

See more details on using hashes here.

File details

Details for the file nanonis_tramea-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: nanonis_tramea-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.1

File hashes

Hashes for nanonis_tramea-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ceb00b3209da7ad3f5c80ae93baf0ac2c7a448f362fc2714224920b1bedf3141
MD5 afb43b8d875d85ca01e15d07c88c905a
BLAKE2b-256 f7c2655631be6955324198d2d115b0f7ac5d23f18bdb336ccc4c818755c08617

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page