Step 5: Log to Value Stream
Now that you have explored the Properties of IndConn_Tag1, you’ve seen how ThingWorx Kepware Server feeds information to ThingWorx Foundation. To get an even better indication of changes and confirm continued connectivity, we will log the changes to a Value Stream in order to record the values with a TimeStamp.
Create Value Stream
- Return to the ThingWorx Foundation New Composer browser.
- Click Browse.
- Click Data Storage -> Value Streams.

- Click + New.

- In the Choose Template pop-up, select ValueStream.
- Click OK.
- Type IndConn_ValueStream in the Name field.
- If Project is not already set, click the + in the Project text box and select the PTCDefaultProject.
- In the Description field, enter an appropriate description, such as Value Stream to record changes from ThingWorx Kepware Server.

- Click Save.
Bind Value Stream
- Open the IndConn_Tag1 either by clicking on the tab at the top, or by clicking on PTCDefaultProject on the left
- At the top, select General Information.
- In the Value Stream field, enter indconn.

- Select IndConn_ValueStream from the sorted list.
- At the top, select Properties and Alerts.

- Click Simulation_Examples_Functions_Random3.
- A new set of options will expand from the right.
- Check the box for Persistent.
- Check the box for Logged.

- Click the Check button to close the expanded options.
- Click Save.
All changes to the Random3 Tag, fed from ThingWorx Kepware Server, are now stored and TimeStamped in the Simulation_Examples_Functions_Random3 Property.
Step 6: Visualize the Data
We'll now create a Mashup to visualize the record of information from ThingWorx Kepware Server.
- In ThingWorx Foundation's Browse, click Visualization -> Mashups.
- Click +New.

- In the New Mashup pop-up, leave the default selections.

- Click OK.
- In the Name field, enter IndConn_Mashup.
- If Project is not already set, click the + in the Project text box and select the PTCDefaultProject.
- At the top, click Save.
- At the top, click Design.
- In the Filter Widgets field at the top-left, enter chart.
- Drag-and-drop a Line Chart onto the central canvas area.

Add Data
- On the right-side of the Mashup Builder, click the Data tab.
- Click the + button on the Data tab.

3. In the Add Data pop-up, enter indconn in the Entity field, overwriting Filter.
4. Select IndConn_Tag1 from the sorted list.
5. In the Filter field below Services, enter queryprop.
6. Click the right arrow button beside QueryPropertyHistory. The QueryPropertyHistory Service of the IndConn_Tag1 Thing will appear on the right in the Selected Services field.
7. Check the box under Execute on Load in the Selected Services field.'

8. Click Done.
Note that the QueryPropertyHistory Service now appears on the right side Data tab.
9. Click the arrow to expand QueryPropertyHistory, then click to expand Returned Data.
10. Drag-and-drop All Data from the QueryPropertyHistory Service from the right onto the Time Series Chart in the center.

11. In the Select Binding Target pop-up, select Data.
Configure Chart Properties
- In the bottom-left Properties of timeserieschart-1, enter xaxisfield in the Filter Properties field.
- Expand the drop-down for XAxisField.

- Select timestamp.
- Click Save.
- Click View Mashup. (You may have to enable pop-ups to view the mashup.)

The IndConn_Mashup will show you the recorded history of property changes that came from ThingWorx Kepware Server.
NOTE: If the Mashup visualization is blank, confirm your connection to IndConn. Return to the Test Connection section of the Bind Industrial Tag step.
Step 7: Next Steps
Congratulations! You've successfully completed the Connect Kepware Server to ThingWorx Foundation guide. You've learned how to:
- Connect ThingWorx Foundation to ThingWorx Kepware Server
- Map Tags to Properties
The next guide in the Connect and Monitor Industrial Plant Equipment learning path is Create Industrial Equipment Model.