02-17-2011 02:15 PM
The thrid message in this thread which was posted by you is marked as the solution.
02-17-2011 02:18 PM
My apologies Mark
I meant no disrespect. I've fixed it now.
Thanks and best regards
Ray
02-17-2011 04:54 PM
Not a problem. I'm glad it worked out for you. BTW, I'm not sure your algorithm for the Julian Date is correct. It looks a bit different than what is described here.
02-17-2011 04:56 PM
Mark
The Julian date vi is one I got off the NI Zone...there were actually two of them.,...one does the reversal.
Ray
02-17-2011 04:59 PM
02-17-2011 05:40 PM
The numbers look quite a bit different. Here is a revised, and a bit more readbale, version for comparison. BTW, your version is actually off by a day.
02-17-2011 05:55 PM
Thanks Mark
I've coded it up and posted it here for anybody who might want it. How would we go about letting the NI Developer Zone know about this flaw?
Regards
Ray
02-18-2011 04:29 PM
Good Afternoon Mark,
I will fix this flaw for you in Developer Zone. Thank you both for finding this problem for us!
-Cody C
02-18-2011 04:33 PM
@Cody C wrote:
Good Afternoon Mark,
I will fix this flaw for you in Developer Zone. Thank you both for finding this problem for us!
-Cody C
I am trusting the examples of Julian Dates I found online. I would guess that it is a rounding issue in the algorithm that was posted originally. Either way, the formula node implementation is easier to read and matches the published algorithms I found. The pure LabVIEW implementation was a bit more convoluted.
02-18-2011 05:02 PM
Well, thats what you get for looking at older code. That does seam to be a bit Rube-Goldberg. My Production test mainline defalts to 1 *.csv report per day with header. So I need to add the header on the first run of the day. Easy since the report is JJJJJReport.txt
Here's a snippet of the relevant parts
The Time Stamp is test start time- the format specifier %y%j gives me 11049 today