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
Returning a Value - from an Interupt
Moderator: Benj
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Returning a Value - from an Interupt
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.
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.