From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

idea for two variable if statement - help


@jamiva wrote:

 

BTW the second example by jwscs could be simplfied. Instead of using a logical shift, integer convertion, and addition it could be done like this


Make sure those enums are U8, of course.

 

By default (for reasons that remain a mystery to me) they are U16...

0 Kudos
Message 11 of 15
(572 Views)

That merge function works well on U16's to U32 also, but the case can be harder to write.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 12 of 15
(556 Views)

Yes, U8's would make it easier. I was looking at that second example and thought the merge would give different results. But actually it was designed for U16's, and would need modification for U8's (simplification in this case) and U32's.

0 Kudos
Message 13 of 15
(549 Views)

@jamiva wrote:

 

For a LUT, you would have to populate ALL the entries in the table regardless, and finding a typo in a 600+ LUT may be like trying to find Waldo.

 

 

 



Capture.PNG

Message 14 of 15
(515 Views)

That was too easy.  Smiley LOL

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 15 of 15
(512 Views)