Skip to content
wsobel edited this page Apr 4, 2013 · 11 revisions

Adapter Lab Instructions

Prerequisites:

  • Computer: Windows - the oldest OS we support is XP Circa 2002 with at least SP 2, Vista and 7 are fine.
  • Visual Studio 2010 or later, Can be Express. We will only need C#, no other languages are required.
  • .NET 4.0 or later.
  • Some programming experience is helpful. C# is best.

Downloads:

What’s in the box:

  • We have provided the complete project at each step, so if you get lost or stuck, you can always open up the next step and catch up.
  • There's a preconfigured MTConnect agent to test the adapter you will be writing
  • We also provided a small adapter client app (dump.exe) that simple writes the data out to stdout. The default telnet that comes with Windows (not 7) does not format as so the output looks ugly.

The following topics will be covered:

  • Creating a simple adapter with a couple of events.
  • Creating both a polling and event based samples (one that calls an API and one that receives change events).
  • Conversion of data from some external representation to MTConnect.
  • Adding conditions when they are in a fault or warning state.
  • Activation of multiple conditions and demonstration of the two ways to handle conditions depending on the controller API.
  • Creating an Asset (CuttingTool) and sending it to the agent. We can also update the cutting tool as well.
  • Creating a real-time audio sensor (assuming you computer has a mic) and creating 1khz time series streaming data.
Clone this wiki locally