LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Expression evaluation

Tried it. Option. But have You had a look at the LabVIEW code behind the vi. Oohh.
Regards Kahr
Certified LabVIEW Architect
CIM A/S
0 Kudos
Message 11 of 22
(1,355 Views)

And you wanted to write your own instead???

 

If you have a very limited set of functions (like a 4-function calculator) you might be able to create soemthing simpler, but would it be versatile enough to be useful?

 

Do you have a description of the possible functions, the number of variables, and the size of the formula?

 

Lynn

0 Kudos
Message 12 of 22
(1,347 Views)

hehe,

 

Created once a "virtual tag engine" where the user could create virtual tags with math using other existing tags using thoes VI's.. well I didnt have any problems with testing a lot of these tags performance wise (but had a low update freq). However I think in "clean" LV it might be your only option?

0 Kudos
Message 13 of 22
(1,345 Views)
I've found implementation of sinus in the parse formula vis. But no ABS, SQRT...
Regards Kahr
Certified LabVIEW Architect
CIM A/S
0 Kudos
Message 14 of 22
(1,344 Views)

You sure? I believe they can be used as of I can remember

0 Kudos
Message 15 of 22
(1,339 Views)

Found the old source code in the library.

Atleast of what I saw:

 

Abs(), cosh, sinh, tanh, log2, acos, atan, sqrt, ln, ^, acosh, asinh, csc, cot, atanh, log, sin, cos, asin, multiply, minus, divide, add

 

can be used. prob more

0 Kudos
Message 16 of 22
(1,339 Views)
Lynn. The customer asks for trigonometric functions and SQRT, ABS etc. I've allready implemented the 4 function calculator in Labview and could add the requested additional functions but would prefere to use an allready existing and proven one.
Regards Kahr
Certified LabVIEW Architect
CIM A/S
0 Kudos
Message 17 of 22
(1,338 Views)
Corny. Thanks. I look deeper into it. Thanks
Regards Kahr
Certified LabVIEW Architect
CIM A/S
0 Kudos
Message 18 of 22
(1,334 Views)

Youll find them all in the LV help: Smiley Happy

 

sspanel.png

0 Kudos
Message 19 of 22
(1,329 Views)

@Kahr wrote:
I just noticed the dll jcarmody. Is python server running in the background ?

I just uninstalled Python, put a copy of the dll in the VI's folder and modified the BD to find it.  It ran fine and there's no Python server running.  The documentation for the PYTHON Set Server Path VI says "This function configures the interface to use a particular Python shared library."

 

 

test python_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 20 of 22
(1,321 Views)