Skip to content

Commit

Permalink
Update service class of Game of Life example
Browse files Browse the repository at this point in the history
  • Loading branch information
dixonjoel committed Sep 6, 2024
1 parent 5974af6 commit 8e6b367
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions examples/game_of_life/game_of_life.measui
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<SourceFile Checksum="59B0F8D4E4E35B76B4A44FCC21E13C12EB769235360724BC7255AE3DC8DCCCE33BE2860C5E46F25071450AD32E934A1D1217939E18DB6B5F8247A0F7AFE12B13" Timestamp="1DA27B7EEA92E43" xmlns="http://www.ni.com/PlatformFramework">
<SourceFile Checksum="FB00DE5760DC4C8BCA404570F539CB0045732580AB19CFD375457EAE5FD2BFFBD6504BD8E888CFA0CDD4F96C18746E292668574BBCDE0DED2C1CA9014155E2A4" Timestamp="1DB006D00129863" xmlns="http://www.ni.com/PlatformFramework">
<SourceModelFeatureSet>
<ParsableNamespace AssemblyFileVersion="9.10.0.50342" FeatureSetName="Configuration Based Software Core" Name="http://www.ni.com/ConfigurationBasedSoftware.Core" OldestCompatibleVersion="6.3.0.49152" Version="9.8.1.49152" />
<ParsableNamespace AssemblyFileVersion="9.10.0.50342" FeatureSetName="LabVIEW Controls" Name="http://www.ni.com/Controls.LabVIEW.Design" OldestCompatibleVersion="8.1.0.49152" Version="8.1.0.49152" />
<ParsableNamespace AssemblyFileVersion="23.8.0.50342" FeatureSetName="InstrumentStudio Measurement UI" Name="http://www.ni.com/InstrumentFramework/ScreenDocument" OldestCompatibleVersion="22.1.0.1" Version="22.1.0.1" />
<ParsableNamespace AssemblyFileVersion="9.10.0.50342" FeatureSetName="Editor" Name="http://www.ni.com/PanelCommon" OldestCompatibleVersion="6.1.0.0" Version="6.1.0.49152" />
<ParsableNamespace AssemblyFileVersion="9.10.0.50342" FeatureSetName="Editor" Name="http://www.ni.com/PlatformFramework" OldestCompatibleVersion="8.1.0.49152" Version="8.1.0.49152" />
<ApplicationVersionInfo Build="23.8.0.50342" Name="MeasurementLink UI Editor" Version="23.8.0.50342" />
<ParsableNamespace AssemblyFileVersion="9.14.0.2316" FeatureSetName="Configuration Based Software Core" Name="http://www.ni.com/ConfigurationBasedSoftware.Core" OldestCompatibleVersion="6.3.0.49152" Version="9.8.1.49152" />
<ParsableNamespace AssemblyFileVersion="9.14.0.2316" FeatureSetName="LabVIEW Controls" Name="http://www.ni.com/Controls.LabVIEW.Design" OldestCompatibleVersion="8.1.0.49152" Version="8.1.0.49152" />
<ParsableNamespace AssemblyFileVersion="24.8.0.2316" FeatureSetName="InstrumentStudio Measurement UI" Name="http://www.ni.com/InstrumentFramework/ScreenDocument" OldestCompatibleVersion="22.1.0.1" Version="24.8.0.0" />
<ParsableNamespace AssemblyFileVersion="9.14.0.2316" FeatureSetName="Editor" Name="http://www.ni.com/PanelCommon" OldestCompatibleVersion="6.1.0.0" Version="6.1.0.49152" />
<ParsableNamespace AssemblyFileVersion="9.14.0.2316" FeatureSetName="Editor" Name="http://www.ni.com/PlatformFramework" OldestCompatibleVersion="8.1.0.49152" Version="8.1.0.49152" />
<ApplicationVersionInfo Build="24.8.0.2316" Name="Measurement Plug-in UI Editor" Version="24.8.0.2316" />
</SourceModelFeatureSet>
<Screen ClientId="{1ba96edd-78a7-455d-81ef-5baf3f090c83}" DisplayName="Conway's Game of Life (Py)" Id="96739123b04f4da5aab63f7b09eb6655" ServiceClass="game_of_life_Python" xmlns="http://www.ni.com/InstrumentFramework/ScreenDocument">
<Screen DisplayName="Conway's Game of Life (Py)" Id="96739123b04f4da5aab63f7b09eb6655" ServiceClass="ni.examples.GameOfLife_Python" xmlns="http://www.ni.com/InstrumentFramework/ScreenDocument">
<ScreenSurface BackgroundColor="[SMSolidColorBrush]#ffffffff" Height="[float]665" Id="3fd569328bb14d969962e036a6890b5d" Left="[float]0" PanelSizeMode="Fixed" Top="[float]0" Width="[float]798" xmlns="http://www.ni.com/ConfigurationBasedSoftware.Core">
<ArrayGraph Background="[SMSolidColorBrush]#00000000" BaseName="[string]Array Graph" Height="[float]526" Id="a195c6ada9394c68b3f01238d59258e0" Label="[UIModel]43398146ddc04e6ca07ee780372f6507" Left="[float]132" MinWidth="[float]230" PlotAreaMargin="[SMThickness]41,26,20,27" PreferIndexData="[bool]False" RenderMode="[RenderMode]Hardware" SuppressScaleLayout="[bool]False" Top="[float]30" Width="[float]649">
<ArrayGraphAxis Adjuster="[RangeAdjuster]FitExactly" Id="47588ac02a284a3eb9b22b58b332203f" Label="[string]Index" LabelVisibility="[SMVisibility]Collapsed" MajorDivisions="[UIModel]66435bc7d0bc45ae828e2455ee232fea" MajorGridLines="[UIModel]7332ced07b1149fd9f0cd156f241e534" MinorTickVisibility="[SMVisibility]Collapsed" Orientation="[SMOrientation]Horizontal" Range="[IRange]-1, 101, System.Double" ValueType="[Type]Double">
Expand All @@ -30,7 +30,7 @@
<PlotRenderer AreaBaseline="[FillBaseline]Zero" BarBaseline="[FillBaseline]Zero" Id="a8ab81312dc44ba79aaa6f0bd4638311" PointFill="[SMSolidColorBrush]#ffa08bb0" PointShape="[PointShape]Rectangle" xmlns="http://www.ni.com/Controls.LabVIEW.Design" />
<PlotRenderer AreaBaseline="[FillBaseline]Zero" BarBaseline="[FillBaseline]Zero" Id="8e6d2058f5264da782653ac2e504d779" PointFill="[SMSolidColorBrush]#ff7f7f7f" PointShape="[PointShape]Diamond" xmlns="http://www.ni.com/Controls.LabVIEW.Design" />
<PlotRenderer AreaBaseline="[FillBaseline]Zero" BarBaseline="[FillBaseline]Zero" Id="31cae3c70d5a44bda76a92809b0df15c" PointFill="[SMSolidColorBrush]#ff91685c" PointShape="[PointShape]Cross" xmlns="http://www.ni.com/Controls.LabVIEW.Design" />
<HmiGraphPlot Channel="[string]{1ba96edd-78a7-455d-81ef-5baf3f090c83}/Output/game_of_life" HorizontalScale="[UIModel]47588ac02a284a3eb9b22b58b332203f" Id="d8135274d68e4040ba9e73dafcd964bc" IsDefaultPlot="[bool]False" Label="[string]game_of_life" VerticalScale="[UIModel]3723e2d0c993443693f33dfe4056930b">
<HmiGraphPlot Channel="[string]{0c4443be-04e8-4557-902d-9d6c2cc5ae36}/Output/game_of_life" HorizontalScale="[UIModel]47588ac02a284a3eb9b22b58b332203f" Id="d8135274d68e4040ba9e73dafcd964bc" IsDefaultPlot="[bool]False" Label="[string]game_of_life" VerticalScale="[UIModel]3723e2d0c993443693f33dfe4056930b">
<PlotRenderer Id="9b18f852f145411e9d6a8310e5de68e1" LineThickness="[double]1" PointFill="[SMSolidColorBrush]#ff865ea8" xmlns="http://www.ni.com/Controls.LabVIEW.Design" />
</HmiGraphPlot>
</ArrayGraph>
Expand All @@ -56,15 +56,15 @@
<Label Id="9e117b3eaf5c4d4292930d1d0b46f7b0" LabelOwner="[UIModel]a41e5c3a0f7c4bc591a110d77463aca1" Left="[float]92" Text="[string]Reset" Top="[float]-18" Visible="[bool]False" xmlns="http://www.ni.com/PanelCommon" />
</ArrayGraphTools>
<Label Height="[float]0" Id="43398146ddc04e6ca07ee780372f6507" LabelOwner="[UIModel]a195c6ada9394c68b3f01238d59258e0" Left="[float]132" Text="[string]Game Of Life" Top="[float]10" Visible="[bool]False" Width="[float]0" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{1ba96edd-78a7-455d-81ef-5baf3f090c83}/Configuration/width" Enabled="[bool]True" Height="[float]24" Id="344f9801219140729f4d1f35dfabe173" Interval="[uint]1" IsLabelBoundToChannel="[bool]False" Label="[UIModel]dff64149668d4c6cbf2b82b658961071" Left="[float]26" TabIndex="[int]0" Top="[float]45" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]UInt32" Width="[float]70" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{0c4443be-04e8-4557-902d-9d6c2cc5ae36}/Configuration/width" Enabled="[bool]True" Height="[float]24" Id="344f9801219140729f4d1f35dfabe173" Interval="[uint]1" IsLabelBoundToChannel="[bool]False" Label="[UIModel]dff64149668d4c6cbf2b82b658961071" Left="[float]26" TabIndex="[int]0" Top="[float]45" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]UInt32" Width="[float]70" />
<Label Height="[float]16" Id="dff64149668d4c6cbf2b82b658961071" LabelOwner="[UIModel]344f9801219140729f4d1f35dfabe173" Left="[float]26" Text="[string]Board width" Top="[float]25" Width="[float]64" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{1ba96edd-78a7-455d-81ef-5baf3f090c83}/Configuration/height" Enabled="[bool]True" Height="[float]24" Id="c12cc470211945d4a472f7cce056e9a5" Interval="[uint]1" IsLabelBoundToChannel="[bool]False" Label="[UIModel]a334b80dc834cd8b2a95d4d98c8b3de" Left="[float]26" TabIndex="[int]1" Top="[float]125" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]UInt32" Width="[float]70" />
<Label Height="[float]16" Id="a334b80dc834cd8b2a95d4d98c8b3de" LabelOwner="[UIModel]c12cc470211945d4a472f7cce056e9a5" Left="[float]26" Text="[string]Board height" Top="[float]105" Width="[float]68" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{1ba96edd-78a7-455d-81ef-5baf3f090c83}/Output/generation" Height="[float]24" Id="4a187afaf81c47988b80730a9548b9e0" Interval="[uint]1" IsLabelBoundToChannel="[bool]False" IsReadOnly="[bool]True" Label="[UIModel]7a7ff144ff3f42d793d356c838475d25" Left="[float]26" TabIndex="[int]2" Top="[float]365" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]UInt32" Width="[float]70" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{0c4443be-04e8-4557-902d-9d6c2cc5ae36}/Configuration/height" Enabled="[bool]True" Height="[float]24" Id="c12cc470211945d4a472f7cce056e9a5" Interval="[uint]1" IsLabelBoundToChannel="[bool]False" Label="[UIModel]a334b80dc834cd8b2a95d4d98c8b3de" Left="[float]26" TabIndex="[int]1" Top="[float]125" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]UInt32" Width="[float]70" />
<Label Height="[float]16" Id="a334b80dc834cd8b2a95d4d98c8b3de" LabelOwner="[UIModel]c12cc470211945d4a472f7cce056e9a5" Left="[float]26" Text="[string]Board height" Top="[float]105" Width="[float]70" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{0c4443be-04e8-4557-902d-9d6c2cc5ae36}/Output/generation" Height="[float]24" Id="4a187afaf81c47988b80730a9548b9e0" Interval="[uint]1" IsLabelBoundToChannel="[bool]False" IsReadOnly="[bool]True" Label="[UIModel]7a7ff144ff3f42d793d356c838475d25" Left="[float]26" TabIndex="[int]2" Top="[float]365" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]UInt32" Width="[float]70" />
<Label Height="[float]16" Id="7a7ff144ff3f42d793d356c838475d25" LabelOwner="[UIModel]4a187afaf81c47988b80730a9548b9e0" Left="[float]26" Text="[string]Generation" Top="[float]345" Width="[float]59" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{1ba96edd-78a7-455d-81ef-5baf3f090c83}/Configuration/update_interval_msec" Enabled="[bool]True" Height="[float]24" Id="be0c33f0b3564f8ab236406ed28f13e6" Interval="[uint]1" IsLabelBoundToChannel="[bool]False" Label="[UIModel]46d4ea54705544d29860eef507add0c7" Left="[float]26" TabIndex="[int]3" Top="[float]205" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]UInt32" Width="[float]70" />
<Label Height="[float]16" Id="46d4ea54705544d29860eef507add0c7" LabelOwner="[UIModel]be0c33f0b3564f8ab236406ed28f13e6" Left="[float]26" Text="[string]Update interval (ms)" Top="[float]185" Width="[float]107" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{1ba96edd-78a7-455d-81ef-5baf3f090c83}/Configuration/max_generations" Enabled="[bool]True" Height="[float]24" Id="868c277df4bf43f786a929cc24354224" Interval="[int]1" IsLabelBoundToChannel="[bool]False" Label="[UIModel]9669d738649e4e02914cbc21c49b4aa8" Left="[float]26" TabIndex="[int]4" Top="[float]285" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]Int32" Width="[float]70" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{0c4443be-04e8-4557-902d-9d6c2cc5ae36}/Configuration/update_interval_msec" Enabled="[bool]True" Height="[float]24" Id="be0c33f0b3564f8ab236406ed28f13e6" Interval="[uint]1" IsLabelBoundToChannel="[bool]False" Label="[UIModel]46d4ea54705544d29860eef507add0c7" Left="[float]26" TabIndex="[int]3" Top="[float]205" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]UInt32" Width="[float]70" />
<Label Height="[float]16" Id="46d4ea54705544d29860eef507add0c7" LabelOwner="[UIModel]be0c33f0b3564f8ab236406ed28f13e6" Left="[float]26" Text="[string]Update interval (ms)" Top="[float]185" Width="[float]108" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{0c4443be-04e8-4557-902d-9d6c2cc5ae36}/Configuration/max_generations" Enabled="[bool]True" Height="[float]24" Id="868c277df4bf43f786a929cc24354224" Interval="[int]1" IsLabelBoundToChannel="[bool]False" Label="[UIModel]9669d738649e4e02914cbc21c49b4aa8" Left="[float]26" TabIndex="[int]4" Top="[float]285" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=0:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]Int32" Width="[float]70" />
<Label Height="[float]16" Id="9669d738649e4e02914cbc21c49b4aa8" LabelOwner="[UIModel]868c277df4bf43f786a929cc24354224" Left="[float]26" Text="[string]Max generations" Top="[float]265" Width="[float]88" xmlns="http://www.ni.com/PanelCommon" />
</ScreenSurface>
</Screen>
Expand Down
2 changes: 1 addition & 1 deletion examples/game_of_life/game_of_life.serviceconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"services": [
{
"displayName": "Conway's Game of Life (Py)",
"serviceClass": "game_of_life_Python",
"serviceClass": "ni.examples.GameOfLife_Python",
"descriptionUrl": "",
"providedInterfaces": [
"ni.measurementlink.measurement.v2.MeasurementService"
Expand Down

0 comments on commit 8e6b367

Please sign in to comment.