WRITE_T_O_STRING

Writes an attribute to the current block with the specified string value. Returns 1 on success and 0 if errors occur.

Format

WRITE_T_O_STRING (Attribute, Value)

Prerequisites

WRITE_T_O_OPEN_FILE (Filename)
WRITE_T_O_DATA_BLOCK (Block Name)

Arguments

 
Attribute
Name of attribute to write
Value
String value for specified attribute

Examples

 
Function
WRITE_T_O_STRING (“ACTUATOR_TYPE”, “TORQUE”)
Result
1
Writes to File
ACTUATOR_TYPE = 'TORQUE'
 
Function
WRITE_T_O_STRING (“ACTUATOR_TYPE”, 5)
Result
0
 
Important:  
Filenames are case sensitive and parameters are not case sensitive.