From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-11-2011 12:14 PM
Thanks Nick-
I just tried that and I received a link error that states 'Psapi.lib' is only available in the full development system.
Unfortunately, I have the basic development system...
04-11-2011 01:31 PM
I am looking for a way to not launch anoter instance of an application if it is already running. Is there a way to do this wih the basid development version of Labwindows CVI 2010?
04-11-2011 01:48 PM
Hi,
If the other application is a CVI program, you can use CheckForDuplicateAppInstance
04-11-2011 01:57 PM
Unfortunately, the other applications that I need to determine if they are running or not are not CVI applications.
CheckForDuplicateAppInstance will only work if there is already "more than one" instance of a non-CVI application ...
04-12-2011 01:47 AM - edited 04-12-2011 01:49 AM
Hi,
i am not sure if this is possible in basic version, but you can try generate your own DLL import Lib:
Open psapi.h in CVI and then select menu Options->Generate DLL import Library or Options->Generate DLL import Source
(maybe will be necessary to edit generated source file and clean up it).Windows library should be in
C:\WINDOWS\system32 directory.
Do not be afraid if some errors appear, just try generated library, or prepare simplified header file with only required functions(+typedefs +structs,...)
I hope this help 🙂
04-12-2011 08:11 AM
09-15-2011 10:14 AM
Hi,
you can use CheckForDuplicateAppInstance only if is same program