04-18-2012 02:45 PM - edited 04-18-2012 02:46 PM
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...
04-19-2012 02:13 AM
Great. Lean and clean!
04-19-2012 07:30 PM
RG machines... this is pretty cool:
04-20-2012 01:59 PM
04-20-2012 02:34 PM - edited 04-20-2012 02:37 PM
@jcarmody wrote:
I found this in a system I support. Am I missing something?
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?)
04-20-2012 02:46 PM
@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
04-20-2012 04:47 PM
@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.
04-20-2012 05:37 PM
@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?
04-21-2012 04:58 AM - edited 04-21-2012 04:59 AM
@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. 😛
04-23-2012 03:47 AM
It's obvious why it costs hundreds of thousands of dollars, if they need to code this thing to concat two numbers.