LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview development using run as administrator

Platform LV2010 on Win7Pro from an Administrator account.

 

We have an application written in C++ that does a lot of hardware control. This app must run as administrator. I have been tasked with writing a macro shell around this app that uses dll calls to move the mouse and click on buttons etc. In order to do this since the app is run elevated I must run LV elevated as well.

 

So I right click on the LV icon on my start menu and select Run as Administrator. When I do that it takes a long time but finally LV opens to not the start screen but to a new VI. I close the new vi and the start screen comes back.

 

You really have to be extremely careful how you open up your vi's. If you go to a folder tab and double click on it you can get an unprivileged instance of LV to open up. Now I have two copies of the same vi open just in different LV instances.

 

I'm gonna install 2011 DS2 to see if it behaves the same way. This is some damn hinkey stuff.

 

Norm

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

Hi Viper,

 

your description just raises the question on why you don't create an executable from your "macro shell VI"? Starting an exe with admin privileges should be no problem at all...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,954 Views)

If I have to I will but troubleshooting an executable is a lot more dificult. I'm still in the development stage.

0 Kudos
Message 3 of 4
(2,948 Views)

LV 2011 DS2 works as expected in run as administrator.

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