‎02-05-2011 02:54 PM - edited ‎02-05-2011 02:56 PM
Edit: Looks like Dennis beat me to it ![]()
You realize you are replying to a five and a half year old thread?
But anyway are you talking about somehow wiring five booleans to the selector and typing something like '10010' into the case?
‎02-05-2011 02:56 PM - edited ‎02-05-2011 02:58 PM
I know the thread is old, but it was the first thing that showed up in google, and my problem was the same.
Thank you very much for the answer.
actualy, it's 5 digital sensors connected to my cRIO, I need different senarios for each combination.
‎02-05-2011 02:59 PM
Hey not a problem replying to an old thread! I didn't mean to imply otherwise and you are doing something that a lot of people do not do. You are researching before asking. Kudos for that!. I was just wondering if you saw the date ![]()
‎04-03-2014 12:50 PM - edited ‎04-03-2014 12:53 PM
tbob;
".. any decimal number to a binary string .." [ UNumberToBinaryString.vi ]
Very useful ... just what I needed !!
Thanks
‎04-03-2014 02:50 PM - edited ‎04-03-2014 02:50 PM
@slbLV wrote:
tbob;
".. any decimal number to a binary string .." [ UNumberToBinaryString.vi ]
Very useful ... just what I needed !!
This thread seems a bit outdated, but here are two alternative that do exactly the same, but with less code. (look ma, no loops!)
Of course the correct way would be to create a polymorpic VI that adapts to the input type automatically. When creating the polymorphic instances, you might as well just use a diagram constant with the right format for each type.

‎02-20-2019 05:05 AM
decimal to binary
‎02-20-2019 05:51 AM - edited ‎02-20-2019 05:51 AM
Hi avinash,
why do you think your VI will help here?
See that small addition I made to your VI:
I just use FormatIntoString to get the very same result as your whole mess of number to boolean array and string conversion…