LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hex to Binary for a Digital Output

Hi,

 

I have made a VI to transmit a long Digital Binary Output (this is a protocol for a fire system) and its currently working for what i need, but it isn't very appealing. I want to convert the Binary into Hex so i can easily edit the Output when i move into the different cases in the state machine (currently i'm only working on "1"). I have had some success, but becuase i'm sending such a large package the VI crashes and only Outputs "1's". Can anyone point me in the right direction?

 

Regards,

Andrew

0 Kudos
Message 1 of 3
(920 Views)

You can make things a lot easier on yourself by using a numeric to start with.  You can set the radix so you can view it in hex (right-click->View->Radix, change it to hex).  I recommend inverting there and then use Array To Boolean Array followed by Boolean To 0,1.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 2 of 3
(889 Views)

I can't open your VI so this may not be completely applicable.  As crossrulz mentioned, you can change the radix of numeric controls.  You can also do the same thing on case structures by right clicking the case selector. 

Capture.PNG

aputman
LabVIEW 2017
LabVIEW Programming
0 Kudos
Message 3 of 3
(865 Views)