Test and Measurement Forum

Logical Triggering Example

Post your LabVIEW discussions here

Logical Triggering Example

Postby BSI » Tue Mar 20, 2012 3:28 am

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 146 times
PicoScope4000ExampleRapidBlock_2Channels_AdvTrig_BSI_851.vi
(29.13 KiB) Downloaded 138 times
BSI
Newbie
 
Posts: 0
Joined: Wed May 12, 2010 3:15 pm
Location: Canada

Re: Logical Triggering Example

Postby Hitesh » Tue Mar 27, 2012 2:29 pm

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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Logical Triggering Example

Postby BSI » Tue Mar 27, 2012 6:37 pm

Ok, thx Hitesh.
Laurent.
BSI
Newbie
 
Posts: 0
Joined: Wed May 12, 2010 3:15 pm
Location: Canada

Re: Logical Triggering Example

Postby Hitesh » Wed Mar 28, 2012 10:33 am

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

Thanks,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Logical Triggering Example

Postby Hitesh » Thu Mar 29, 2012 10:25 am

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 131 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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Logical Triggering Example

Postby BSI » Thu Mar 29, 2012 3:36 pm

Thx Hitesh. I will try this soon and let you know.
L.
BSI
Newbie
 
Posts: 0
Joined: Wed May 12, 2010 3:15 pm
Location: Canada


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 0 guests