Share this page

# Example: lr.user_data_point

The following example saves the CPU value as a user-defined data sample.

    double CPUCheck(){  System.Random random=new System.Random();  double cpu=random.NextDouble()*100;  return cpu;} for(int i=0;i<100;i++){ double cpu_val=CPUCheck(); lr.user_data_point("cpu %", cpu_val); lr.sleep(10);} return 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: