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.
01-11-2017 02:01 AM
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
01-11-2017 03:17 AM
Pls share the inputs, which you have provided for System Exec.
01-11-2017 04:10 AM
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 🙂
01-11-2017 05:30 AM
Try this!
01-11-2017 07:34 AM - edited 01-11-2017 07:36 AM
system exac now return error code 2 (attached is an image of the error)
Thanks again 🙂
01-11-2017 04:43 PM
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
01-12-2017 01:16 AM
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
01-12-2017 02:23 AM
Can you share the .bat file itself so we can reproduce your error and then look at how to solve this?
01-12-2017 12:25 PM
I'm thinking you probably have to run system exec with admin privileges. I'm guessing that means running LabVIEW as admin.