02-07-2011 09:31 AM
Hello all,
I would like to create user interaction like the same in the vi. Here i used shift register+while loop combination. What i need exactly,is there any way to avoid shift register and perform the same operation.It will help me a lot and might useful for others also.
Thanks in advance and waiting for reply....
Solved! Go to Solution.
02-07-2011 09:52 AM
I'd recommend state machine architecture driven by an event structure. See this article for more info on event structures: http://zone.ni.com/devzone/cda/tut/p/id/3331
The benefit of the event structure is it will monitor for all kinds of UI changes for each individual control. Once the event structure detects say, a value change, it will respond by executing code specific to that control changing its value. You could use the event structure to execute the code within the event structure, or go to another state and execute that code.
Let me know if you need more help on this!
02-07-2011 08:41 PM
At first thanks for your reply zenthoef,
i think it might be possible. I would like u brief some more on this. can u tell me how to do with event driven for at least two models.
waiting for reply.
02-07-2011 11:58 PM
Here is one example.
02-08-2011 04:30 AM
Gaurav: Thanks for your reply. I like the way its working but what i need exactly.
I would like to create as same in the original vi.. please let me know is any way to do this
Waiting for Reply..
02-08-2011 04:53 AM
I solved some issues on this. What i need is now, i want any indication on the slected or pressed model.
02-08-2011 05:01 AM
what indication?
02-08-2011 05:17 AM
Here is modified vi, I have used state diagram method.
Have a look, may be it will be helpful.
02-08-2011 08:33 AM
Hai gaurav. At first thank you very much. You are great and good LV Programmer. This is what i exactly needed.
The indication about i told is any blinking property on the selected model or mechanical action (switch when pressed) like that.
02-08-2011 09:31 AM - edited 02-08-2011 09:32 AM
Hi gaurav, you solved my problem. Do you belive it or not i got 2 weeks to find the soln for this, finally you did it keep it up.I am very happy now.
I modified a little bit in the vi as you posted. I added mechanical action in model button (switch when pressed) and used invoke node. I did for first two models please check it out,any updation welcome.
In addition to this you can see in front panel i added one led (main program) to check the current status.Is it possible to create another state and insert my main machine vision program there.
Waiting for reply.