IDS Peak comfortSDK, genericSDK, AFL, ICL, and IPL developer manuals are external documents.
Please contact us if you need these manuals.
Returns the current status of the file selected by FileSelector.
Name |
FileOpenStatus[FileSelector] |
Category |
|
Interface |
Enumeration |
Access |
Read |
Unit |
- |
Visibility |
Guru |
Values |
Close OpenRead OpenWrite |
Standard |
IDS |
Availability uEye+ |
|
Availability uEye |
|
Values description
•Close: The file is closed.
•OpenRead: The file is open with read-only access.
•OpenWrite: The file is open with write-only access.
Code example
C++
// Determine the current entry of FileOpenStatus
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("FileOpenStatus")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of FileOpenStatus
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("FileOpenStatus")->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#
// Determine the current entry of FileOpenStatus
string value = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("FileOpenStatus").CurrentEntry().SymbolicValue();
// Get a list of all available entries of FileOpenStatus
allEntries = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("FileOpenStatus").Entries();
List<string> availableEntries = new List<string>();
for(int i = 0; i < allEntries.Count(); ++i)
{
if ((allEntries[i].AccessStatus() != IDSImaging.Peak.API.Core.Nodes.NodeAccessStatus.NotAvailable)
&& (allEntries[i].AccessStatus() != IDSImaging.Peak.API.Core.Nodes.NodeAccessStatus.NotImplemented))
{
availableEntries.Add(allEntries[i].SymbolicValue());
}
}
Python
# Determine the current entry of FileOpenStatus (str)
value = nodeMapRemoteDevice.FindNode("FileOpenStatus").CurrentEntry().SymbolicValue()
# Get a list of all available entries of FileOpenStatus
allEntries = nodeMapRemoteDevice.FindNode("FileOpenStatus").Entries()
availableEntries = []
for entry in allEntries:
if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
availableEntries.append(entry.SymbolicValue())