BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

How do you get to know about and understand "coercion dots" as a phrase, but not the reason for a boolean in a loop not continuing to change value after the loop?

https://forums.ni.com/t5/LabVIEW/Blink-function-as-a-SubVI/m-p/4018399/highlight/true#M1149827

 

Is this caused by a picky teacher?


GCentral
0 Kudos
Message 2151 of 2,635
(11,051 Views)

(seen here)

 

Well, I am sure it's all constant folded so it really does not make a difference, but if you ever need a value of 10 in U8 representation, here's one possibility :D:

 

 

altenbach_0-1584475202173.png

 

 

0 Kudos
Message 2152 of 2,635
(10,943 Views)

@altenbach wrote:

(seen here)

 

Well, I am sure it's all constant folded so it really does not make a difference, but if you ever need a value of 10 in U8 representation, here's one possibility :D:

 

 

altenbach_0-1584475202173.png

 

 


If only this were implemented...ASCII Display otion for U8 (Char?) 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2153 of 2,635
(10,927 Views)

@crossrulz wrote:

@altenbach wrote:

(seen here)

 

Well, I am sure it's all constant folded so it really does not make a difference, but if you ever need a value of 10 in U8 representation, here's one possibility :D:

 

 

altenbach_0-1584475202173.png

 

 


If only this were implemented...ASCII Display otion for U8 (Char?) 


Only slightly related: The C++17 standard finally introduced a byte type... About time, all those poor programmers had was chars to imitate bytes...

0 Kudos
Message 2154 of 2,635
(10,910 Views)

https://forums.ni.com/t5/LabVIEW/verification-of-my-software-code-for-best-practice/m-p/4027167#M115...

I'm not sure if the dude is trolling us or not, but i'm pretty confident 'best practice' doesn't include code duplication, no loops, open vi ref to access callers vi ref to use invoke nodes on caller ...

Includes nuggets such as:

Code review 1.png

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2155 of 2,635
(10,862 Views)

@Yamaeda wrote:

https://forums.ni.com/t5/LabVIEW/verification-of-my-software-code-for-best-practice/m-p/4027167#M115...

I'm not sure if the dude is trolling us or not, but i'm pretty confident 'best practice' doesn't include code duplication, no loops, open vi ref to access callers vi ref to use invoke nodes on caller ...

Includes nuggets such as:

Code review 1.png

/Y


Some others from that same thread

Convert number to string data to save to TDMS. Then when reading TDMS, converting back to number, disabled at the moment.

Snap46.png

 

Message 2156 of 2,635
(10,854 Views)

@mcduff wrote:

@Yamaeda wrote:

https://forums.ni.com/t5/LabVIEW/verification-of-my-software-code-for-best-practice/m-p/4027167#M115...

I'm not sure if the dude is trolling us or not, but i'm pretty confident 'best practice' doesn't include code duplication, no loops, open vi ref to access callers vi ref to use invoke nodes on caller ...

Includes nuggets such as:

Code review 1.png

/Y


Some others from that same thread

Convert number to string data to save to TDMS. Then when reading TDMS, converting back to number, disabled at the moment.

Snap46.png

 


But that's clearly a precision issue... Surely you're not saying you're one of those people who store numbers as numbers?! </s>


GCentral
Message 2157 of 2,635
(10,844 Views)

@cbutcher wrote:

Surely you're not saying you're one of those people who store numbers as numbers?! </s>


I am one of those people.  And don't call me Shirley.

Spoiler
For those who don't get the joke, go watch Airplane!

GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2158 of 2,635
(10,842 Views)

I want to continue to be sarcastic, but I suppose text files for data are pretty popular.

Not that it applies to TDMS files... 😕


GCentral
0 Kudos
Message 2159 of 2,635
(10,839 Views)

@cbutcher wrote:

I want to continue to be sarcastic, but I suppose text files for data are pretty popular.

Not that it applies to TDMS files... 😕


Yes, CSV (Comma Separated Values) and tab delimited text files (my preference) are very common.  But if you are using a TDMS file, you should use the natural data type instead of converting to a string.  It is optimized for writing data of different data types.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2160 of 2,635
(10,824 Views)