LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change the parameter in the formula by Labview?

I need to set up a formula (Since I need to analysis data, so everytime have differece formula, but I can't build up a new VI everytime),for example sin(a*x)*exp(b*x). If a & b & the formula are fixed, I can do it. But now, I need to make the a & b to be a set of values, like "a" is 0:1:10 and b is 50:0.1:100. That means when "a" is 0, "b" will go from 50 to 100 with step 0.1. And I need to be able to use the same VI for other formula. I try a few different way but still not able to come out the answer. Please help
====================
=Labview 7.0 & 8.0 & 8.5=
=====================
0 Kudos
Message 1 of 2
(2,877 Views)
Hello asd,

for a & b parameters you have to use 2 nested loops with your formula inside and you get a 2d-array with results.
You can also change the formula if you use the "Eval Formula Node" in Analyze->Mathematics->Formula (not in base package). But I recommend to use this for not too big loops, because this function is slow...

Best regards
Gerd
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,877 Views)