Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing measured value indicator to use significant digits instead of digits of precision #420

Merged
merged 5 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions examples/nidmm_measurement/NIDmmMeasurement.measui
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<SourceFile Checksum="B38FBF1CAD038ED77B92D7A27D7F05B96324A8514B70829FA392480669A7E334E4C079659475107304313BA2BAF76DA7D3D2C5CDEC1DFFB2F1CCB8B6F47B4770" Timestamp="1D9AA9B03FF06E8" xmlns="http://www.ni.com/PlatformFramework">
<SourceFile Checksum="5F497C8D817BD8D9B234A31CC0F19340165F7BD82894EDC6EBFF5AA093070E48F5C451B57321EE41181F5FF3853EB9F65DDC103F5C404E8718DA78D734A88259" Timestamp="1D9F0BBEFB62892" xmlns="http://www.ni.com/PlatformFramework">
<SourceModelFeatureSet>
<ParsableNamespace AssemblyFileVersion="9.9.0.49805" 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.9.0.49805" FeatureSetName="LabVIEW Controls" Name="http://www.ni.com/Controls.LabVIEW.Design" OldestCompatibleVersion="8.1.0.49152" Version="8.1.0.49152" />
<ParsableNamespace AssemblyFileVersion="23.5.0.49805" FeatureSetName="InstrumentStudio Measurement UI" Name="http://www.ni.com/InstrumentFramework/ScreenDocument" OldestCompatibleVersion="22.1.0.1" Version="22.1.0.1" />
<ParsableNamespace AssemblyFileVersion="9.9.0.49805" FeatureSetName="Editor" Name="http://www.ni.com/PanelCommon" OldestCompatibleVersion="6.1.0.0" Version="6.1.0.49152" />
<ParsableNamespace AssemblyFileVersion="9.9.0.49805" FeatureSetName="Editor" Name="http://www.ni.com/PlatformFramework" OldestCompatibleVersion="8.1.0.49152" Version="8.1.0.49152" />
<ApplicationVersionInfo Build="23.5.0.49805" Name="MeasurementLink UI Editor" Version="23.5.0.49805" />
<ParsableNamespace AssemblyFileVersion="9.9.0.50025" 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.9.0.50025" FeatureSetName="LabVIEW Controls" Name="http://www.ni.com/Controls.LabVIEW.Design" OldestCompatibleVersion="8.1.0.49152" Version="8.1.0.49152" />
<ParsableNamespace AssemblyFileVersion="23.5.0.50025" FeatureSetName="InstrumentStudio Measurement UI" Name="http://www.ni.com/InstrumentFramework/ScreenDocument" OldestCompatibleVersion="22.1.0.1" Version="22.1.0.1" />
<ParsableNamespace AssemblyFileVersion="9.9.0.50025" FeatureSetName="Editor" Name="http://www.ni.com/PanelCommon" OldestCompatibleVersion="6.1.0.0" Version="6.1.0.49152" />
<ParsableNamespace AssemblyFileVersion="9.9.0.50025" FeatureSetName="Editor" Name="http://www.ni.com/PlatformFramework" OldestCompatibleVersion="8.1.0.49152" Version="8.1.0.49152" />
<ApplicationVersionInfo Build="23.5.0.50026" Name="MeasurementLink UI Editor" Version="23.5.0.50026" />
</SourceModelFeatureSet>
<Screen ClientId="{26c56ad8-e31a-456d-979e-87865b3f5c61}" DisplayName="NI-DMM Measurement (Py)" Id="f4480b18b95d49bfbefdf2b9d4958707" ServiceClass="ni.examples.NIDmmMeasurement_Python" xmlns="http://www.ni.com/InstrumentFramework/ScreenDocument">
<ScreenSurface BackgroundColor="[SMSolidColorBrush]#ffffffff" Height="[float]310" Id="d5c4d136f87c4189a41619217b0d4f32" Left="[float]0" PanelSizeMode="Fixed" Top="[float]0" Width="[float]410" xmlns="http://www.ni.com/ConfigurationBasedSoftware.Core">
<ScreenSurface BackgroundColor="[SMSolidColorBrush]#ffffffff" Height="[float]310" Id="d5c4d136f87c4189a41619217b0d4f32" Left="[float]0" PanelSizeMode="Fixed" Top="[float]0" Width="[float]440" xmlns="http://www.ni.com/ConfigurationBasedSoftware.Core">
<ScreenSurfaceCanvas Background="[SMSolidColorBrush]#80808080" BaseName="[string]Canvas" Height="[float]143" Id="299e88201b64436290271ab48c3f88c1" Label="[UIModel]8a81dfd7bc5c46228026d1c21aa98288" Left="[float]23" Top="[float]140" Width="[float]127">
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Configuration/range" Enabled="[bool]True" Height="[float]24" Id="3425530122134004b914e5caafe7fa5c" IsLabelBoundToChannel="[bool]False" Label="[UIModel]c24c5007263c45aaab35919b80ade906" Left="[float]15" RadixBase="[RadixBase]0" RadixVisibility="[SMVisibility]Collapsed" Top="[float]36" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=SystemInternational:Digits=2:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]Double" Width="[float]70" />
<Label Height="[float]16" Id="c24c5007263c45aaab35919b80ade906" LabelOwner="[UIModel]3425530122134004b914e5caafe7fa5c" Left="[float]15" Text="[string]Range" Top="[float]16" Width="[float]33" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Configuration/resolution_digits" Enabled="[bool]True" Height="[float]24" Id="b2e53e13b3334da8bed886c6b444f06d" IsLabelBoundToChannel="[bool]False" Label="[UIModel]7bf60aff2b8a4acabc48c6f4fbcbfcca" Left="[float]15" Top="[float]96" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=1:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]Double" Width="[float]70" />
<Label Height="[float]16" Id="7bf60aff2b8a4acabc48c6f4fbcbfcca" LabelOwner="[UIModel]b2e53e13b3334da8bed886c6b444f06d" Left="[float]15" Text="[string]Resolution (digits)" Top="[float]76" Width="[float]95" xmlns="http://www.ni.com/PanelCommon" />
</ScreenSurfaceCanvas>
<Label Height="[float]16" Id="8a81dfd7bc5c46228026d1c21aa98288" LabelOwner="[UIModel]299e88201b64436290271ab48c3f88c1" Left="[float]23" Text="[string]Configuration" Top="[float]120" Width="[float]73" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Output/measured_value" Height="[float]51" Id="b8c14ae283ec4bf8ad8a037705e08afc" IsLabelBoundToChannel="[bool]False" IsReadOnly="[bool]True" Label="[UIModel]71a08f4917d143caa1a9edb08cfff3c8" Left="[float]195" MinHeight="[float]51" Top="[float]30" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=6:DigitDisplayType=DigitsOfPrecision:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]Double" Width="[float]185">
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Output/measured_value" Height="[float]51" Id="b8c14ae283ec4bf8ad8a037705e08afc" IsLabelBoundToChannel="[bool]False" IsReadOnly="[bool]True" Label="[UIModel]71a08f4917d143caa1a9edb08cfff3c8" Left="[float]195" MinHeight="[float]51" Top="[float]30" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=Automatic:Digits=7:DigitDisplayType=SignificantDigits:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]Double" Width="[float]220">
<FontSetting FontFamily="Segoe UI" FontSize="24" Id="142973a4882412f8a4bf0df63295bf1" xmlns="http://www.ni.com/PlatformFramework" />
</ChannelNumericText>
<Label Height="[float]16" Id="71a08f4917d143caa1a9edb08cfff3c8" LabelOwner="[UIModel]b8c14ae283ec4bf8ad8a037705e08afc" Left="[float]195" Text="[string]Measured value" Top="[float]10" Width="[float]84" xmlns="http://www.ni.com/PanelCommon" />
<ChannelLED BaseName="[string]Round LED" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Output/signal_out_of_range" ContentVisibility="[Visibility]Collapsed" FalseBackground="[SMSolidColorBrush]#ff007133" FalseContent="[string]Off" Height="[float]30" Id="f2df98d24370483dbd8dcef44305f465" IsLabelBoundToChannel="[bool]False" IsReadOnly="[bool]True" Label="[UIModel]9dd1018fef5443e588ca62789b6050fa" Left="[float]195" MinHeight="[float]20" MinWidth="[float]20" Shape="[LEDShape]Round" Top="[float]115" TrueBackground="[SMSolidColorBrush]#ff83ca9d" TrueContent="[string]On" Width="[float]30" />
<Label Height="[float]16" Id="9dd1018fef5443e588ca62789b6050fa" LabelOwner="[UIModel]f2df98d24370483dbd8dcef44305f465" Left="[float]195" Text="[string]Signal out of range" Top="[float]95" Width="[float]101" xmlns="http://www.ni.com/PanelCommon" />
<ChannelNumericText AdaptsToType="[bool]True" BaseName="[string]Numeric" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Output/absolute_resolution" Height="[float]24" Id="6b2cada7604e4852977da8ff18c273e1" IsLabelBoundToChannel="[bool]False" IsReadOnly="[bool]True" Label="[UIModel]60d7911814ad44b890fb464cbbd80e5d" Left="[float]195" RadixBase="[RadixBase]0" RadixVisibility="[SMVisibility]Collapsed" Top="[float]183" UnitAnnotation="[string]" ValueFormatter="[string]DisplayFormat=SystemInternational:Digits=3:DigitDisplayType=SignificantDigits:MinimumFieldWidth=0:AlwaysShowSign=False:ShowThousandsSeparator=False" ValueType="[Type]Double" Width="[float]70" />
<Label Height="[float]16" Id="60d7911814ad44b890fb464cbbd80e5d" LabelOwner="[UIModel]6b2cada7604e4852977da8ff18c273e1" Left="[float]195" Text="[string]Absolute resolution" Top="[float]163" Width="[float]103" xmlns="http://www.ni.com/PanelCommon" />
<ChannelPinSelector AllowUndefinedValues="[bool]True" BaseName="[string]Pin" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Configuration/pin_name" DataType="[Type]String" Height="[float]24" Id="f7b79f2403f9467782561c9c75a54604" IsLabelBoundToChannel="[bool]False" Label="[UIModel]9905796649f44175a56f9eb34178d24e" Left="[float]23" SelectedResource="[NI_Core_DataValues_TagRefnum]Pin1" Top="[float]30" Width="[float]127" xmlns="http://www.ni.com/InstrumentFramework/ScreenDocument" />
<ChannelPinSelector AllowUndefinedValues="[bool]True" BaseName="[string]Pin" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Configuration/pin_name" DataType="[Type]String" Enabled="[bool]True" Height="[float]24" Id="f7b79f2403f9467782561c9c75a54604" IsLabelBoundToChannel="[bool]False" Label="[UIModel]9905796649f44175a56f9eb34178d24e" Left="[float]23" SelectedResource="[NI_Core_DataValues_TagRefnum]Pin1" Top="[float]30" Width="[float]127" xmlns="http://www.ni.com/InstrumentFramework/ScreenDocument" />
<Label Height="[float]16" Id="9905796649f44175a56f9eb34178d24e" LabelOwner="[UIModel]f7b79f2403f9467782561c9c75a54604" Left="[float]23" Text="[string]Pin name" Top="[float]10" Width="[float]49" xmlns="http://www.ni.com/PanelCommon" />
<ChannelEnumSelector AdaptsToType="[bool]True" AllowNonSequentialValues="[bool]True" BaseName="[string]Enum" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Configuration/measurement_type" Height="[float]24" Id="b97cd7939a794245b11a90b37c297997" IsLabelBoundToChannel="[bool]False" Label="[UIModel]d1f28964d0af4b10835729f4ec94466e" Left="[float]23" Top="[float]83" Value="[int]101" Width="[float]127" xmlns="http://www.ni.com/InstrumentFramework/ScreenDocument">
<ChannelEnumSelector AdaptsToType="[bool]True" AllowNonSequentialValues="[bool]True" BaseName="[string]Enum" Channel="[string]{26c56ad8-e31a-456d-979e-87865b3f5c61}/Configuration/measurement_type" Enabled="[bool]True" Height="[float]24" Id="b97cd7939a794245b11a90b37c297997" IsLabelBoundToChannel="[bool]False" Label="[UIModel]d1f28964d0af4b10835729f4ec94466e" Left="[float]23" Top="[float]83" Value="[int]1" Width="[float]127" xmlns="http://www.ni.com/InstrumentFramework/ScreenDocument">
<RingSelectorInfo DisplayValue="[string]NONE" IsEnabled="[bool]True" Value="[int]0" xmlns="http://www.ni.com/Controls.LabVIEW.Design" />
<RingSelectorInfo DisplayValue="[string]DC_VOLTS" IsEnabled="[bool]True" Value="[int]1" xmlns="http://www.ni.com/Controls.LabVIEW.Design" />
<RingSelectorInfo DisplayValue="[string]AC_VOLTS" IsEnabled="[bool]True" Value="[int]2" xmlns="http://www.ni.com/Controls.LabVIEW.Design" />
Expand Down
Loading