02-17-2011 11:07 AM
I have a report template that I use frequently for plotting data from files. At the top of the TDR I have a main title text box that says "Daily Operation" usually followed by the date (typed in manually) of that file.
Q: How do I import/reference the date value from the file (pic #1--outlined in black) into the text box (pic #2) I use for the Date? I appreciate any help.
Solved! Go to Solution.
02-17-2011 08:05 PM
Hey Lab Guy,
What if you try the following in the Text Object?
Daily Operation: @@Data.GetChannel("[1]/Date").Values(1)@@
Let me know if that works for you...
02-23-2011 01:37 PM
Hi Derrick,
I copied and pasted your command, but I didn't get the result I was looking for (refer to attachment). Perhaps the data plugin I crafted isn't the best, so that may be why I can't extract that value. I'm open to trying something else if you have another idea. As this is more for convenience, I do not wish to take up too much of your time on this-but I do appreciate the help!
02-24-2011 07:45 AM
Hi Lab Guy,
Looks like you'll need to use the RTT (Real-To-Time) function, which turns the DIAdem date/time real number (fractional seconds since 0 AD) into a date/time string. There's also a TTR function that goes the other way.
@@RTT(ChD(1, "[1]/Date"), "#mm/dd/yyyy hh:nn:ss.fff")@@
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-25-2011 03:27 PM
That code gets the job done--thank you! The previous code will also come in handy, so thanks to you both!! I appreciate the help, gentlemen.