LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User Interacting

Solved!
Go to solution

Hello all,

 

 

  • I am currently working in labview v 8.6 and am new.
  • Here i attached the code for your reference.

 

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

---
Silver_Shaper | CLD
0 Kudos
Message 1 of 17
(3,188 Views)

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!

0 Kudos
Message 2 of 17
(3,175 Views)

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.

---
Silver_Shaper | CLD
0 Kudos
Message 3 of 17
(3,149 Views)

Here is one example.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 4 of 17
(3,132 Views)

Gaurav: Thanks for your reply. I like the way its working but what i need exactly

 

  • If you see in an original vi, it wont allow you to select two model at a same time.
  • It indicates what model you have selected currently.
  • If i press cancel in the pop-up message it will ask you to select the model.

 

I would like to create as same in the original vi.. please let me know is any way to do this


Waiting for Reply.. 

---
Silver_Shaper | CLD
0 Kudos
Message 5 of 17
(3,119 Views)

I solved some issues on this. What i need is now,  i want any indication on the slected or pressed model.

---
Silver_Shaper | CLD
0 Kudos
Message 6 of 17
(3,115 Views)

what indication?

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 7 of 17
(3,112 Views)

Here is modified vi, I have used state diagram method.

Have a look, may be it will be helpful.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 8 of 17
(3,106 Views)

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. 

 

---
Silver_Shaper | CLD
0 Kudos
Message 9 of 17
(3,084 Views)

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.

---
Silver_Shaper | CLD
0 Kudos
Message 10 of 17
(3,073 Views)