LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way the user to change the equation in the formular node from the front panel on the fly, dynamically?

Is there a way the user to change the equation in the formular node from the front panel on the fly, dynamically?
0 Kudos
Message 1 of 4
(2,911 Views)
No, that functionality is not supported in LabVIEW. The problem with this approach is that the formula node has a fixed number of inputs and a fixed number of outputs. Even if you can find a way to edit your formula node at run time, it will be limited to the input/output parameters you coded. You might consider coding the formula in LabVIEW instead if you wanted to change something like coeficients.

I have seen some formula parsing VIs for strings in the shipping examples. These may be a satisfactory alternative to the editable formula node.
Message 2 of 4
(2,911 Views)
Try the Parser VIs (also known as LV Mathematics VIs, or simply GMath VIs) located under the Analyze>>Mathematics palette (not in the Base package). You might want to start with the "Eval Formual Node.vi" located in the Analyze>>Mathematics>>Formula palette. There are many differences between these G-based, dynamic formula VIs and the LabVIEW formula node, but these VIs often prove quite useful when your formula changes on the fly. For more detail on the differences, see the LabVIEW Help file (Cntrl-Shift-? from within LabVIEW) under the topic "Mathematics VIs, parser differences with Formula Node".
Message 3 of 4
(2,911 Views)
That was very helpful..... thanks a lot
~Partha
0 Kudos
Message 4 of 4
(2,614 Views)