Logical Triggering Example

Post your LabVIEW discussions here
Post Reply
BSI
Newbie
Posts: 0
Joined: Wed May 12, 2010 3:15 pm
Location: Canada

Logical Triggering Example

Post by BSI »

Hi,
I attached an example based on the available lib from pico trying to use the Pico4000AdvancedTriggerSEttings.vi from the sdk ver r.10.1.0.17. My main objective is to get a logical trigger "A or B" working.

To test the code, I use two 0-5 V square waves, one on channel A of a pico 4227, one on channel B. I tested the signals, and both trigger fine while acquiring on either A or B (using the RapidBlock pico example for instance).
The issue seems to occur when using the Pico4000AdvancedTriggerSettings.vi . The logical condition seems to be ignored, and the scope triggers pretty much immediately, and not at all on the set conditions.

Could you verify that your LV example vi works properly as expected ? Thx.
Laurent

PS: LV 2011-32bit ; Win 7-64bit; Pico 4227, SDK r.10.1.0.17
Attachments
PicoScope4000BaseSettings.vi
(21.83 KiB) Downloaded 615 times
PicoScope4000ExampleRapidBlock_2Channels_AdvTrig_BSI_851.vi
(29.13 KiB) Downloaded 615 times

Hitesh

Re: Logical Triggering Example

Post by Hitesh »

Hi Laurent,

Apologies for the delay in providing a response. I'm currently looking into this - I have undertaken a test using the C console example and it can trigger off channel A or channel B.

I hope to provide an answer soon.

Regards,

BSI
Newbie
Posts: 0
Joined: Wed May 12, 2010 3:15 pm
Location: Canada

Re: Logical Triggering Example

Post by BSI »

Ok, thx Hitesh.
Laurent.

Hitesh

Re: Logical Triggering Example

Post by Hitesh »

I forgot to mention, the latest version of the PS4000 SDK is R10.4.1.1.

Thanks,

Hitesh

Re: Logical Triggering Example

Post by Hitesh »

Hi Laurent,

Please find attached an updated PicoScope4000AdvancedTriggerSettings.vi file. Please copy this into your PicoScope4000.llb file.
PicoScope4000AdvancedTriggerSettings.vi
Modified vi file for advanced triggering on the PS4000 series.
(54 KiB) Downloaded 657 times
The issue relates to the setup of the structures which are passed into the ps4000SetTriggerChannelConditions function. This has now been fixed so that channels that do not have a trigger state are set to 0.

It should be included in a future release of the SDK.

I have tested this here and it works - please test this on your setup and let me know if this resolves the issue for you.

Regards,

BSI
Newbie
Posts: 0
Joined: Wed May 12, 2010 3:15 pm
Location: Canada

Re: Logical Triggering Example

Post by BSI »

Thx Hitesh. I will try this soon and let you know.
L.

Post Reply