LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

entering math expression at runtime

Solved!
Go to solution

Using LabVIEW 7.0.  Is there a way to enter a math expression at runtime?  I am gathering bytes from a device in which the user may have to configure at runtime.  For example, if a packet returns 2 bytes, i and j, the user may want to run an equation on the bytes like y=200i - 3j.  The equation could be anything.  I've looked at Expression nodes and Formula nodes, but there doesn't seem to be a way to enter the equation programmatically.  Anyone have any ideas about this?

Thanks.

 

0 Kudos
Message 1 of 5
(3,235 Views)

There are a variety of Parsing functions and VIs in Mathemetics >> Scripts & Formulas palettes.  I think they were there in LV 7 although the names and locations might be slightly different.

 

Lynn

0 Kudos
Message 2 of 5
(3,234 Views)

Don't see any parsing functions, or even anything titled Mathematics.

0 Kudos
Message 3 of 5
(3,226 Views)
Solution
Accepted by topic author rickford66

I opened LV 7.1 which is the oldest I have.  In that version Mathematics is in the Analyze palette.

 

On the Functions palette click on Search and type in "parse" or "formula". Those searches found several formula parsing VIs.

 

If you have only the Base version of LV, you may not have these VIs.

 

Lynn

0 Kudos
Message 4 of 5
(3,210 Views)

Ok, I found them.  Looks like they have one that might work for me.  Thanks.

 

0 Kudos
Message 5 of 5
(3,183 Views)