1) When creating a new OPC point the default data type is Byte Array. The first example shows how to read the data in the byte array and convert to ACSII characters for display. When writing text the ASCII characters are converted to the format required by the Byte Array.
2) The preferred method is to use the second example using String data types and requires no specific conversion. When adding the OPC point the Data type format must be changed from Byte Array to String. When using this method it is important to Dimension the variable used for writing as a String.