PDA

View Full Version : OnePush in labview



paull
May 15, 2013, 18:41:33
How on earth does one do this? I've been pulling my hair out. The only reference I've found in the docs is via the VCDSimple class. This class is not available in labview. Does someone have ideas?

Stefan Geissler
May 16, 2013, 09:02:44
Hi

I am very sorry about your hair. Attached two samples from my personal collection, that shows how to use one.
In this case, it is the software trigger one push. I do not know, which camera model you use and which of the three possible one push properties you want to interface, therefore these to samples.

The second one needs the NI IMAQ library, because it copies the incoming image into an NI IMAQ image.

IC Imaging Control works with VCD Properties as shown in the documentation at
http://www.imagingcontrol.com/en_US/support/documentation/activex/tech_VCDProperties.htm

The one push interface is:
http://www.imagingcontrol.com/en_US/support/documentation/activex/VCDButtonProperty.htm

In order to query the needed VCD property IDs, elements and interfaces you use the VCD Property Inspector, which is provided with the IC Imaging Control SDK.

paull
May 16, 2013, 18:01:09
Hi

I am very sorry about your hair. Attached two samples from my personal collection, that shows how to use one.
In this case, it is the software trigger one push. I do not know, which camera model you use and which of the three possible one push properties you want to interface, therefore these to samples.

The second one needs the NI IMAQ library, because it copies the incoming image into an NI IMAQ image.

IC Imaging Control works with VCD Properties as shown in the documentation at
http://www.imagingcontrol.com/en_US/support/documentation/activex/tech_VCDProperties.htm

The one push interface is:
http://www.imagingcontrol.com/en_US/support/documentation/activex/VCDButtonProperty.htm

In order to query the needed VCD property IDs, elements and interfaces you use the VCD Property Inspector, which is provided with the IC Imaging Control SDK.
I actually meant onepush whitebalance - but thanks to your VI I figured it out - see attached for anyone else confused!

Thank you so much Stefan!!

paull
May 16, 2013, 18:44:22
Two other questions, inspired from the VCDProperties dialog box:

1) where can i find the "Auto reference parameter" which controls auto exposure? What function is this called? I can't find sdk documentation on it.

2) why does WhiteBalanceAutoAvailable always return false, when in the demo VCDProperties dialog, it is available (and works)?

Stefan Geissler
May 17, 2013, 09:51:48
Hello Paul.

the auto reference parameter is a range property. It is a VCDRangeProperty type and will be used in the same way, as the one push. For receiving all IDs, you use the VCD Property Inspector, which is provided with the IC Imaging Control SDK.

paull
May 23, 2013, 22:03:26
Hello Paul.

the auto reference parameter is a range property. It is a VCDRangeProperty type and will be used in the same way, as the one push. For receiving all IDs, you use the VCD Property Inspector, which is provided with the IC Imaging Control SDK.

Thanks Stefan.

However I still have the issue, "WhiteBalanceAutoAvailable" is always returning False. But I can turn Auto on via WhiteBalanceAuto with no problem. Why is this the case? Is this a bug? If this property is not functioning should i simply do a try...catch kind of structure on WhitebalanceAuto?

Stefan Geissler
May 24, 2013, 13:48:10
Maybe this is a bug, the interfaces, that are used are different. Please use the VCD Properties, if possible.