LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Activex Container

hi ,

i m interfacing Labview with "Aver media frame grabber card " that is being used with "Fath software".I m using Activex Container to access the properties and methods.
but most of the time it opens the preview window of the fath software and hangs up .
why does this happen ?
and also i have to insert the activex object again n again

i basically want to control certain features of the fath software through my LV program.
for eg.
properties like
1. open the preview window .
2. able to set video source to composite .
3. able to set the window size. etc......
Is this possible or do we require to make use of any other control.

So, when we are using activex control do we need to flush the buffer or something?(as a solution to why it keeps hanging the comp while executing.)



regards
tanisha
0 Kudos
Message 1 of 17
(5,382 Views)
you may need to use the activex automation VIs instead of fronpanel activex container. The vis are located in the "Communication" pallete

-joe
0 Kudos
Message 2 of 17
(5,370 Views)
hi ,

i have already tried that but according to the literature given "Automation open" is used for ActiveX server . n in case of ActiveX control one has to use ActiveX container.

tanisha
0 Kudos
Message 3 of 17
(5,352 Views)
The documentation is a little misleading. The ActiveX container is for an ActiveX control that you want to have display its graphical interface in the LV front panel.

The ActiveX nodes (Open, Invoke, Property, etc) are for any COM object - it doesn't have to be a full blown ActiveX object. So if you just want to programatically interact with the frame grabber, you can just use the Automation Open, etc.
0 Kudos
Message 4 of 17
(5,350 Views)
hi ,
i require to do both .i.e on my Vi the spesific windows of the other software will run .

i tried using automation open but it kept giving Null refnum error.
so i am a bit confused .

regards
tanisha .
0 Kudos
Message 5 of 17
(5,335 Views)
just wanted to ask another question can we use Automation Open and Activex container in the same program to access the same activex Object.


tanisha
0 Kudos
Message 6 of 17
(5,331 Views)
That's a good question, I never tried it myself. But why do you need it? When you use the activeX container its reference will be kept in memory until the application exits.

Does the activeX interface of the frame grabber come with any sample code? VB, c, etc? Studying such code helps a lot in this code.

-Joe
0 Kudos
Message 7 of 17
(5,323 Views)
When you drop an ActiveX control on the front panel, you also get an automation reference on the diagram for it. From there you can use Invoke and Property nodes, just as if you had done an Automation Open.
0 Kudos
Message 8 of 17
(5,319 Views)
hi ,

Thanks(though "THANKS" is a little late) everyone out there for all those informative inputs

now something more ,

According to my application i am accessing a video capture software thru labview. But unfortunately the quality of the video deteriorates in case of "Full Screen" and this happens in the original software itself. So, i compared the video capture software with another software .So, the other software while loading asks for DirectX 9.0 to be loaded .Now after going thru DirectX help i thought that if i can access DirectX thru my VI and incorporates its features in my VI and improve the quality of the video capture it will be good but unfortunately i m not able to do so.
what i m trying to do ,is it possible


tanisha
0 Kudos
Message 9 of 17
(5,208 Views)
it will be very hard, next to impossible. Get a high quality capture card. I'm trying out the wintv product now (it has an activex control), and there are many others.

-Joe
0 Kudos
Message 10 of 17
(5,201 Views)