XJLink Class

Represents a single XJLink device attached to the system.

Namespace: XJTAG.Integration

Syntax

public class XJLink : IDisposable

Remarks

An XJLink instance is obtained from either the Available property or GetXJLink methods. The instance is then passed to GetRunner to obtain an instance of Runner with which tests can be run, or to GetChainRunner to obtain an instance of ChainRunner from which the JTAG chain can be controlled directly.

The XJLink remains open and unusable by other applications until the instance is disposed. Disposing the Runner object will leave the XJLink connection pins at high-impedance. The XJLink will be available for use again within the XJIntegration, but will be unavailable to other applications until this XJLink object is disposed, or Close is called.

using (XJLink xjlink = XJLink.GetXJLink())
{
    // Use xjlink here
}

Inheritance Hierarchy

  • object
  • IDisposable

Members

Properties

Name Description
Available

Gets a list of all the XJLinks connected to the system that are currently available.

Connected

Gets a value indicating whether this XJLink is connected to the system.

SelfTestOutput

The full text output from the last XJLink2 Self Test run.

SelfTestPassed

Gets a value indicating whether the last XJLink2 test passed or failed.

SerialNumber

Gets the serial number of the XJLink.

Events

Name Description
ButtonPressed

Occurs when the button on an XJLink2 has been pressed.

HardwareError

Occurs if there was an error accessing the hardware on the thread that handles the asynchronous hardware access.

InstanceUnplugged

Occurs when the XJLink represented by the current instance is unplugged.

PluggedIn

Occurs when and XJLink is attached to the system.

SelfTestOutputGenerated

Occurs when testing on the XJLink2 hardware generates text output. This event is fired from an arbitrary thread.

TestFinished

Occurs when testing on the XJLink2 hardware has finished. This event is fired from an arbitrary thread.

Unplugged

Occurs when an XJLink is unplugged from the system.

Methods

Name Description
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(bool)

Releases unmanaged and - optionally - managed resources

Equals(object) (from object)
Finalize (from object)
GetHashCode (from object)
GetType (from object)
GetXJLink()

Gets an XJLink instance for the first available XJLink on the machine.

GetXJLink(uint)

Gets an XJLink instance for the XJLink with the specified serial number. Returns null if there are no XJLinks available with that serial number.

MemberwiseClone (from object)
StartTest(bool)

Starts testing the XJLink hardware associated with this instance asynchronously. To receive events containing output from tests, handle the SelfTestOutputGenerated event; when tests have complete, the full output is available through the SelfTestOutput property.

StartTest(XJLinkSelfTestCollection)

Starts testing the XJLink hardware associated with this instance asynchronously. Runs the tests in the test collection for which the ToRun property is true. To receive events containing output from tests, handle the SelfTestOutputGenerated event; when tests have complete, the full output is available through the SelfTestOutput property.

StartTest(bool, XjtagOutputBox)

Starts testing the XJLink hardware associated with this instance asynchronously. Output from the tests will be displayed on the specified XjtagOutputBox. To receive events containing output from tests, handle the SelfTestOutputGenerated event; when tests have complete, the full output is available through the SelfTestOutput property.

StartTest(XJLinkSelfTestCollection, XjtagOutputBox)

Starts testing the XJLink hardware associated with this instance asynchronously. Runs the tests in the test collection for which the ToRun property is true. Output from the tests will be displayed on the specified XjtagOutputBox. To receive events containing output from tests, handle the SelfTestOutputGenerated event; when tests have complete, the full output is available through the SelfTestOutput property.

StopTest

Stops the XJLink test being run.

Test(bool)

Tests the XJLink hardware associated with this instance for any faults.

Test(XJLinkSelfTestCollection)

Tests the XJLink hardware associated with this instance for any faults. Runs the tests in the test collection for which the ToRun property is true.

ToString (from object)