LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

open a file with a particular application in CVI

I have a notepad file with x and y data's and i want to open it with a plotting app. I used system("notepad xy.txt") function to open it with notepad and had no issues but by using system("plotapp xy.txt")  wasn't working. Is there a way to do this differnetly?

0 Kudos
Message 1 of 6
(3,239 Views)

Might it be that you need to use "\full\path\to\plottapp.exe" instead of just "plotapp" ?

0 Kudos
Message 2 of 6
(3,217 Views)

@mkossmann  ha scritto:

Might it be that you need to use "\full\path\to\plottapp.exe" instead of just "plotapp" ?



... or the full pathname to the data file.

Does system () return any error?



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?
0 Kudos
Message 3 of 6
(3,209 Views)

yes , But i have managed to work the application by Using CopyFile() to copy plotapp to a the folder which  the text file lies. I ve  also tried giving path name in System but doesnt work . System() works pretty fine for System 32 prgrams

0 Kudos
Message 4 of 6
(3,193 Views)

I ve tried it but doesnt work

0 Kudos
Message 5 of 6
(3,192 Views)

I used CopyFile to cply the app and used system()  and setDir to open it from there and it works . Thanks all for help.Smiley Happy

0 Kudos
Message 6 of 6
(3,114 Views)