Jump to content

Labview question


Recommended Posts

Posted

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

Posted

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.

Posted

Hi Q,

maybe the function 'Number To Boolean Array' in the 'Boolean' palette could be of interest for you, too.

Regards,

Frank

  • Like 1
Posted

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

Posted

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.

post-7534-12567673304_thumb.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.