LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to execute the exe file in labview programming

I'am trying to program for a motor which the company people supplied an exe file containing its commands. Can I directly put this exe file to the labview and work with the motor. Please help

0 Kudos
Message 1 of 3
(2,373 Views)

No, you cannot directly put this exe into LabVIEW, just like you cannot directly put the exe into Java, C, C++, or any other programming language. If the executable is a command-line program and has command-line parameters then you could call it that way using System Exec. If it has some other interface, like an ActiveX interface, then you could use that. Perhaps the company provides a library to use in other programming languages. Basically, check with the company to find out if they provide a library that can be used in a programming language.

 

If you know the communication protocol, and it's something simple, like a serial interface, then you can simply program the communication interface directly in LabVIEW.

Message 2 of 3
(2,368 Views)

thank you for your reply

0 Kudos
Message 3 of 3
(2,349 Views)