LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Try to insert OCX File... Problem: Control could not be loaded...

Hi!

 

I've got a problem with inserting an *.ocx file in my application.

 

The OCX File represents a control which is installed with an other software.

The software installs an ActiveX Server which allows to call a couple of functions of the software.

Theres a function within the software which calls an ActiveX Control. Unfortunately I cannot access this control over the ActiveX Server

 

STEP1: So I tried to implement the Control over an ActiveX Container on my LabView Frontpanel. When I choose the option "Insert ActiveX Object/Create Control" I can see the Control in the list below. When I try to choose the control there will be an error and the control can not be loaded...

 

STEP2: Furthermore I tried to implement the concrete *.ocx file over the option "Insert ActiveX Object/Create Object from File"... Honestly I dont know what I'm doing there...

 

STEP3: If I repeat step one  "Insert ActiveX Object/Create Control" after that... it works...

 

The problem is that it is not possible to always click step 2 and after that step 3... this has to work automatically

 

I dont have much experience with this activeX stuff. please dont hesitate to correct or teach me...

 

HELP!!

 

 

Andy K.

 

The problem

0 Kudos
Message 1 of 3
(3,063 Views)

Is this component supposed to be used as a front panel control? Some components are called "controls" but are really only suppose to be instantiated in code. In this case you would use the Automation Open function in the ActiveX palette in your LabVIEW diagram, and then you would access the properties and methods for the component.

 

What is the component you're trying to use?

0 Kudos
Message 2 of 3
(3,051 Views)

Its definitely a front panel control. Its an so called "HorseShoe-Diagram". Its a diagram which is used to visualize colors quantitatively.

 

Anyway, I can use it and it works... but only after I did the steps described above.

 

After I do that I can see the control and its possible to zoom in and use all the function which are available!

 

 

What I dont understand:

 

Can anybody explain when I have to "Create an Object from file" instead of "Create Control".

 

I have to do both... Why?

 

How can I avoid that?

 

Whats the background of these actions?

 

 

thx for helping ideas!

 

 

andyk

0 Kudos
Message 3 of 3
(3,045 Views)