Jump to content

Infix Expression Evaluator


Recommended Posts

So there are so many ways to do evaluators. I was trying to minimize mess on the implementation (no recursion or any such nonsense)

Single File capible(if function VI is removed) 

Contains tools for changing rules.(In the form of a spreadsheet)

It uses variant attributes for the variable name space.

Here it is:

image.png.bdbcc250895acfc306d7eaed9230f3f6.png

Made a nice and simple evaluator should be compatible with older versions of LabVIEW as well. And even gave it some test cases:

image.png.00f79dfd7057c3a21a4d84b25ed93fa8.png

Also check out the github page: https://github.com/taylorh140/LabVIEW_Eval

I've attached the Eval and Functions.vi should be LV 8.0 compatible.

Functions.vi Eval.vi

Edited by Taylorh140
add detail
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.