WRITE_VALUES
# The @WRITE_VALUES operation allows the user to write ascii
# data into a file and control the data, format, and rate
# through the test script. Essentially, a data logging type
# of operation may be created through gp_test. The most likely
# use is to capture the value of a particular variable after
# the operating conditions have been obtained through the
# test script.
#
#start_type - When to write the data. Options are:
# AT_START
# AFTER_STABILITY
# AT_END
# NEW_FILE --- open the file to WRITE, removes previous
# copy of the file
#
#file_name - The file where the data will be written.
# Note: the filename can be a computed expression, using
# the '+' symbol for string concatenation
#
#value - The ASSET variable or expression from which the value is to be
# obtained. A dash "-" indicates no value/variable.
#
#"format_string" The C format string to be used for formatting the
# write. Quotes are required.
#
#units - optional definition of output units if the 'value' is
# a computed expression - default units will be used if
# the 'value' is a computed expression and 'units' are
# not entered - unless the expression is enclosed in
# braces "{ }"
#
#EXAMPLES: ( up to 64 specifications per mode )
#
#
@WRITE_VALUES
#start_type file_name value "format_string" units
AT_START /data/tq_sp - "rpm "
AT_START /data/tq_sp - "torque \n"
AT_START /data/tq_sp NOTIFY "%s\n"
AT_START /data/tq_sp ctl_spd "%11.2f "
AT_START /data/tq_sp "ctl_spd/2[none]" " %10.3f " rpm
AT_START /data/tq_sp "{ ctl_spd/2[none] }" " %8.1f "
AT_START " '/data/' + filename"
AT_START /data/PC_format/pms_wrt.csv pms_cart ",@2.0i "
AT_START /data/PC_format/pms_wrt.csv count ",@2.0i "