OSError: exception: access violation reading 0x00000142C7D01640 when using bulk mode with downsampling enabled

Post general discussions on using our drivers to write your own software here
Post Reply
andreasjung
Newbie
Posts: 0
Joined: Thu Aug 03, 2023 5:57 am

OSError: exception: access violation reading 0x00000142C7D01640 when using bulk mode with downsampling enabled

Post by andreasjung »

I have this Python code (latest picosdk, Python 3.11, Picoscope 5444A) for reading data in bulk mode.
This code works:

Code: Select all

        self._device_status["GetValuesBulk"] = ps.ps5000aGetValuesBulk(
            self._device_handle,
            ctypes.byref(c_maxSamples),
            0,
            (self._number_of_captures - 1),
            0,
            0,
            ctypes.byref(overflow),
        )
I tried to play with the downsampling functionality (AVERAGE) by changing the code to:

Code: Select all

        self._device_status["GetValuesBulk"] = ps.ps5000aGetValuesBulk(
            self._device_handle,
            ctypes.byref(c_maxSamples),
            0,
            (self._number_of_captures - 1),
            1, # Downsampling RADIO
            4, # AVERAGE
            ctypes.byref(overflow),
        )
This gives me an error

Code: Select all

OSError: exception: access violation reading 0x00000142C7D01640
What could be the problem?

Martyn
Site Admin
Site Admin
Posts: 4501
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: OSError: exception: access violation reading 0x00000142C7D01640 when using bulk mode with downsampling enabled

Post by Martyn »

Have you added average ratio mode memory buffers using ps.ps5000aSetDataBuffers or ps.ps5000aSetDataBuffer
Martyn
Technical Support Manager

Post Reply