IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Returns the current electrical format of the selected physical input or output line.
Name |
LineFormat[LineSelector] |
Category |
|
Interface |
Enumeration |
Access |
Read |
Unit |
- |
Visibility |
Expert |
Values |
TriState OptoCoupled LVTTL |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
- |
Values description
•TriState: The line is currently in Tri-State mode (not driven).
•OptoCoupled: The line is galvanically isolated using an optocoupler to protect the camera and the PC against surges. Only DC voltages may be applied to the physical lines or pins.
•LVTTL: The line is currently accepting or sending LVTTL level signals.
Code example
C++
// Before accessing LineFormat, make sure LineSelector is set correctly
// Set LineSelector to "Line0"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("LineSelector")->SetCurrentEntry("Line0");
// Determine the current entry of LineFormat
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("LineFormat")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of LineFormat
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("LineFormat")->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 LineFormat, make sure LineSelector is set correctly
// Set LineSelector to "Line0"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("LineSelector").SetCurrentEntry("Line0");
// Determine the current entry of LineFormat
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("LineFormat").CurrentEntry().SymbolicValue();
// Get a list of all available entries of LineFormat
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("LineFormat").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 LineFormat, make sure LineSelector is set correctly
# Set LineSelector to "Line0" (str)
nodeMapRemoteDevice.FindNode("LineSelector").SetCurrentEntry("Line0")
# Determine the current entry of LineFormat (str)
value = nodeMapRemoteDevice.FindNode("LineFormat").CurrentEntry().SymbolicValue()
# Get a list of all available entries of LineFormat
allEntries = nodeMapRemoteDevice.FindNode("LineFormat").Entries()
availableEntries = []
for entry in allEntries:
if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
availableEntries.append(entry.SymbolicValue())