Share this page

# Example: lr.get_attrib_double

In the following example, lr.get_attrib_double retrieves the value of the time parameter from the command line string

    test1   -host sun2   -loop 4   -time 1.5

where test1 is the name of the executable and host, loop and time are command line options. lr.get_attrib_double assigns the value to a variable, wait_time. This variable is incorporated into the script and sets how long to wait between loops.

        double wait_time;
        int i;
        wait_time=lr.get_attrib_double("time");

       if (wait_time==0){
            lr.message("Illegal time value \n");
            return;
        }

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: