Available Property
Gets a list of all the XJLinks connected to the system that are currently available.
Type: XJLink
Namespace: XJTAG.Integration
Syntax
public static IEnumerable<XJLink> Available { get; }
Type
- System.Collections.Generic.IEnumerable<XJLink>
Remarks
Available XJLinks are the XJLinks connected to your system that are not currently in use by any application.
Example
The returned IEnumerable represents a collection of XJLink objects that can be iterated over. In C# this may be achieved using a foreach loop. For use from other platforms, such as LabVIEW or TestStand, call the GetEnumerator() method on the IEnumerable to return an IEnumerator object. This enumerator provides the ability to iterate through the collection, with the current item exposed through the enumerator's Current property. The enumerator begins positioned before the first item in the collection; call the GetNext() method to move the enumerator forward. The method will return false when the enumerator passes the end of the collection.
// Example using a foreach loop foreach (var xjlink in XJLink.Available) { //do something with the xjlink object ... } // Example calling GetEnumerator and using the enumerator directly var enumerator = XJLink.Available.GetEnumerator(); while (enumerator.MoveNext()) { // Get the current XJLink object var xjlink = enumerator.Current; ... }
XJTAG v4.2.5
