LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling EXE from my CVI program

Solved!
Go to solution

So I have created an EXE using visual studio. I am trying to call it via Labwindows CVI using the system() function and It executes normally but this EXE is built to write data to an *.ini file so when I launch it myself it writes the data normally but when Labwindows CVI runs it, it can no longer write unto the result file.

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

How are you writing to the ini file in the program?

Can you also share your code snippet that calls the exe? 

R Dahlman

Message 2 of 4
(2,546 Views)
Solution
Accepted by topic author iheb07

Hi DahlmanR,

 

Thank you for your suggestion but it has been solved the moment I used LabWindows/CVI as an administrator.

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

This could be explained if you installed the CVI program in c:\Program Files folder: that path is protected so that normal users / applications cannot write to it and subfolders, but those with elevated privileges can. If you for any reason don't want to grant administrative level to your app you could try installing it in another, non protected folder and it should behave correctly even if run normally.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 4
(2,535 Views)