Create the interface elements
Create a linear gauge, a button, and a data grid.
- Create a linear gauge:
- In theProject viewpane, right-clickMainWindow (type)and select .
- In thePropertiespane, create a dynamic link betweenValueand .For more information about dynamic links, see Create dynamic links.
- Create a data grid:
- In theProject viewpane, right-clickMainWindow (type)and select .
- In thePropertiespane, create a dynamic link between theModelvariable and .
- Set theQueryproperty value toSELECT * FROM "DataLogger1" ORDER BY "Timestamp" DESC.
- Configure data grid columns:
- In thePropertiespane, underColumns, double-clickDataGridColumn1and enterTimestampColumn.
- UnderDataItemTemplate, create a dynamic link between the columnTextproperty and .NOTA: EnterTimestampin theInsert the dynamic link sub-path...field.For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toTimestamp.
- Next toColumns, select and selectText column.
- In thePropertiespane, underColumns, double-clickDataGridColumn1and enterVariableValueColumn.
- UnderDataItemTemplate, create a dynamic link between the columnTextproperty and .NOTA: EnterVariable1in theInsert the dynamic link sub-path...field.For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toVariable value.
- Create a refresh button:
- In theProject viewpane, right-clickMainWindow (type)and select .
- In thePropertiespane, set theTextproperty value toRefresh Data.
- In theEventspane, next toMouseClick event, select and select
Fornire un feedback