+4
Completed
Passive State Machine - New channel type request
Nick Pridham 10 years ago
in IQANdesign
•
updated by Ulrik Zakariasson (Software development) 9 years ago •
11
I would like to have a SMC channel but without automatic priority ordering. This means jump conditions can trigger, the state machine changes state and then remains in that state until jump conditions relating to that state trigger.
Need a store value for this function too.
Need a store value for this function too.
Customer support service by UserEcho
Would that mean I could change states via a state parameter drop-down button from the MD4 display or pressing a button on my remote as a CAN message from my reciever that activates an event counter to change the state?
Because if so, I want that.
If not, I still want that ability, but was trying to avoid making a double posting.
What you are describing can be done with the existing state parameter channel, SP. As you describe, a state parameter can be connected to a state picker control (via an adjust item).
It is also possible to control a state parameter with an event counter, just connect it to the state parameter's Input channel property.
So the button I setup with the event counter in the remote didn't change the state any longer.
I am using 3.15 though.
errr... maybe I was using an SMC. Will check.
So it is not urgent for me.
For the control of a state via both drop down (state picker) and buttons for next/previous, try the attached file:
state picker and next-previous.ids3
The trick here is to make use of the MEM channel value type, by connecting a State Parameter as the input to the MEM, the MEM get value type State. The MEM can now be adjusted via the state picker.
You can now also use the Activating function in the MEM to replace its valve with the value from the State Parameter, this value comes directly from the ECNT. This way the MEM value will be modified by the buttons for next/previous.
The final part is that the ECNT is reset if there is a change in the MEM when there is no button input. This way you know there state was changed using the state picker. The reset value for the ECNT is the new state number.
You have spared me a lot of thinking with this tip.
I use a LC6 joystick as state picker, and in same time i will use bottom on the screen as alternative.
Perfect !
BR,
Nick.
Apologies Nick, I misunderstood your first post.
I will excuse myself from your thread, good luck Nick.
New channel type, Finite state machine added in 4.0.