LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How use System Exec.vi for a c++ program?

Hi

I'm trying to connect my VI, which take PNG files from a folder and write the pixels in binary code, to a C++ program that will open the file bin with the pixels of one image, search 3 specific pixel and write their coordinations in a file txt. The problem it's that I execute the vi and it should open each file txt and gave in a string the coordinations of the 3 pixel, but it doesn't. So i think  there is a problem with the System Exec.vi.

What can i do?

0 Kudos
Message 1 of 2
(2,962 Views)

Am I right you have compiled your c++ program and you want to call executable and all your data transfer happens through the files?

Do you supply any parameters or expect any output except file?

Does your exe work when you call it through command line? 

What error does System Exec.vi say?

 

I doubt the problem is with system exec.vi, more likely it is how you call it. And if we do not know how you do it, we do not know what is wrong. If you mean we should find your location, get into your PC and look what is wrong, at least we need to know the path to your VI...

 

>> What can i do?

you can post a snippet of code how you try to call your exe with system exec

 

0 Kudos
Message 2 of 2
(2,935 Views)