How to set AUX Rising Edge Trigger on 6425E?

Post general discussions on using our drivers to write your own software here
Post Reply
eladsim
Newbie
Posts: 0
Joined: Thu Jan 19, 2023 4:23 pm

How to set AUX Rising Edge Trigger on 6425E?

Post by eladsim »

Hello,

I am using the ps6000a SDK with the 6425E scope and cannot figure out how to set a simple trigger using the AUX channel as a source to trigger on the rising edge of a square signal. We need channels A through D for data collection. This seems to work in PicoScope 6 so it should work in the API functions.

Here are the steps I took:

0. Before each attempt I opened the scope with 10-bits resolution and activated channels A through D.

1. I first tried ps6000aSetSimpleTrigger() but then realized this function cannot be called with PICO_TRIGGER_AUX for the source argument.

2. I then decided to a try setting an advanced trigger by calling ps6000aSetTriggerChannelConditions() with the action set to PICO_CLEAR_ALL and using following PICO_CONDITION Struct:

PICO_CONDITION_struct.source = PICO_TRIGGER_AUX
PICO_CONDITION_struct.condition = PICO_CONDITION_TRUE

This returns PICO_OK when called.

3. I then called ps6000aSetTriggerChannelDirections() with the following PICO_DIRECTION struct:

PICO_DIRECTION_struct.channel = PICO_TRIGGER_AUX
PICO_DIRECTION_struct.direction = PICO_RISING
PICO_DIRECTION_struct.thresholdMode = PICO_LEVEL

This return status code is 0x00000010 which is PICO_INVALID_CHANNEL.

I can't seem to get past this status code no matter which combinations of inputs I use. I even tried setting the trigger source on channel A and still get the same error.

I have some looming deadlines to meet so any help as soon as possible would be appreciated.

Thank You.

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

Re: How to set AUX Rising Edge Trigger on 6425E?

Post by Martyn »

There is a C# example for Aux Trigger on our GitHub repository

https://github.com/picotech/picosdk-c-s ... er/ps6000a

have you checked this out?
Martyn
Technical Support Manager

eladsim
Newbie
Posts: 0
Joined: Thu Jan 19, 2023 4:23 pm

Re: How to set AUX Rising Edge Trigger on 6425E?

Post by eladsim »

Hello,

Yes, I just gave it a try and I still get the same status codes and errors.

Post Reply