LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent multiple instances of program executable?

I have a relatively large program built using LabWindows/CVI.

Is there any way to prevent a user from opening multiple instances of the executable? So, if a user already has the program open, clicking its icon on the start menu or desktop would either do nothing or bring the currently running program into focus instead of opening a separate instance?

Thanks.
0 Kudos
Message 1 of 3
(2,902 Views)
Just look at the CVI examples. There is one showing how to do it. Or
check out CheckForDuplicateAppInstance function help.

DanP wrote:
> I have a relatively large program built using LabWindows/CVI.
>
> Is there any way to prevent a user from opening multiple instances of
> the executable? So, if a user already has the program open, clicking
> its icon on the start menu or desktop would either do nothing or bring
> the currently running program into focus instead of opening a separate
> instance?
>
> Thanks.
0 Kudos
Message 2 of 3
(2,902 Views)
Thanks so much, I guess I should have figured that out on my own.
0 Kudos
Message 3 of 3
(2,902 Views)