LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

refnum of an application

Hi,

How can I do to get the names of all the applications running and the Refnum of the Vis ?

The purpose is to not re-open an application running and close those that I no more need.

Does the lvwutil32 DLL exist for LV 8.5 ?

Thanks,

Bruno.

0 Kudos
Message 1 of 4
(2,944 Views)

One suggestion would be setting the configuration just opposite as mentioned here

 

Just set 'allowmultipleinstances=FALSE' 

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

How can I do to get the names of all the applications running

Kernel32.dll has a function called "createtoolhelpsnapshot" which can be used to get the list of all the applicaitons shown in "task manager".  Refer this page and try out this dll.

 


Refnum of the Vis


not sure whether refnums of all the vi's can be obtained [some may be called dynamically].  Using the application instance try getting the vi list.

 

Post back for queries.

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 3 of 4
(2,920 Views)

Thanks for your responses.

It is not exactly want I want but it helps me.

I've found an Vi example one day that displays all the running applications exactly like the TaskManager, but I don't remenber where...

Do you have such examples ?

Regards,

Bruno.

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