BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code


 

That's an interesting one.  I'm trying to figure out what it does.  My guess is that it takes some arbitrary date/time string and runs it through the wringer until it finds a date/time format that successfully converts it to a time?

 

Does it work?

 

How about the %Y options?  I would think the last element where it was a full date,  would use a 4 digit year.  So Saturday, October 17, 2009 makes more sense then Saturday, October 17, 09   :smileyvery-happy:


I was answering Raven about this code. It does work and I have tried it with many different string dates. I have had to add a few extras because the manufacturers did not put the date in any kind of normal format. This VI takes a string input and searches through the list for a match and when it finds one it outputs  the date that LabVIEW can recognize.

Tim
GHSP
0 Kudos
Message 561 of 2,617
(11,795 Views)

aeastet wrote: 
 

I was answering Raven about this code. It does work and I have tried it with many different string dates. I have had to add a few extras because the manufacturers did not put the date in any kind of normal format. This VI takes a string input and searches through the list for a match and when it finds one it outputs  the date that LabVIEW can recognize.


 

 

 

 

 

LabVIEW got so large that is now requires two forums to answer all the queries Smiley Very Happy

Regards
Ray Farmer
0 Kudos
Message 562 of 2,617
(11,789 Views)

 
                             LabVIEW got so large that is now requires two forums to answer all the queries
 

 
 
No this area is just for general discussion. It is really not for questions.
Tim
GHSP
0 Kudos
Message 563 of 2,617
(11,774 Views)

Complicated way to format the date into a filename.

 

Found here: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=448438#M448438

 

Message Edited by Ray.R on 10-19-2009 09:30 PM
Message 564 of 2,617
(11,748 Views)

Found at same location as last post..

 

Really want to have a delay...  Maybe force a minimum delay???  😉

 

Not to mention the format into file abuse by not using \t in the format string.

 

Message Edited by Ray.R on 10-19-2009 09:42 PM
Message 565 of 2,617
(11,747 Views)

gonna repost..too much whitespace...

Message Edited by for(imstuck) on 10-23-2009 02:12 PM
0 Kudos
Message 566 of 2,617
(11,673 Views)

Easy way or hard way to tokenize a string you know will have 7 line feeds??

I left the images as links..too much whitespace to show them in the post
Message Edited by for(imstuck) on 10-23-2009 02:16 PM
Download All
0 Kudos
Message 567 of 2,617
(11,671 Views)

for(imstuck) wrote:

Easy way or hard way to tokenize a string you know will have 7 line feeds??


Hmmm....

 

 

 

(Easier?) 🙂

(Spreadsheet string to array with /n as delimiter and 1D array of string as output)

Message Edited by altenbach on 10-24-2009 02:10 AM
Message 568 of 2,617
(11,624 Views)
Hahaha, as I posted that I was thinking "someones gonna play a trump card"...and who better than you 😉
0 Kudos
Message 569 of 2,617
(11,607 Views)

Now this is just extra code...I don't know if its "exceedingly" complex. But a double take  was necessary to make sure I was actually seeing it right and at no other point did it matter which range the number was it. But sure enough, the only boolean value used was the one coming out of the or.

Message Edited by for(imstuck) on 10-24-2009 09:45 AM
0 Kudos
Message 570 of 2,617
(11,604 Views)