Jump to content
  • 0

Multiple signal triggers


Paul45011

Question

I've been trying (unsuccessfully) to set up a Digital Discovery to trigger when multiple conditions are met. I've tried using the Pulse options but I can't see a way of linking multiple signals so I guess I need to use a script.

Basically, I want to detect a 960ns pulse on DIN6 and, after it has been detected, trigger if any of four signals (DIN 1, 2, 4 or 5) fails to transition high to low within +/- 30ms.

Could someone point me to a sample script that I can use as a starting point to do this?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @Paul45011

Such trigger sequencing is not supported but it could be done with software validation.

With a setup and Script like this:

image.png.1777372737affcfeded6e7438ff684c7.png

image.thumb.png.3f80f1c0f7a24bea64692c8f6fab5867.png

Logic.run();
while(Logic.wait()){// exit on Stop
    var data = Logic.Channels.Bus.data;
    if(data[data.length-1] != 0){ // last sample not zero
        print("last Bus sample not zero");
        break;
    }
}

  

or with conditional export:

image.thumb.png.332f9e9c34d740373c72ee368c8caf0a.png

if(Index > Maximum) return;

var data = Logic.Channels.Bus.data;
if(data[data.length-1] == 0) return; // do not save

Logic.Export("~/Desktop/logic/acq"+Index+".png");
Logic.Export("~/Desktop/logic/acq"+Index+".csv", "Raw Data");
Index++;

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...