LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i use activeX Control in labview?

how can i use activeX Control in labview?

please describe me step by step.

thanks.

0 Kudos
Message 1 of 10
(12,189 Views)

hi...

can you tell specifically for what application you want to use activex??

 

for the start you can select activex container from .net and activex option from control pallete on front panel...then right click on it and select insert activex object..and select the application for which you want to use activex....

 

if you tell the application then using property and invoke nodes you can get the required result.

 

Message 2 of 10
(12,185 Views)
If you look in the help files they show a few different examples for ActiveX. I have attached a simple one.
Tim
GHSP
Message 3 of 10
(12,149 Views)

maji wrote:

how can i use activeX Control in labview?

please describe me step by step.

thanks.


Have you tried reading the manual or searching the site? ActiveX and LabVIEW.

0 Kudos
Message 4 of 10
(12,135 Views)

how can i use activex control for invoking my laptop camera? i'm using hp mini.

0 Kudos
Message 5 of 10
(11,795 Views)

@incisive wrote:

how can i use activex control for invoking my laptop camera? i'm using hp mini.


You need to start a new thread for this question.

Tim
GHSP
0 Kudos
Message 6 of 10
(11,788 Views)

Hi Incisive,

 

If you want to embed an ActiveX control, that would completely depend on whether your webcam can act as an ActiveX server for LabVIEW ActiveX controls to access it. 

Depending on the webcam drivers (find driver documentation for your laptop's webcam), you may also be able to call into the webcam driver dll using a Call Library Function node in order to start/stop acquisition

Regards,

Rohan Sood
Applications Engineer
National Instruments
0 Kudos
Message 7 of 10
(11,769 Views)

Well I would like to notify here that I'm having Hp mini notebook with windows 7 starter.

There is no such software to view webcam as we have it in xp below My computer. I have installed a software called mycam for viewing camera and dorgem for motion detection.

In case of Xp, the dorgem merges with the appllication already present below my computer for viewing camera and appears in (insert activex control). (It appeared in case of del laptop with webcam).

But sadly in case of windows 7 and my mini notebook, I don't see any option of webcam, dorgem or mycam in activex controls.

What will be there in case I find the doccumentation? What will tell me whether it can be used as an activex control?

0 Kudos
Message 8 of 10
(11,755 Views)

The webcam driver documentation will specify whether the camera can be controlled by Activx objects or not. If the camera driver does not support activex control (the driver does not have a *.ocx file (activex control) then you need to use a third party activex control as demonstrated in the following link 

 

 

https://forums.ni.com/t5/Example-Code/Audio-and-Video-Capture-using-a-Third-Party-ActiveX-Control/ta...

 

 

There are few more activex components for webcam control that come in trial version. E.g. http://www.gogowishs.com/products/webcamcapture/

After installing and running these activex components, you will get a .ocx file which you have to link to the activex container you have created on your front panel. The steps are demonstrated in the following link

https://www.ni.com/docs/en-US/bundle/labview/page/creating-new-controls-in-an-activex-container.html

 

 

Trust that helps.

 

Best Regards,

Ankur

Message 9 of 10
(11,737 Views)

Well..that was quite helpful..but now I'm encountering certain problems. I've attached the VI I've made.

I don't need sound at the moment so I dropped it. (Although I tried to play it..but all I could hear was a very annoying sound.) Secondly I don't want to display any date or time..so i dropped that property too.

Now when I run this Vi...the webcam turns on, the screen of videocapx pops up..then the webcam light goes off..and another pop up appears saying..labview is not responding..and i have to close it reluctantly.

I haven't placed the stop capture property in this vi. i checked it by placing it too..but that doesn't work.

I would like to notify that my actual task is to acquire image and then compare it with another one already present on my pc. I want you to please help me out..solve my first query then I'll proceed with the latter part.

 

0 Kudos
Message 10 of 10
(11,710 Views)