Chapter 5 215
Storing and Retrieving Test Results
Using the To/From File Objects
3. Click OK to return to the To File object. The transaction bar should
now contain the statement
WRITE TEXT "Test1" EOL. This
transaction sends the string
Test1 to the specified file.
Sending a Time Stamp to a File
The function now() in the Device ⇒ Function & Object Browser
⇒ Time & Date category gives the current time expressed as a Real64
Scalar
. The value of the Real is the number of seconds since 00:00 hours
on Jan. 1, 0001 AD.
Therefore,
now() returns a value about 63G. VEE provides this format
because it is easier to manipulate mathematically and conserves storage
space. If you want to store the time stamp in a more readable format, use the
TIME STAMP FORMAT in the To File object. Follow these steps to send a
time stamp to a file.
1. In the same
To File object, double-click in the transaction area to
display the
I/O Transaction box.
2. Double-click the expression list input field to highlight the
a and type
now(). The now() function sends the current time from the computer
clock in a
Real format.
3. Change the
Real format to the Time Stamp Format.Click the arrow
next to
DEFAULT FORMAT to display the drop-down menu and select
TIME STAMP FORMAT. The I/O Transaction dialog box now
displays additional entries. Set the entries as follows:
TEXT Use the default
TEXT. The encoding TEXT
will send the data using ASCII characters.
DEFAULT
FORMAT
Use
DEFAULT FORMAT. The DEFAULT
FORMAT
will choose an appropriate VEE
format such as
STRING.
EOL ON Use the default. The default
EOL sequence is
the escape character for a new line
\n.
Date & Time Select
Time in the drop-down menu.