Please enable JavaScript to view this site.

IDS peak 2.10.0 / uEye+ firmware 3.34

IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.

Returns the current status of the focus.

Name

FocusStatus[OpticControllerSelector]

Category

OpticControl

Interface

Enumeration

Access

Read

Unit

-

Visibility

Beginner

Values

NotConnected

NotInitialized

NotSupported

Busy

Ready

Error

Waiting

Standard

SFNC

Availability uEye+

icon-gev icon-u3v

Availability uEye

-

Values description

NotConnected: The focus controller is physically not connected.

NotInitialized: The focus controller is not initialized.

NotSupported: The focus controller is physically connected but not supported.

Busy: The focus controller executes a feature access/command.

Ready (default): The focus controller is ready to use.

Error: The focus controller encountered an error.

Waiting: The focus controller is waiting for scene to stabilize.

Code example

C++

// Before accessing FocusStatus, make sure OpticControllerSelector is set correctly
// Set OpticControllerSelector to "OpticController0"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("OpticControllerSelector")->SetCurrentEntry("OpticController0");
// Determine the current entry of FocusStatus
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("FocusStatus")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of FocusStatus
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("FocusStatus")->Entries();
std::vector<std::shared_ptr<peak::core::nodes::EnumerationEntryNode>> availableEntries;
for(const auto & entry : allEntries)
{
  if ((entry->AccessStatus()!=peak::core::nodes::NodeAccessStatus::NotAvailable)
          && (entry->AccessStatus()!=peak::core::nodes::NodeAccessStatus::NotImplemented))
  {
      availableEntries.emplace_back(entry);
  }
}
 

C#

// Before accessing FocusStatus, make sure OpticControllerSelector is set correctly
// Set OpticControllerSelector to "OpticController0"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("OpticControllerSelector").SetCurrentEntry("OpticController0");
// Determine the current entry of FocusStatus
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("FocusStatus").CurrentEntry().SymbolicValue();
// Get a list of all available entries of FocusStatus
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("FocusStatus").Entries();
List<string> availableEntries = new List<string>();
for(int i = 0; i < allEntries.Count(); ++i)
{
  if ((allEntries[i].AccessStatus() != peak.core.nodes.NodeAccessStatus.NotAvailable)
          && (allEntries[i].AccessStatus() != peak.core.nodes.NodeAccessStatus.NotImplemented))
  {
      availableEntries.Add(allEntries[i].SymbolicValue());
  }
}
 

Python

# Before accessing FocusStatus, make sure OpticControllerSelector is set correctly
# Set OpticControllerSelector to "OpticController0" (str)
nodeMapRemoteDevice.FindNode("OpticControllerSelector").SetCurrentEntry("OpticController0")
# Determine the current entry of FocusStatus (str)
value = nodeMapRemoteDevice.FindNode("FocusStatus").CurrentEntry().SymbolicValue()
# Get a list of all available entries of FocusStatus
allEntries = nodeMapRemoteDevice.FindNode("FocusStatus").Entries()
availableEntries = []
for entry in allEntries:
  if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
          and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
      availableEntries.append(entry.SymbolicValue())
 
 

© 2024 IDS Imaging Development Systems GmbH