Returning a Value - from an Interupt

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
Docara
Posts: 308
Joined: Sun Jun 23, 2013 1:29 pm
Contact:

Returning a Value - from an Interupt

Post by Docara »

Hi

I'm trying to find out if an INTerupt has been triggered (so I can reverse a motor) by returning a (boolean) value but the returned value box is greyed out when I try to create the Macro. What am I doing wrong - the help box on the windows says nothing useful?

Thanks

User avatar
LeighM
Matrix Staff
Posts: 2043
Joined: Tue Jan 17, 2012 10:07 am
Contact:

Re: Returning a Value - from an Interupt

Post by LeighM »

Hi
As an interrupt can occur anywhere in your program, a return variable would be unusable.
You need to use Global variables to transfer information between an interrupt and the main/foreground program.

Post Reply