LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

command "system"

Hi,

I launch an executable file with the command "system" on CVI. The executable normally return an exit status code but I don't know how I can read this code. Can you help me?
Thanks
0 Kudos
Message 1 of 3
(3,302 Views)
You could try using the Windows SDK functions CreateProcess and GetExitCodeProcess. See the SDK help for these functions.
#include windows.h and winbase.h in your .c file.
Add kernel32.lib to your project.
0 Kudos
Message 2 of 3
(3,299 Views)
HI,
try this :
http://digital.ni.com/public.nsf/allkb/E250246D65A6A18D8625659F0065F310

Thanks

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 3 of 3
(3,295 Views)