LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wierd algorithm required - intellectual exercise

27 years for me.  First learned boolean logic in 1983.

 

 

 

Ben's  34 years + Wayne's 27 years = 61 years and counting

 

I'll bet the number gets pretty big.

0 Kudos
Message 11 of 20
(1,078 Views)

How are we defining "learned Boolean Logic" - I could say I learnt it in 1981. I was fed or I was not fed. I was asleep or I was not. Smiley Wink

 

I'm about to be retaught it again. Tired and very tired.

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 12 of 20
(1,074 Views)

In my cases I was trained by the US Navy and had to pass a test like

 

(A + B) + C = ?

 

A B C ?

0 0 0 0

0 0 1 1

0 1 0 1

1 0 0 1

0 1 1 1

1 0 1 1

1 1 0 1

1 1 1 1

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 13 of 20
(1,072 Views)

Ben

When did your teddy steal Christian's wink? - It's scary coming from the bear!!

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 14 of 20
(1,069 Views)

James,

 

Story behind Ben's avatar can be found at the bottom of the page.

0 Kudos
Message 15 of 20
(1,056 Views)

The number to boolean array is the easy solution if you "no speaky computer talky very wellie".

A programmatically more beutiful solution is to make a small loop, enter the number through a shift register, loop it 32 times (i assume it's a U32/I32 you have as result, else change accordingly), and bitshift right, connect the shifted bit to a case and if true add the loop's I to an array. The result is ofc connected to the shift register.

That'll give you an array with the indexes and use the faster and more resource contraint bit shuffling.

(Technically it gives you the offset, if you want the index you'll need to add 1)

 

It might look like alot, but it's a very small loop and you can follow the description straight off the bat. 🙂

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 16 of 20
(1,019 Views)

James W wrote:

Ben

When did your teddy steal Christian's wink? - It's scary coming from the bear!!


Were you hibernating????:smileytongue:

0 Kudos
Message 17 of 20
(1,000 Views)

muks wrote:

James W wrote:

Ben

When did your teddy steal Christian's wink? - It's scary coming from the bear!!


Were you hibernating????:smileytongue:


 

It winks so infrequently, I must have been blinking every time it winked!! Smiley Surprised

Only showing evil traits when people aren't looking - now that is evil!!

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 18 of 20
(986 Views)

James,

 

Does this mean you missed the glint in altenbach's eye as well?

0 Kudos
Message 19 of 20
(975 Views)
 

Wayne.C wrote:

James,

 

Does this mean you missed the glint in altenbach's eye as well?


There ahead of you! 

Altenbach's first name is "Christian" - at least it is according to his profile and many of Ben and other people's posts. Smiley Wink

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 20 of 20
(951 Views)