LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display binary output in numeric indicator

Hai
    How to display binary output in a Numeric display.
in my program i use numeric display for displaying numeric values in one case
in the other case i want to display binary output in the same numeric display window as binary,
 i don't want to make seperate o/p display for binary o/p i want change the property of the Numeric display to binary display .
is it possible to display Binary data in numeric indicator, please give me an idea to do this.
thanks
sk
0 Kudos
Message 1 of 4
(7,097 Views)

You can't display binary with floating point numbers.  Convert number to integer (U32,
U16, U16, U8) then click on indicator properties and change to binary

 

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 4
(7,089 Views)
Create a property node for the indicator. Set the property to FORMAT and PRECISION - FORMAT. Set it to WRITE. Send a value of 3 to that property when you want to show binary. Send the value 0 to that property when you want to show decimal.

I would suggest always showing the radix, or some other way of letting the user know whether you're showing binary or decimal.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 4
(7,088 Views)

Alternatively, you can use the FormatString property node, and use %08b as format string : 08 means : pad the output with 0 to get a 8 digits wide result.

See attachment.

Chilly Charly    (aka CC)
0 Kudos
Message 4 of 4
(7,082 Views)