Example: lr.save_data
In the following example, lr.save_data assigns a series of values to the ID parameter.This parameter is then used in an output message.
// Example array of arbitrary bytes. byte [] b_arr = new byte[]{(byte)0x12,(byte)0x2,(byte)0x1,(byte)0x3}; // Save the array into parameter ID lr.save_data(b_arr,"ID"); // Save the contents of the array parameter to another array byte [] output_arr = lr.eval_data("<ID>"); lr.output_message("This is the value of the first output byte: " + Byte.toString(output_arr[0]));