Hi,
Can you try the OC script below:
void test_lt_var(string str)
{
double dVal;
string strVar = str + "Var";
LT_get_var(strVar, &dVal);
dVal += 4;
LT_set_var(strVar, dVal);
}
Then you can run the defined function as following:
double TestVar=1;
test_lt_var("Test");
TestVar=;
It simply calls some of LabTalk functions from OC.
Regards!
Sean
OriginLab Technical Service