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
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.
Modified vi file for advanced triggering on the PS4000 series.
(54 KiB) Downloaded 672 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.