Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems calling LabVIEW VI through ActiveX inside another LabVIEW VI

Hi everybody,
basically I would like to create an ActiveX to be inserted in a LabVIEW VI which at its turn would call another LabVIEW VI.
I have choosen Visual Basic to create this ActiveX, being the main section code:
...
Dim lv As LabVIEW.Application
Dim vi As LabVIEW.VirtualInstrument
Dim names(0 To 1) As String, values(0 To 1) As Variant
'Assign an object reference to VI
Set lv = New LabVIEW.Application
'Assign an object reference to VI
Set vi = lv.GetVIReference(lv.ApplicationDirectory & "\Examples\General\Strings.llb\Parse Arithmetic Expression.vi")
vi.ShowFPOnCall = False 'Open front panel if requested
'Initialize the variables & define the strings corresponding to the VI connector labels.
names(0) = "Arithmetic Expression": values(0) = "1+1"
names(1) = "Result"
'Call the VI
vi.Call names, values
...
 
So, when this ActiveX executes this code sequence it locks when creating the "LabVIEW. Application" object. I have tested this ActiveX from another client application (Internet Explorer) and it works perfectly, so the problem is located in the creation of ActiveX from LabVIEW. Do I need to do anything special in my code or simple it cannot be done what I want to do?
 
System: WinXP, LV7.1
 
Thanks !!!
 
Jesus Valero
Plataforma Solar de Almeria.
0 Kudos
Message 1 of 1
(5,986 Views)