LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

asynchronous wakeup

Regarding Timed Loops and Timed Sequences...

 

One of the "Wakeup Reasons" is "Asynchronous Wakeup"

 

What generates an "Asynchronous Wakeup"?  Is there something I can do programmatically to 'wakeup' the structure before it is triggered?

 

 

 

In my particular instance, I am using an absolute time reference for t0, to start the structure at a particular timestamp value.

I already have an option for "Abort". If something goes wrong, I use 'Stop Timed Structure.vi' to kill the structure and not execute the internal code.

What I would like is the option to trigger the sequence before t0 and have it behave normally, i.e., NOT bypass the internal code.

 

 

So let's use this as an example.

Every hour, on the hour, the structure triggers and performs an action.

An operator must to be able to trigger that behaviour at will.

If there is an application error, that structure aborts immediately (no waiting until that hour is up) and doesn't perform any action.

 

 

I know there are many ways to skin this cat, but there's a particular reason I want to use this mechanism. I don't need alternate suggestions on how to do it.

If I can trigger "Asynchronous Wakeup", golden!

If not, I have other things in mind.

0 Kudos
Message 1 of 4
(2,553 Views)

Hi FTI Newton,

 

As far as I'm aware, there's no way to programmatically trigger a wakeup of the loop.  In fact, from the documentation, I'm not aware of that wakeup reason being used for anything.  I'll try to look into this a little further, but you might want to look int other options.

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(2,528 Views)

Thank you - your efforts are appreciated! (This isnt' the first time I've pestered you 😉 )

 

Whether the answer is no or not, it's surely better than not knowing!

0 Kudos
Message 3 of 4
(2,519 Views)

Here's one rather easy way you could accomplish this:

 

Instead of executing the code inside the Timed Loop with the absolute timing source, have a second Timed Loop where the code will execute. Use a Software Triggered Timing Source to tick this second loop. Then you can tick this loop from multiple places. You can tick it from the absolute timing source loop, which will solve your periodic timing requirement, and you can tick it from something controlled manually by your operator.

Jarrod S.
National Instruments
0 Kudos
Message 4 of 4
(2,481 Views)