superway Posted October 27, 2009 Report Share Posted October 27, 2009 Hi, I am newer and learning Labview. Can anyone help me this question? Here is my basic language and still dont know what functions can be used this code? I am writing a program that convert decimal to binary. I will use 8 LED to represent for 8 bit, and LED on and off should be 1 (on) and 0(off). If Number < = 255 And Number > 127 Then turn on = "LED 1 on" Number = Number - 128 Else turn on = "LED 1 off" End if. Thanks for your help. Q Quote Link to comment
jcarmody Posted October 27, 2009 Report Share Posted October 27, 2009 There's a much easier way. Does your homework assignment require you to do it the hard way? Take a look at In Range And Coerce, then show us what you come up with. Quote Link to comment
FrankB Posted October 28, 2009 Report Share Posted October 28, 2009 Hi Q, maybe the function 'Number To Boolean Array' in the 'Boolean' palette could be of interest for you, too. Regards, Frank 1 Quote Link to comment
superway Posted October 28, 2009 Author Report Share Posted October 28, 2009 Thanks for your info. I would like to attach my attachment of Labview diagram to this post. But I don't know how to do it. Please show me the steps how to post my file. Thanks, Q Quote Link to comment
jcarmody Posted October 28, 2009 Report Share Posted October 28, 2009 Thanks for your info. I would like to attach my attachment of Labview diagram to this post. But I don't know how to do it. Please show me the steps how to post my file. Thanks, Q Click on "Browse", find your file then click "Attach This File". Bob is sure to be your uncle. Quote Link to comment
superway Posted October 30, 2009 Author Report Share Posted October 30, 2009 Click on "Browse", find your file then click "Attach This File". Bob is sure to be your uncle. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.