I am Amit, a student from IIT Madras. I am using Picoscope 4824. I want to use 5 channels of the picoscope namely A, B, C, D and E. I have modified the ps4000aStreamingExample.py code accordingly and have attached the code to this thread. It is showing me an error in the line
Code: Select all
status["runStreaming"] = ps.ps4000aRunStreaming(chandle,
ctypes.byref(sampleInterval),
sampleUnits,
maxPreTriggerSamples,
totalSamples,
autoStopOn,
downsampleRatio,
ps.PS4000A_RATIO_MODE['PS4000A_RATIO_MODE_NONE'],
sizeOfOneBuffer)
assert_pico_ok(status["runStreaming"])
Code: Select all
---------------------------------------------------------------------------
ArgumentError Traceback (most recent call last)
in
229 # No downsampling:
230 downsampleRatio = 1
--> 231 status["runStreaming"] = ps.ps4000aRunStreaming(chandle,
232 ctypes.byref(sampleInterval),
233 sampleUnits,
ArgumentError: argument 5: : wrong type