Number to Boolean Array | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Number to Boolean Array
September 21, 2015
2:44 pm
Avatar
tNag
Member
Forum Posts: 5
Member Since:
September 21, 2015
sp_UserOfflineSmall Offline

Since it seems that the native LV function "Number to Boolean Array.vi" is not supported in ACC4LV, I created one to convert U8 integer. I use this function to control Digital Port Output.

Let me know if there is a better way.

(Created with LV2014)

September 21, 2015
3:48 pm
Avatar
Amornthep
Member
Forum Posts: 22
Member Since:
April 8, 2015
sp_UserOfflineSmall Offline

this is the way to convert array of boolean to integer. 

it is not the thing that you are looking for, but for people who working on convert "array of bool to number" should get some idea from this post. 

Array-of-Bool-to-Int-1.pngImage Enlarger

Attachments
September 22, 2015
3:48 am
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

We will consider adding the Number to Boolean Array primitive in a future release, but, as you found it is simple enough to make a subVI for it.  Here is a slightly simpler, and possibly more efficient approach using boolean logic but what you have should work fine.

Byte-to-Array.pngImage Enlarger

Attachments
Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Travlissah, viktorIcera, HowardClouG, Dianecet, Produktnaodchudzaniex

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89