Skip to content

the picoscope does not work #162

@Zorro9999

Description

@Zorro9999

Does not open picoscope
Good day . I'm trying to connect with an oscilloscope, for example, with this example:

"""
Shows a demo of use to use the enumerate devices feature.

By: Mark Harfouche

"""
from __future__ import division
import picoscope
import imp
picoscope = imp.reload(picoscope)
from picoscope import ps3000a
ps3000a = imp.reload(ps3000a)
import time

if __name__ == "__main__":
    
    SERIAL_NUM = 'AT635/230'
    ps = ps3000a.PS3000a(SERIAL_NUM)
    #ps = ps3000a.PS3000a( )

    allSerialNumbers = ps.enumerateUnits()

    print("Found the following device serial numbers: ")
    for serial in allSerialNumbers:
        print(serial + "\n")

    # you can open devices by serial number
    serial = allSerialNumbers[0]
    ps = ps3000a.PS3000a(serial)

    # do stuff
    ps.flashLed(10)
    time.sleep(4.0)  # the above flash takes roughly 4 seconds 
    ps.close()

And getting an error:

E:\ChipWhisperer5_64\WPy64-3740\python-3.7.4.amd64\lib\ctypes\__init__.py in create_string_buffer(init, size)
     61         buf = buftype()
     62         return buf
---> 63     raise TypeError(init)
     64 
     65 def c_buffer(init, size=None):

TypeError: AT635/230

Using SERIAL_NUM = "AT635 / 230\x00"
It produces the same error as described above.
When you try to set data in a picoscope without using a serial number, an error such as a picoscope is not detected. This has already been considered in the comments in this thread.

What could be the problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions