Code Monkey home page Code Monkey logo

nanonistcp's People

Contributors

benlowe1 avatar ceds92 avatar jhellerstedt avatar liamjwatson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nanonistcp's Issues

nanonisTCP - add oscilloscope module?

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.

ScanTest nanonisTCP.hex_to_float32 invalid literal

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'

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.