Hello guys,
I have a acquisition loop for take C6 range image, and during this loop I try to read the value of input 1 and input 2. I use this code to acces to the information :
bool CCameraCvbGenicamATC6::GetLineStatus(LineSelectorEnums line_selected) {
switch (line_selected)
{
case CCameraCvbGenicamAT::LineSelectorEnums::Line0_IN1:
getCvbEnumerationNode(m_node_name_for_device, "Std::LineSelector")->SetValue("Line0");
break;
case CCameraCvbGenicamAT::LineSelectorEnums::Line1_IN2:
getCvbEnumerationNode(m_node_name_for_device, "Std::LineSelector")->SetValue("Line1");
break;
case CCameraCvbGenicamAT::LineSelectorEnums::Line2_EncoderA:
getCvbEnumerationNode(m_node_name_for_device, "Std::LineSelector")->SetValue("Line2");
break;
case CCameraCvbGenicamAT::LineSelectorEnums::Line3_EncoderB:
getCvbEnumerationNode(m_node_name_for_device, "Std::LineSelector")->SetValue("Line3");
break;
case CCameraCvbGenicamAT::LineSelectorEnums::Line4_EncoderZ:
getCvbEnumerationNode(m_node_name_for_device, "Std::LineSelector")->SetValue("Line4");
break;
case CCameraCvbGenicamAT::LineSelectorEnums::Line5_OUT1:
getCvbEnumerationNode(m_node_name_for_device, "Std::LineSelector")->SetValue("Line5");
break;
case CCameraCvbGenicamAT::LineSelectorEnums::Line6_OUT2:
getCvbEnumerationNode(m_node_name_for_device, "Std::LineSelector")->SetValue("Line6");
break;
}
return getCvbBooleanNode(m_node_name_for_device, "Std::LineStatus")->Value();
}
I measure the time of this function that I call each time I get a picture, it’s seem to take a long time, too long for my application at least.
Is there a way to read those signals faster ?
Thanks,