IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Returns the latched state of the PTP clock.
Name |
PtpStatus |
Category |
|
Interface |
Enumeration |
Access |
Read |
Unit |
- |
Visibility |
Expert |
Values |
Initializing Faulty Disabled Listening PreMaster Master Passive Uncalibrated Slave |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
- |
Values description
•Initializing: PTP is initializing.
•Faulty: An error occurred during synchronization to master. PTP is disabled.
•Disabled: PTP is disabled.
•Listening: The camera is listening to messages from other PTP master devices.
•PreMaster: The camera is PTP pre-master device.
•Master: The camera is PTP master device.
•Passive: The camera is in PTP passive state.
•Uncalibrated: The camera is an uncalibrated PTP slave device.
•Slave: The camera is PTP slave device.
Code example
C++
// Determine the current entry of PtpStatus
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("PtpStatus")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of PtpStatus
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("PtpStatus")->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 PtpStatus
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("PtpStatus").CurrentEntry().SymbolicValue();
// Get a list of all available entries of PtpStatus
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("PtpStatus").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
# Determine the current entry of PtpStatus (str)
value = nodeMapRemoteDevice.FindNode("PtpStatus").CurrentEntry().SymbolicValue()
# Get a list of all available entries of PtpStatus
allEntries = nodeMapRemoteDevice.FindNode("PtpStatus").Entries()
availableEntries = []
for entry in allEntries:
if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
availableEntries.append(entry.SymbolicValue())