07-15-2008 04:23 AM
07-15-2008 09:57 AM
Hi bull balls,
The error message you included suggests that the top level VI is not finding its subVIs. When you call a LabVIEW application from DIAdem using the LVRuntime object, you need to call the top level VI of a built source distribution. The source distribution needs to include all called subVIs-- even those in vi.lib! You do not need to create a executable, but the source distribution is a required step when there are subVIs, which there almost always are when you count vi.lib VIs as called subVIs.
Also, I would recommend that you initialize the LVRuntime object with an explicit LVRT version, in your case that looks like 8.5, since calling the VI through LVRuntime will only work if the LV version of hte source distribution matches the LV versions with which you initialize the LVRuntime object.
LVRuntime.Init "8.5"
Brad Turpin
DIAdem Product Support Engineer
National Instruments
07-16-2008 05:10 AM
Hi,
You're right, need a source distribution (llb) with VI called as top vi in the llb. It work fine now...
Thank's.