
Menu navigation
I'm coming back to using IQAN Design after a long period of no exposure to it. Currently I'm trying to implement a menu navigation system using external buttons (digital inputs).
The menus can be thought of as being in a circle - as the 'right' button is pressed the screens navigate around the circle to the 'right', wrapping around from the 'last' screen back to the first in the circle - same when going left. I implemented this a long time ago on another project but for the life of me I can't remember how I did it.
I've tried using Event Counters, and Integer math, but I can't get the logic to wrap bi-directionally. The Integer function isn't retaining the counter values, and the Event Counters can only reset in one direction, if that makes sense. I know this should be easy, but my lack of recent experience isn't helping! Can someone suggest a way of implementing this?
NB - I usually use QCode
Customer support service by UserEcho
Does a Finite State Machine Channel [FSM] make sense ? Can be made bi-directional by Transition logic
Thank you for the suggestion. The thought had occurred to me - but I haven't implemented one before. I'll do some reading on them.
test
maybe this will help
Sorry it took so long for me to get back to this! Yes - this is the behavior I'm going for. Thank you for the working example!.
Hi - I'm trying to extend the functionality of the test program above. This seems like it should be trivial but I can't figure out how the states were added to the 'New Math' channel: 'Default State A:1', 'New State A: 4'. I can't find anything in the manual on it.
you can add them at the state funktion... it wont bring anything as its only used to create a reset value for the counter.