Hai to all,
i have some dobuts,
----------------------------------------------------
Call Main
Function Main
dim oLv ' LV application Objekt
dim oVI ' VI Objekt
dim sVIPath ' Pfad des VIs
dim sIONames(3) ' Namen der VI Bedien- und Anzeiegelemente
dim sIOValues(3) ' Werte der VI Bedien- und Anzeiegelemente
sVIPath = "D:\LabVIEW_VBScript\VBS_VI\mathe.vi"
' Eingänge des VIs
sIONames(0) = "Numeric"
sIONames(1) = "Numeric 2"
' Ausgänge des VIs
sIONames(2) = "Summe"
sIONames(3) = "Produkt"
' Werte an die Eingänge übergeben
sIOValues(0) = "2"
sIOValues(1) = "10"
' LabVIEW öffnen
set oLV = CreateObject("LabVIEW.Application")
' eine Referenz auf das VI holen
' object.GetVIReference(viPath,
[password, resvForCall, options])
set oVI = oLV.GetVIReference(sVIPath)
msgbox "VI Statring"
' VI starten
' object.Call2([paramName, paramVals, openFP, closeFPAfterCall, suspendOnCall])
call oVI.Call2(sIONames, sIOValues, true, true)
' Ergebnisse anzeigen
msgbox sIONames(2)&" : "&sIOValues(2)&vbcrlf&sIONames(3)&" : "&sIOValues(3)
End function
-----------------------------------------------
in this function i getting some function
"set oVI = oLV.GetVIReference(sVIPath)"
what is "GetVIreference" it is VBScript Reserve Word or, LabVIEW Word.
"call oVI.Call2(sIONames, sIOValues, true, true)"
in that also Call2?
I am confusing what is two function?
please give the your valable answers.
if you want you can download this complete document. Here i am attaching in zip format, ie. Script and VI