Test and Measurement Forum

PicoScope 4824 Advanced Trigger

Post your LabVIEW discussions here

PicoScope 4824 Advanced Trigger

Postby MikeNuke » Fri May 30, 2014 8:41 am

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

Postby MikeNuke » Fri May 30, 2014 9:53 am

Sorry, here is the VI :)
Attachments
Advanced Trigger.vi
(18.61 KiB) Downloaded 86 times
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

Postby Karunen » Mon Jun 02, 2014 11:24 am

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
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: PicoScope 4824 Advanced Trigger

Postby MikeNuke » Wed Jun 04, 2014 7:37 am

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
MikeNuke
Newbie
 
Posts: 0
Joined: Thu Oct 31, 2013 1:49 pm


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 0 guests