2.1.15.1 LT_evaluate


Description

Evaluate an expression in LabTalk syntax.

Syntax

BOOL LT_evaluate( LPCSTR lpcszLabTalkExpression, double * lpdbResult )

Parameters

lpcszLabTalkExpression
[input] Pointer to a string containing the expression in LabTalk syntax.
lpdbResult
[output] Pointer to a double value to receive the results.

Return

TRUE if expression is valid, FALSE if expression leads to missing value

Examples

EX1

void    LT_evaluate_ex1()
{
    double        vv;
    LT_get_var("@D",&vv); // get machine curremt date/time as Julian value    
    out_double("@D = ", vv);
    LT_evaluate("0^0",&vv); // evaluate expression using LabTalk interpreter
    out_double("0^0 = ", vv);
}

Remark

See Also

Header to Include

origin.h

Reference