DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Execute VI from DIAdem_Error: "LabVIEW: VI is not loadable."

Solved!
Go to solution

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

0 Kudos
Message 1 of 2
(2,353 Views)
Solution
Accepted by topic author levan8421

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.

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