06-19-2011 07:28 PM
saludos cordiales
dentro de mi proyecto tengo establecida una maquina de estados controlada con un menu ring.
cuando paso a traves de los estados y se realiza la accion especificada en el estado, en alguno de estos estados se requiere volver al inicio para que el usuario pueda volver a seleccionar alguna opcion.
el problema surge por que al volver al estado inicial, el menu ring ya esta marcando una opcion (la que se habia elegido inicialmente) y vuelve al mismo estado en el que se encontraba el programa.
en realidad no se de que forma pueda haber una solucion, agradezco mucho me puedan colaborar con este topic
gracias
Grettins
in my project i have a states machine controled by a menu ring.
when i start the program, the action is executing normally for every state but in some of this states is importan return to the first state because the user have to choose some action.
the problem begins because when the program return to the first state, the menu ring is already in an option (the option we chose initially) and the program take that value, so the program go to the same state..
i hope that someone can answer this problem...
thanks a lot
Solved! Go to Solution.
06-19-2011 09:20 PM
Usually, state machines use an enum datatype to define the states and not a menu ring. It's unclear what you are doing by your description. Perhaps you can post a VI that demonstrates your problem. It sounds like you are somehow connecting your state machine to a cldontrol on the front panel, which would not be something you would normally want to do in a state machine architecture.
06-20-2011 02:23 AM
Hi Cristhianow,
I think you must have left the connections between the two terminals of the shift register unwired. You must wire both the shift register terminals in all the cases. Cross check your code. Go through the vi i have attached here. If your problem still persists, do attach your code.
Regards,
Nitzz
(Give kudos to good Answers, Mark it as a solution if your problem is Solved;))
06-20-2011 06:36 AM
thanks a lot por answer this topic, someone told that I can solve my problem with a property node: value, but I tryed to add this property node to my project and search about his use but I couldn´t know how it worked
I add my project´s VI, and it´s important say that I learned Labview empirically so apologize for something wrong in my work.
when the VI Stars, the menu ring is in the value " seleccionar alguna opcion", so the program wait for the user´s choice
for example, the option that always I will choose is "Registrar Datos", and it´s importan that the program show me if I wanna start the data registry and if I want to keep that process, but when I choose "no", the program have the order to go to "inicio" where supposedly the program have to wait an user´s choice, but the menu ring keep the same value so the program go to the same state, and this is I wanna change.
thanks a lot for your colaboration...
06-20-2011 06:49 AM - edited 06-20-2011 06:50 AM
Right-click your menu selector in your block diagram. Then select Create -> Property Node -> Value.
Place it and right-click the property value. Select Change to read. Then right-click the terminal and select Create Constant.
This will change the value of the control on your front panel.
06-20-2011 06:55 AM
thankssssssssssssssss a looooooot. I can make it!!
06-20-2011 06:59 AM
That's great! Good luck with your work