LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

menu ring values

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(3,453 Views)

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.

0 Kudos
Message 2 of 7
(3,444 Views)

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;)) 

0 Kudos
Message 3 of 7
(3,432 Views)

 

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...

 

 

 

Download All
0 Kudos
Message 4 of 7
(3,419 Views)
Solution
Accepted by topic author Cristhianov

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. 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
Message 5 of 7
(3,413 Views)

thankssssssssssssssss a looooooot. I can make it!!

0 Kudos
Message 6 of 7
(3,408 Views)

That's great! Good luck with your workSmiley Happy

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 7 of 7
(3,405 Views)