ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI references

I have 2 listbox.
In first, a list of VIs in a path on computer. I select one VI, and then,
open it with a button. I use invoke node- run vi.
In the second listbox, I put the name of the VIs who are opened. I want to
click one of the VI opened and close it by a button. For that, I have to put
VI references in an array but its make computer slow. I don't know how to do
this well.

If anyone can explain me or send me an example, it will be appreciated
Eric
0 Kudos
Message 1 of 2
(2,772 Views)
Not sure what you're doing, but it sounds like you have a while loop running
continuously to watch your listboxes. Do you have a delay of 100ms or so in
there to stop the while loops consuming all the CPU power and slowing the
machine down?

Simply manipulating an array of references to a few tens of VIs shouldn't
cause a noticeable slowdown.

Eric Poirier wrote in message
news:3a9e660d@newsgroups.ni.com...
> I have 2 listbox.
> In first, a list of VIs in a path on computer. I select one VI, and then,
> open it with a button. I use invoke node- run vi.
> In the second listbox, I put the name of the VIs who are opened. I want to
> click one of the VI opened and close it by a button. For that, I have to
put
> VI references in an array but its ma
ke computer slow. I don't know how to
do
> this well.
>
> If anyone can explain me or send me an example, it will be appreciated
> Eric
>
>
0 Kudos
Message 2 of 2
(2,772 Views)