new-horizons-spm / nanonistcp Goto Github PK
View Code? Open in Web Editor NEWpython module for communicating via nanonis TCP protocal
License: MIT License
python module for communicating via nanonis TCP protocal
License: MIT License
I have found your code for controlling Nanonis quite helpful. I wonder if you can add code that controls the oscilloscope 2-channel module (starting on page 212 of Nanonis TCP manual). I have an external lock-in that plugs into one of the analog inputs of the Nanonis. After talking with SPECS, they say that the fastest way to grab data from this external lock-in is to use the oscilloscope. It would be very helpful for me if you could add this module to your library.
ValueError Traceback (most recent call last)
Input In [25], in <cell line: 1>()
----> 1 ScanTest.run_test(TCP_IP='130.194.163.48', TCP_PORT=6501)
File ~/Documents/GitHub/nanonisTCP/nanonisTCP/ScanTest.py:96, in run_test(TCP_IP, TCP_PORT)
91 print("----------------------------------------------------------------------")
93 """
94 FrameDataGrab
95 """
---> 96 channel_name,scan_data,scan_direction = scan.FrameDataGrab(14, 1)
97 print("Frame Data")
98 print("Channel name: " + channel_name)
File ~/Documents/GitHub/nanonisTCP/nanonisTCP/Scan.py:455, in Scan.FrameDataGrab(self, channel_index, data_direction)
453 for j in range(scan_data_columns):
454 idx += 4
--> 455 scan_data[i,j] = self.NanonisTCP.hex_to_float32(response[idx:idx+4])
457 idx += 4
458 scan_direction = self.NanonisTCP.hex_to_int32(response[idx:idx+4])
File ~/Documents/GitHub/nanonisTCP/nanonisTCP/nanonisTCP.py:68, in nanonisTCP.hex_to_float32(self, h32)
66 def hex_to_float32(self,h32):
67 # see https://forum.inductiveautomation.com/t/ieee-754-standard-converting-64-bit-hex-to-decimal/9324/3
---> 68 return struct.unpack("<f", struct.pack("I",int("0x"+h32.hex(), 16)))[0]
ValueError: invalid literal for int() with base 16: '0x'
Complete the LockIn Module
Complete the TCP interface for nanonis BiasSpectroscopy module
NanonisTCP interface signals module
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.