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 3 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
Members
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
Members
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

sp_PlupAttachments Attachments
September 22, 2015
3:48 am
Avatar
Steffan
Admin
Forum Posts: 408
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

sp_PlupAttachments Attachments
Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
5
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356