IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Returns the state of the PTP clock of the image included in the payload. You can use ChunkPtpStatus to check whether an image has a valid or invalid PTP timestamp.
Name |
ChunkPtpStatus |
Category |
|
Interface |
Enumeration |
Access |
Read |
Unit |
- |
Visibility |
Expert |
Values |
Initializing Faulty Disabled Listening PreMaster Master Passive Uncalibrated slave |
Standard |
IDS |
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 ChunkPtpStatus
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ChunkPtpStatus")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of ChunkPtpStatus
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ChunkPtpStatus")->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 ChunkPtpStatus
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ChunkPtpStatus").CurrentEntry().SymbolicValue();
// Get a list of all available entries of ChunkPtpStatus
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ChunkPtpStatus").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 ChunkPtpStatus (str)
value = nodeMapRemoteDevice.FindNode("ChunkPtpStatus").CurrentEntry().SymbolicValue()
# Get a list of all available entries of ChunkPtpStatus
allEntries = nodeMapRemoteDevice.FindNode("ChunkPtpStatus").Entries()
availableEntries = []
for entry in allEntries:
if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
availableEntries.append(entry.SymbolicValue())