We are troubleshooting an issue impacting community login, and it may be intermittently unavailable. Sorry for any inconvenience.
The SMT Assembly Line Data Model was built around a sample manufacturing facility that tracks critical data points, including diagnostic information for:
To make informed decisions based on the diagnostic and performance data, you can add features that will increase analytics capabilities.
In this optional step, we'll add a Line Chart to see the performance of any given assembly machine. Once completed, we can create Services that will be used to make calculations on the data we have generated from the assembly line.
For a final challenge, you can create a service that will compare data points to identify what works best in an assembly machine, a larger internal queue, or more placement heads.
On the Select Binding Target pop-up, select Data.
Select the GetImplementingThingsWithData service, then drag-and-drop the SelectedRowChanged event onto QueryPropertyHistory.
You are now able to see what the idle time is for each assemble machine over the span of its use.
You can add JavaScript code to calculate the average completion time for the motherboard assembly.
var diff = 1; if(me.EndTime != null && me.StartTime != null){ diff = Math.abs(me.EndTime - me.StartTime); } //Seconds var result = Math.round(diff/1000); //Minutes //var result = Math.round((diff/1000)/60);
You can now calculate the time it takes for an individual motherboard to be completed. Create a service to be used with the GetCompletedMotherboards service (returns a list of all completed Raspberry Pi motherboards) with the SMTAssemblyLineTemplate ThingTemplate to calculate the average time for your assembly line to complete a motherboard. Finish this Service and add configure it to work with your new Mashup.
Congratulations! You've successfully completed the ThingWorx Monitor an SMT Assembly Line Guide, learning how to use ThingWorx to create an application that provides real-time insight into connected assets.
We recommend the following resources to continue your learning experience:
Capability Guide
Build | Design Your Data Model |
Build | Implement Services, Events, and Subscriptions |
Connect | Java SDK Tutorial |
If you have questions, issues, or need additional information, refer to:
Resource Link
Community | Developer Community Forum |
Support | Java Edge SDK Help Center |