View Full Version : Trigger Polarity
June 13, 2006, 15:37:32
I would like to configure the trigger polarity manually.
I have configure the Exposure as followed, but i donĀ“t now how to configure the trigger polarity. I have try to configure the polarity in the same way, but it donĀ“t work. Can you help me ?
IĀ“m using the "IC Imaging Control 2.1" with "DFx 21BF04".
m_VCDProp.init( pGrabber->getAvailableVCDProperties() );
m_VCDProp1.setValue( DShowLib::VCDID_Exposure, value);
June 13, 2006, 16:09:47
The polarity can be handled in the same way like exposure. The definition of the Guid is in the file "VCDPropertyIdTIS.h". The property ID is:
m_VCDProp1.setValue( DShowLib::VCDElement_TriggerPolarity, 0);
m_VCDProp1.setValue( DShowLib::VCDElement_TriggerPolarity, 1);
June 13, 2006, 19:00:30
The trigger continuos to not work has expected. I have 2 fires, one on rising edge and other
on falling edge. I just want one fire on rising edge.
I have the follwing code:
m_VCDProp.setValue( DShowLib::VCDElement_TriggerPolarity, 0); //or 1
m_VCDProp.setValue(DShowLib::VCDElement_TriggerMod e , 0 );
I have tested the example "DemoApp" and the trigger works has I expected (just 1 fire) when
I check the fields "trigger Enable" and "Polarity" at Devices properties Dialog. If I uncheck
the polarity, I have 2 fires.
It seems that my problem is the polarity.
What kind of property is configure when I check/Uncheck the "Polarity" field at Properties Dialog ?
What I'm forgetting or doing wrong ?
June 15, 2006, 10:35:36
Please excuse me, i gave the wrong hint in my last post. First of all, it seems, that the trigger polarity can not be set with the SimplePropertyaccess class, because there is a GUID missing. Thus you can insert following code in your program to set the trigger polarity:
void SetPolarity(DShowLib::Grabber *pGrabber, bool bPositive)
tIVCDPropertyItemsPtr pItems = pGrabber->getAvailableVCDProperties();
if( pItems != 0 )
tIVCDPropertyItemPtr pTriggerItem = pItems->findItem( VCDID_TriggerMode );
if( pTriggerItem != NULL)
tIVCDPropertyElementPtr pPolarityValueElement = pTriggerItem->findElement( VCDElement_TriggerPolarity );
if( pPolarityValueElement != NULL )
If the parameter "bPositive" is true, then the camera reacts on a rising edge. If it is false, the camera reacts on the falling edge.
June 16, 2006, 19:52:20
now it works.
I have another question:
I have tested the example "DemoApp" from "IC Imaging Control 2.0/2.1/3.0" and I
have verify that if the "trigger" and "polarity" is checked at "Devices properties Dialog"
on version 2.0 and 2.1 the first fire of the trigger donāt show any image. But at version
3.0 the first fire is not lost, and works fine.
Why this happen?
What configuration should I do to get the first fire of the trigger on version 2.1 ?
June 28, 2006, 16:14:06
Please excuse the long delay of my answer, but the problem was hard to catch. The lost first trigger is caused in the current firmware version of the camera. It occurs, if the external is enabled before the camera has delivered an image. You may work around this problem, if you start and stop the camera just after you have opened it and before you enable the trigger. After this you enable the trigger and start the camera again.
You may send a request to email@example.com. I will send you a firmware update as soon as it is available. The firmwareupdate software runs only with Windows XP.
Powered by vBulletin® Version 4.2.3 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.