09-11-2017 03:39 PM - edited 09-11-2017 03:41 PM
I tried to execute a Main.vi from DIAdem. This Main.vi references to other subVIs.
Following is the sub in DIAdem:
Dim VIPath : VIPath = currentscriptpath & "Main.vi" Dim oVI LVRuntime.Init "" Set oVI = LVRuntime.LoadVI(VIPath) Call oVI.Run(true) Set oVI = nothing LVRuntime.DeInit
However, the following error keeps happening.
LabVIEW: VI is not loadable. In a built application, this error might occur because the VI being loaded was last compiled for a different OS or with CPU features, such as SSE, that this target does not support. In this case you must rebuild the applicat
I am using Labview 2017 Professional Development System. I can directly run this main.vi with my current labview version without any problem. I do not want to build an exe application because I want DIAdem to finish executing this VI before running the rest of scripts.
Please provide me any suggestion for this.
Thank you
Solved! Go to Solution.
09-12-2017 12:49 PM
Hello,
I was able to run your script (with a VI saved in the same path as the script) without error using 32 bit DIAdem 2017 and a VI created using 32 bit LabVIEW 2017. I recreated your error using the same script in the following ways:
a) using 64 bit DIAdem to run a VI created in 32 bit LabVIEW 2017
OR
b) using 32 bit DIAdem to run a VI created in 64 bit LabVIEW 2017
I believe DIAdem and the LabVIEW VI need to match bitness.