NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Trusted Enthusiast
for(imstuck)
Posts: 2,053

Re: Rube Goldberg Code

[ Edited ]

http://forums.ni.com/t5/LabVIEW/Need-help-parsing-a-string/m-p/1956895#M649828

 

A perfect example of why to think before you code. My first solution, and second solution, only minutes apart...

 

 

 

 



Greg Freeman - CLA, LV Version 2012, 2011, and 2010

G Systems, LP


Active Participant
GuenterMueller
Posts: 785
0 Kudos

Re: Rube Goldberg Code

Great. Lean and clean!

Active Participant
SnowMule
Posts: 686

Re: Rube Goldberg Code

RG machines... this is pretty cool:

http://www.wimp.com/machinesnothing/

Active Participant
jcarmody
Posts: 1,551

Re: Rube Goldberg Code

I found this in a system I support.  Am I missing something?

 

MSG_Year.png

Jim
CLD
Proven Zealot
Jeff·Þ·Bohrer
Posts: 5,330

Re: Rube Goldberg Code

[ Edited ]

jcarmody wrote:

I found this in a system I support.  Am I missing something?

 


:smileysurprised::smileysurprised::smileysurprised:

I think the original intent was to fill up a block diagram-  your solution misses on that point. (I wonder what happens in year 201A?)


"All shall be well and all shall be well and all manner of things shall be well" -Julian
Knight of NI
Knight of NI
Ben
Posts: 16,091

Re: Rube Goldberg Code


jcarmody wrote:

I found this in a system I support.  Am I missing something?

 

 


 

Yes, the warrenty regarding data integrity.  You have obviously broken the seal on the "Data Manipulation" palette.

 

Ben

 

Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

Trusted Enthusiast
for(imstuck)
Posts: 2,053
0 Kudos

Re: Rube Goldberg Code

 


jcarmody wrote:

I found this in a system I support.  Am I missing something?

 

 


Just curious, I'm trying to grasp why this works, but if you do the same with two decimal numbers, say 10 and 20, you obviously don't get 1020 out. I'm assuming it has to do with joining two U8's to a U16 and hex is base16 but even after writing out the bits and the OR to try to further understand, I still can't wrap my head around it. Clarifications please.



Greg Freeman - CLA, LV Version 2012, 2011, and 2010

G Systems, LP


Knight of NI
altenbach
Posts: 22,840
0 Kudos

Re: Rube Goldberg Code


for(imstuck) wrote:

Just curious, I'm trying to grasp why this works, but if you do the same with two decimal numbers, say 10 and 20, you obviously don't get 1020 out. I'm assuming it has to do with joining two U8's to a U16 and hex is base16 but even after writing out the bits and the OR to try to further understand, I still can't wrap my head around it. Clarifications please.


Looks to me like the numbers are encoded in BCD?


LabVIEW Champion . Oh, by the way, I work for peanutsKudos .

Active Participant
jcarmody
Posts: 1,551
0 Kudos

Re: Rube Goldberg Code

[ Edited ]

for(imstuck) wrote:

 

Just curious, I'm trying to grasp why this works, but if you do the same with two decimal numbers, say 10 and 20, you obviously don't get 1020 out. I'm assuming it has to do with joining two U8's to a U16 and hex is base16 but even after writing out the bits and the OR to try to further understand, I still can't wrap my head around it. Clarifications please.


The date is stored in our device's NVM in a human-readable format when viewed in a Hex editor.

 

I forgot to mention that this was part of a system we paid hundreds of thousands of dollars for.  :smileytongue:

Jim
CLD
Member
Anthony_de_Vries
Posts: 178

Re: Rube Goldberg Code

It's obvious why it costs hundreds of thousands of dollars, if they need to code this thing to concat two numbers.  :smileyvery-happy:

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page