Share this page

# 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]));

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: