Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

custom user interface with VI not working

Solved!
Go to solution

Hello,

 

         I trying to use a custom user interface for VBAI using VI. I was successful to the point where I can run the VI all by itself and see the  logic working. However when I add to as a part of the user interface and switch to inspection mode and run it , it doesnt do anything. Please let me know, if I'm doing something wrong. Attached you will find the program I'm working with.

 

thanks.

Download All
0 Kudos
Message 1 of 4
(3,758 Views)

You have to call the step that will update the Custom UI (located in the last tab towards the bottom). It's called Update Inspection UI and this is where you map previous results to controls/indicators on your custom UI, and for your UI, you'll want to make sure to check the box to have the VI run when the step executes.

 

Hope this helps,

Brad

0 Kudos
Message 2 of 4
(3,749 Views)
Solution
Accepted by topic author gsajja
I just tried your VI...you need to have a VI that doesn't run forever in a loop. You can use a While loop that just runs once and use the shift registers to keep track of previous results from earlier runs of the step. Use the Is First Call? Primitive in LV to initialize the shift register the first time. Here's a modified Test.vi that will work better.
Message 3 of 4
(3,745 Views)

Brad-

 

         You are right, while loop runs for ever. Using while loop once and making use of shift registers makes more sense. I tried in the test program and it works. Thanks a lot for your help.

 

 

0 Kudos
Message 4 of 4
(3,740 Views)