'PICO_INVALID_PARAMETER' on ps3000a trigger direction setup

Having problems ? let us know the details here
Post Reply
herobrine11892
User
User
Posts: 2
Joined: Fri Jun 25, 2021 5:49 am

'PICO_INVALID_PARAMETER' on ps3000a trigger direction setup

Post by herobrine11892 »

I've been trying to setup some complex triggers on a 3000 series picoscope using picosdk.ps3000a on python but whenever I try to setup the trigger direction I get 'PICO_INVALID_PARAMETER'. This is my code,

trig_directions = list(map(ctypes.c_int32, trig_directions)) #Convert arguments to ctypes.c_int32
status["setTriggerChannelDirections"] = ps.ps3000aSetTriggerChannelDirections(chandle, trig_directions[0],
trig_directions[1], trig_directions[2], trig_directions[3], trig_directions[4], trig_directions[5])
assert_pico_ok(status["setTriggerChannelDirections"])

where trig_directions is initally just a list of 6 python integers (they correspond to the options given in the programmers guide, in my example I use trig_directions = [0, 0, 0, 0, 0, 0] to set it as 'Above' on a 'Level' trigger)

I've tried the same code using ps2000aSetTriggerChannelDirections on a 2000 series picoscope (since their threshold direction setups on complex triggers appear the same) and it worked fine there

What is going on here? Has anyone else had this problem before?

Post Reply