ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Math Script

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

0 Kudos
Message 1 of 12
(5,761 Views)

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?

0 Kudos
Message 2 of 12
(5,749 Views)

Like this?

19507iFB139DE146531983

Andy Chang
National Instruments
0 Kudos
Message 3 of 12
(5,746 Views)

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 

0 Kudos
Message 4 of 12
(5,716 Views)

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.

 

0 Kudos
Message 5 of 12
(5,712 Views)

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 ???

0 Kudos
Message 6 of 12
(5,697 Views)

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.

0 Kudos
Message 7 of 12
(5,686 Views)

Aside: Is there a reason you're not doing this with LabVIEW functions directly?

0 Kudos
Message 8 of 12
(5,678 Views)

just wanted to give a try how it works

0 Kudos
Message 9 of 12
(5,651 Views)

OK, that's fine. I was just curious.

 

Did you check your activation?

0 Kudos
Message 10 of 12
(5,643 Views)