07-21-2010 09:04 AM
I want program the below equation using math scrip , i am using labview 8.5
Cal = -10 + (1.3 * ln (x + 0.3)) + (1.2 * ((ln (x + 3.7)) ^ 2)) +(0.03 * ((ln (x + 3.7)) ^ 3)) + (0.05 * ((ln (x + 2.7)) ^ 4))
Where X is control input from user.
Thanks
07-21-2010 09:35 AM - edited 07-21-2010 09:35 AM
OK.... so what's your issue? Do you not know how to use MathScript? Are you unsure about the syntax? Are you asking how to set X as a variable? Have you looked at the LabVIEW Help? Have you looked at the examples?
07-21-2010 09:36 AM
Like this?
07-22-2010 11:43 AM
Hi andy,
I did the same as told by you, i am getting a error "semicolon missing " . i am trying out formula node for the first time
07-22-2010 11:48 AM - edited 07-22-2010 11:49 AM
The formula node is a different beast. For MathScript you need to use the MathScript node, located in the Mathematics -> Scripts & Formulas. The MathScript node has a blue border. The formula node has a dark gray border.
07-22-2010 12:25 PM
Hi ,
Tried to search for Mathscript under Functions>>Mathematics>> Scripts & Formulas palette but couldnt find only only i can see Xmath Script and Matlab Script . Is there any additional toolkit required ???
07-22-2010 01:20 PM
Is LabVIEW correctly activated on the computer? Do you have the edition that actually has MathScript? Check by launching the NI License Manager (on Windows it's Start -> All Programs -> National Instruments -> NI License Manager). Then check to see which development version is activated.
07-22-2010 01:57 PM
Aside: Is there a reason you're not doing this with LabVIEW functions directly?
07-22-2010 04:00 PM
just wanted to give a try how it works
07-22-2010 04:11 PM
OK, that's fine. I was just curious.
Did you check your activation?