简体   繁体   English

在Java中调用非exe(Labview VI)外部程序

[英]Calling a non exe (Labview VI) external program into Java

我已经开发了一个Labview程序,并且我希望Java触发它打开,我已经看到了许多用Java运行外部exe应用程序的方法,是否可以调用Labview文件格式为.vi的非exe文件?

You will have to either: 您将必须:

  1. compile your LabVIEW vi either into exe (and then use any standard Java Method to call exe) 将您的LabVIEW vi编译为exe(然后使用任何标准Java方法调用exe)
  2. compile it into a DLL and then use JNI to call it. 将其编译为DLL,然后使用JNI对其进行调用。 I would use the first approach unless you are passing huge data chunks, using memory-mapped IO, or otherwise need fine memory allocation control. 我将使用第一种方法,除非您要传递大量数据块,使用内存映射的IO或需要精细的内存分配控制。
  3. or call labview.exe, passing your VI as it's first argument. 或调用labview.exe,将VI作为第一个参数传递。 Set "Run on Open" property in the VI properties. 在VI属性中设置“打开时运行”属性。 This will require labview development environment present on your target computer 这将需要目标计算机上存在labview开发环境

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM