06-15-2012 03:27 PM
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.
Solved! Go to Solution.
06-15-2012 03:39 PM
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
06-15-2012 04:22 PM
Don't see any parsing functions, or even anything titled Mathematics.
06-15-2012 09:42 PM
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
06-18-2012 09:42 AM
Ok, I found them. Looks like they have one that might work for me. Thanks.