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.

Selects the access mode in which a file is opened in the camera.

Name

FileOpenMode[FileSelector]

Category

FileAccessControl

Interface

Enumeration

Access

Read/Write

Unit

-

Visibility

Guru

Values

Read

Write

Standard

SFNC

Availability uEye+

icon-gev icon-u3v

Availability uEye

icon-ui-gige icon-ui-usb2 icon-ui-usb3

Values description

Read: Read-only access mode.

Write: Write-only access mode.

Code example

C++

// Determine the current entry of FileOpenMode
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("FileOpenMode")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of FileOpenMode
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("FileOpenMode")->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);
  }
}
// Set FileOpenMode to "Write"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("FileOpenMode")->SetCurrentEntry("Write");

C#

// Determine the current entry of FileOpenMode
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("FileOpenMode").CurrentEntry().SymbolicValue();
// Get a list of all available entries of FileOpenMode
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("FileOpenMode").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());
  }
}
// Set FileOpenMode to "Write"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("FileOpenMode").SetCurrentEntry("Write");

Python

# Determine the current entry of FileOpenMode (str)
value = nodeMapRemoteDevice.FindNode("FileOpenMode").CurrentEntry().SymbolicValue()
# Get a list of all available entries of FileOpenMode
allEntries = nodeMapRemoteDevice.FindNode("FileOpenMode").Entries()
availableEntries = []
for entry in allEntries:
  if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
          and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
      availableEntries.append(entry.SymbolicValue())
 
# Set FileOpenMode to "Write" (str)
nodeMapRemoteDevice.FindNode("FileOpenMode").SetCurrentEntry("Write")

© 2024 IDS Imaging Development Systems GmbH