Problems calling LabVIEW VI through ActiveX inside another LabVIEW VI

Problems calling LabVIEW VI through ActiveX inside another LabVIEW VI

Post by Chus » Fri, 04 Nov 2005 22:42:38


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.ApplicationDim vi As LabVIEW.VirtualInstrumentDim names(0 To 1) As String, values(0 To 1) As Variant'Assign an object reference to VISet lv = New LabVIEW.Application'Assign an object reference to VISet 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 VIvi.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?
 
Thanks !!!
 
Jesus ValeroPlataforma Solar de Almeria.
 
 
 

Problems calling LabVIEW VI through ActiveX inside another LabVIEW VI

Post by Chus » Sat, 05 Nov 2005 01:13:27

Exactly, but really the code of above it's only an example that I want to do. I'm trying something more sophisticated.
I want to create an ActiveX control that could work as stand alone executation with the ability of directly get some indicator values from its LabVIEW VI container and depending of those values, set the control values of others LABVIEW VIs. I really know that within LabVIEW itself I can get/set those indicators/controls, but with this method I think that the diagram block of the LabVIEW VI container can be more simple.