LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW datatypes

 Do LabVIEW datatypes like Binary, Hexadecimal, and Octal. show leading zeros in the numeric control if needed?

0 Kudos
Message 1 of 3
(2,191 Views)

You're mixing a few terms here.

 

Datatypes are for instance Strings, Booleans, Integers, Arrays, Clusters.

 

You're asking about the visualization of values. And yes, you can configure the visualization (for constants, controls and indicators) to show leading zero's. Right click, select either properties or Display Format, and tag the Use Minimum Field Width.  Select the then enabled "Pad with zeros from the left" option. And set the width to something more then 0.

0 Kudos
Message 2 of 3
(2,179 Views)

Expanding slightly on Wiebe's post, Binary, Hexadecimal, and Octal are all types of Integers.  LabVIEW has 8 Integer types -- 8, 16, 32, and 64 bit, both Signed and Unsigned.  The values remain "numbers", but their representation in the Front Panel Controls or Indicators can be set by changing the relevant properties (including whether to display as Binary, Hex, Octal, or Decimal, how many digits to display, and how to "pad" small digits).

 

Bob Schor

0 Kudos
Message 3 of 3
(2,123 Views)