LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using VI server from DIAdem script :: Syntax (documentation) for properties and methods of VI Server objects (for non-labview programmers)

Hello all,
 
I am using DIAdem 10.0 Advanced, LabVIEW 8.0 PDS. I would like to start a LabVIEW IHM from a VBS script. I use VI Server to call my VI from DIAdem.
 
Here is the script and the VI I use (VI attached):
 
Dim lvapp, vi, viPath, paramName(1), paramVal(1)
Set lvapp = CreateObject("LabVIEW.Application")
viPath = "C:\TEST\test.vi"
Set vi = lvapp.GetVIReference(viPath)
vi.FPWinOpen = True
paramName(0) = "Input"
paramVal(0) = 10
paramName(1) = "Output"
paramVal(1) = 0
Call vi.Call(paramName, paramVal)
Call lvapp.Quit()
 
I found a similar example on your web site.
 
Question 1:
I need to know the syntax for all the other properties and methods of a VI object (method like Get or Set Control Value for example).
Is a documentation (other than the LabVIEW help which is dedicated for LV programmers) exist in order to be able to use all the features of VI Server from another environment (CVI, VB, ...)?
 
Question 2:
Is it possible to call a VI with VI Server with the parameter "Wait until done" to FALSE? (run a VI asynchronuously from DIAdem)
 
Thanks for your answer.
 
MatthieuG
Eurilogic
0 Kudos
Message 1 of 2
(2,567 Views)

Hello,

I finally found a way to get the documentation of VI Server. I can view the "LabVIEW.TLB" type library file with a OLE/COM Object Viewer (a utility from the Windows SDK).

 

Message 2 of 2
(2,563 Views)