I have a strange problem: (the aquisition of) my specim 17e camera crashes when I execute the following code. This is always the case, regardless of the setTrigger argument.
auto setTrigger(bool enable_trigger) const
{
// the order of operations is important, triggerselector should be the first command!
// https://docs.chromasens.de/docs/set-a-frame-trigger
nodes->Node<Cvb::EnumerationNode>(CVB_LIT("TriggerSelector"))->SetValue(CVB_LIT("FrameBurstStart"));
nodes->Node<Cvb::EnumerationNode>(CVB_LIT("TriggerMode"))->SetValue(CVB_LIT("On"));
if (enable_trigger)
nodes->Node<Cvb::EnumerationNode>(CVB_LIT("TriggerSource"))->SetValue(CVB_LIT("Line0"));
else
nodes->Node<Cvb::EnumerationNode>(CVB_LIT("TriggerSource"))->SetValue(CVB_LIT("SoftwareSignal0"));
nodes->Node<Cvb::EnumerationNode>(CVB_LIT("TriggerActivation"))->SetValue(CVB_LIT("RisingEdge"));
nodes->Node<Cvb::FloatNode>(CVB_LIT("TriggerDelay"))->SetValue(0);
if (enable_trigger)
return nodes->Node<Cvb::EnumerationNode>(CVB_LIT("TriggerSource"))->Value() == CVB_LIT("Line0");
else
return nodes->Node<Cvb::EnumerationNode>(CVB_LIT("TriggerSource"))->Value() == CVB_LIT("SoftwareSignal0");
}
Altough the camera (seems to) accept these settings - the procedure returns the correct true or false - result, the GeniCamBrowser reveals that the camera aquisition is crashed:
The Specim camera specifically crashes on the nodes->Node<Cvb::EnumerationNode>(CVB_LIT("TriggerSelector"))->SetValue(CVB_LIT("FrameBurstStart"));
statement.
What could be the cause of this problem? - could it be that ‘FrameBurstStart’ is wrongly set, or that the order of setting operations is incorrect?
Iwein