I can set a trigger point, but it will always be at the 0 sample count.
How can I set the trigger point to be at sample 100 for example, so that I have a few samples before the trigger ( I need to have some samples before the trigger).
The code I am using to set the trigger up:
- Code: Select all
status = ps5000aSetSimpleTrigger(unit.handle, 1, PS5000A_CHANNEL_B, SHRT_MAX/2, PS5000A_RISING, 0, 0);
SHRT_MAX is coming from limits.h, and is the same as 0x7FFF
Any help would be appreciated, I have not been able to figure out which function comes even close to what I want. I know it exists, since I can set the trigger point freely in the sample program.