LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem of subpanel with event structure in the main vi

I am using Labview8.2
I need to call a subvi with an event structure there. It works well when there is no event structure in the main vi. When I place a multilistbox control, and I want to lead the row of multilistbox into subvi. So I add an event structure and register a "double click" event. But there is a problem after I do that. I post a example in the attachment. Is there anybody know how to fix it?
Download All
0 Kudos
Message 1 of 4
(2,932 Views)

This seems to work for me: just put the call to subvi outside of the event node.

side note: maybe you want to put the event structure inside a while loop, so every time you double click on the table the command will be executed.

attached.

Message Edited by Gabi1 on 10-16-2007 12:11 PM

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 2 of 4
(2,925 Views)

sorry my mistake.

you need some modification of the subvi, together with the main.

for looping we need a little bit more elaborate solution.

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Download All
0 Kudos
Message 3 of 4
(2,916 Views)

I also have solved it. It's the problem of "lock front panel bla bla..." checkbox in the event structure. If I cancel the selection of the checkbox in the mainvi, then it works well.

thank you anyway. your solution works well too.

0 Kudos
Message 4 of 4
(2,895 Views)