LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Windows Capture Parameters Programmatically?

Hello all,

I'm using an ActiveX object that I found ( http://www.shrinkwrapvb.com/videocap.htm ) to display a live image from an Epiphan VGA2USB device. It shows up as a TWAIN (I think that's the correct way to describe it) source if you go to My Computer in Windows. When I first tried to get it to work (All I did was put the video window in an ActiveX container) the colors were all screwy. I managed to get the built-in Windows capture parameter window to display (lets you select source's resolution and bit depth) at the beginning of the program execution.



Once I changed it from the default (as its shown in the image above) to RGB24, everything looked the way it was supposed to. Is there a way to programmatically set this prior to execution? I'm not a programmer and I'm having difficulty deciding whether that's a task for the ActiveX object or if it's something I need to set in the OS. I immediately looked to the OCX file, but I think its a Windows setting now, but I don't know where to start.

Thanks,

Jordan
Message Edited by jorwex on 08-21-2008 04:59 PM
0 Kudos
Message 1 of 4
(2,951 Views)
Unless the control's documentation explicitly says that it pulls in configuration information from a file or from the registry then you will need to configure the settings at the start of your code. For example, you can have an "init" VI that you call prior to running your main code.
Message 2 of 4
(2,917 Views)

Yea I'd like to do just that. I'm not sure what I'd be initializing though, or where to find it, rather. Would you know where that might be? I know it involves the video format (the bit depth and resolution) and the video source (the capture device), but I don't know where those values are formally set.

 

Thanks

0 Kudos
Message 3 of 4
(2,909 Views)
Well, I don't have that control so you would need to look at the documentation on what properties to set.
Message 4 of 4
(2,902 Views)