PicoScope 4824 Advanced Trigger

Post your LabVIEW discussions here
Post Reply
MikeNuke
Newbie
Posts: 0
Joined: Thu Oct 31, 2013 1:49 pm

PicoScope 4824 Advanced Trigger

Post by MikeNuke »

Hi!
I am building a labview software for a 4824 device, and I am trying to use the functions for advanced triggering.
There isn't an example about this api functions in the SDK, so I built it myself looking in the manual.
Unfortunately, the pico works and gives no error, but it's not triggering, as if no trigger was set.

I am attaching the VI containing the functions.
Do you know if I did something wrong?

Thanks!
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division

MikeNuke
Newbie
Posts: 0
Joined: Thu Oct 31, 2013 1:49 pm

Re: PicoScope 4824 Advanced Trigger

Post by MikeNuke »

Sorry, here is the VI :)
Attachments
Advanced Trigger.vi
(18.61 KiB) Downloaded 755 times
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division

Karunen
Advanced User
Advanced User
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: PicoScope 4824 Advanced Trigger

Post by Karunen »

Hi Mike,

If you look at the programmer's guide
http://www.picotech.com/document/pdf/ps4000apg-en-1.pdf

on page 77 when using ps4000aSetTriggerChannelConditions(handle, *conditions, nConditions,info)

When setting info as 1 you are only calling PS4000A_CLEAR which will remove all previous trigger conditions.
You need to use PS4000A_ADD ( = 2) to add a trigger condition.

Please note if you want to clear all previous trigger conditions and add a trigger condition you will need to set info as 3 (PS4000A_CLEAR |PS4000A_ADD).

Thanks.
Karunen

Technical Specialist
Pico Technology

MikeNuke
Newbie
Posts: 0
Joined: Thu Oct 31, 2013 1:49 pm

Re: PicoScope 4824 Advanced Trigger

Post by MikeNuke »

Hi!
I was assuming that "clear" was 0 and "add" was 1, I forgot to check in the ps4000aApi.h file for the correct values.
Thank you!
MikeNuke
Politecnico di Milano
Department of Energy, Nuclear Engineering Division

Post Reply