cancel
Showing results for 
Search instead for 
Did you mean: 

problem using state machine with structure event (mouse clicking)

nousome
Member

Re: problem using state machine with structure event (mouse clicking)

Yes, it is the case in this example. In practical, the position will be randomized.
Quintin
Member

Re: problem using state machine with structure event (mouse clicking)

Getting the properties of the picture using the Property Node allows them to be randomized, the positions and sizes wont be hardcoded.
Highlighted
nousome
Member

Re: problem using state machine with structure event (mouse clicking)

Oh yes, thanks I have not thought proceeeding like that.

So with your idea of shift register I don' have to use the event structure. But in this architecture can I even though (for practical reasons) continue to use event structure once or it is not possible? 

kamalb
NI Employee (retired)

Re: problem using state machine with structure event (mouse clicking)

Message contains an attachment
Hi
I don't have found in your zip an event structure??? I send you an example in which i used event, i think that you can use such a structure for your code for sure.
You have to add 2 conditions in the main while loop, each condition can control an event (moussse click, mousse position....)

Kamal
NIF
nousome
Member

Re: problem using state machine with structure event (mouse clicking)

Thanks, Yes, my code contains several events structures  with mouse up  commands. If you look at sequence structure, you will see them.

You have to add 2 conditions in the main while loop, each condition can control an event (moussse click, mousse position....)

You mean  that  I have to write it with shift registers ?

 
kamalb
NI Employee (retired)

Re: problem using state machine with structure event (mouse clicking)

Hi
I think that it is possible with register.
 
Kamal
NIF
nousome
Member

Re: problem using state machine with structure event (mouse clicking)

Okay, thanks, but I don't see how to handle events like mouse clicking without event structure? For clicks on picture indicator and on boolean control.
 
nousome
Member

Re: problem using state machine with structure event (mouse clicking)

Do you know how do this, please? Thank you.
Quintin
Member

Re: problem using state machine with structure event (mouse clicking)

RIght, I would still use the event structure to obtain the mouse click coordinates.