python module for communicating via nanonis TCP protocal
Project description
nanonisTCP
Python module for communicating to nanonis via TCP. I am actively developing this so if you have any requests or find any bugs, feel free to raise an issue.
Installing
Install with pip:
pip install nanonisTCP
Installing from source:
Clone the repository, navigate to the root directory and run pip install .
Using
The following code demonstrates how to change tip bias.
from nanonisTCP import nanonisTCP
from nanonisTCP.Bias import Bias
TCP_IP = '127.0.0.1' # Local host
TCP_PORT= 6501 # Check available ports in NANONIS > File > Settings Options > TCP Programming Interface
NTCP = nanonisTCP(TCP_IP, TCP_PORT, version=13520) # This is how you establish a TCP connection. NTCP is the connection handle.
# Check your nanonis version in Nanonis > help > info and enter the RT Engine number
bias = Bias(NTCP) # Nanonis Bias Module - Pass in the connection handle
bias.Set(1.1) # Set bias to 1.1 V
v = bias.Get() # Get the current bias
print("Bias: " + str(v) + " V") # Confirm bias has been set
NTCP.close_connection() # Close the connection.
See any of the xxxTest.py scripts to see how each module can be implemented in more detail.
Testing
After installing, you can test any of the modules using the sctipts in the test folder. To test all of the modules, run test.py Note that Nanonis must be open for the tests to pass.
Citing
If you use nanonisTCP, please consider citing it: 10.5281/zenodo.7402664
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
Built Distribution
File details
Details for the file nanonistcp-1.1.2.tar.gz
.
File metadata
- Download URL: nanonistcp-1.1.2.tar.gz
- Upload date:
- Size: 46.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89e468253040d53d051348ae0ab5828b7afeb74c19098e9392512cfa37e7ae16 |
|
MD5 | 9c1fd94537506c65f274421c5f70842a |
|
BLAKE2b-256 | c8461eab35e31e771af087422c9b97074b2c6d3ab594e03686e51710bcaeec8f |
File details
Details for the file nanonisTCP-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: nanonisTCP-1.1.2-py3-none-any.whl
- Upload date:
- Size: 62.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fd77ea4bad61010a997d2496bdcb8a6b0631e9809c694b9c06a55cc1ce2a723 |
|
MD5 | 6acdc315a99d327c978554e43766cdcf |
|
BLAKE2b-256 | 080001259fc8cabb0b6861e5f4b7cc77319239fdbd25821224bcd82f287cbfa4 |