Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
samplestream:example [2024/04/25 23:39] optrix |
samplestream:example [2024/04/25 23:50] (current) optrix |
||
---|---|---|---|
Line 3: | Line 3: | ||
{{cupcakelag.png}} | {{cupcakelag.png}} | ||
- | In this case, we're going to ask for both the **oven temperature** and **final colour** on a cupcake-making machine. These two pieces of equipment are 50m apart from one-another. We want the values synchronised with the conveyor system, compensating for the lag between the two components. | + | In this case, we're going to ask for both the **oven temperature** and **final colour** on a cupcake-making machine. These two pieces of equipment are 50m apart from one-another. |
===Example Chart=== | ===Example Chart=== | ||
Line 11: | Line 11: | ||
{{linechartbakerynormal.png}} | {{linechartbakerynormal.png}} | ||
- | Let's try and compensate for this lag in a chart. | + | If we wanted to report on cupcake quality |
===Identify Key Elements=== | ===Identify Key Elements=== | ||
Line 21: | Line 21: | ||
Next, we determine our [[end asset|end asset]]. In this case, the last asset in the system is the **Inspection Section**. | Next, we determine our [[end asset|end asset]]. In this case, the last asset in the system is the **Inspection Section**. | ||
- | Finally, we want to measure our [[distance|distances]]. | + | Finally, we want to measure our [[distance|distances]] |
===The Code=== | ===The Code=== | ||
Line 58: | Line 58: | ||
We then send a request for the last hour of data. | We then send a request for the last hour of data. | ||
- | ----- | + | ===The Results=== |
In our results, we get the following... | In our results, we get the following... | ||
Line 70: | Line 70: | ||
|6.0|62%|131.6| | |6.0|62%|131.6| | ||
- | You'll notice that you don't have a //time// index anymore in the resulting dataframe. Instead, you've got a total amount of whatever you're measuring as a //rate// or // | + | You'll notice that you don't have a //time// index anymore in the resulting dataframe. Instead, you've got a total amount of the [[source|source of lag]] seen (in this case, it's meters |
===What It Means=== | ===What It Means=== |