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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exac have no privilege

Hi all

i have a CMD script (.bat file) that i'm trying to call from my LabVIEW application .

when i simplly ran the .bat file (by doubble clicikng the file) everythign runs perfectlly

when i try to call the same file, using the system exac function (from within LabVIEW) i get the folowing error :

System error 1314 has occurred.

A required privilege is not held by the client.

 

any ideas how to solve this issue? 

 

thanks in advace 🙂

Reuven Stahl

0 Kudos
Message 1 of 9
(3,391 Views)

Pls share the inputs, which you have provided for System Exec.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 9
(3,361 Views)

the entire command is the location of the .bat file, no other inputs are used
(i'm attaching a snippit of the relevent section of the code)

 

thanks 🙂

0 Kudos
Message 3 of 9
(3,353 Views)

Callbat file.png

 

Try this!

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 9
(3,339 Views)

system exac now return error code 2 (attached is an image of the error)

system-exec-2.PNG

 

 

 

 

 

 

 

 

 

 

Thanks again 🙂 

0 Kudos
Message 5 of 9
(3,308 Views)

Hi Reuven,

 

We have a few knowledgebase articles on this issue, see if either are helpful:

 

Error 2 (Memory Full) When Using the System Exec VI

http://digital.ni.com/public.nsf/allkb/0F61A4BB5B9372CD862576AB007158F7?OpenDocument

 

Error 2 (Memory Full) When Using the System Exec VI

http://digital.ni.com/public.nsf/allkb/EA1600EBA422E97286256AA20073C616?OpenDocument

Austin
Staff Software Engineer
NI
0 Kudos
Message 6 of 9
(3,299 Views)

Hi all

thank you both for the helpfull answers 🙂
i found my syntax error in the cmd /c command and fixed it so now the script is running
but the script still returns "standard error" 

System error 1314 has occurred.

A required privilege is not held by the client.

thanks in advance

Reuven Stahl

0 Kudos
Message 7 of 9
(3,285 Views)

Can you share the .bat file itself so we can reproduce your error and then look at how to solve this?

0 Kudos
Message 8 of 9
(3,272 Views)

I'm thinking you probably have to run system exec with admin privileges.  I'm guessing that means running LabVIEW as admin.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 9 of 9
(3,255 Views)