LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gamma function in formula node

I am running LabView V.6.1 and try to use the gamma function in a formula node.
According to the HELP text ''Formula Node and Expression Node Functions'', the syntax for the Gamma funtion is gamma(x), but this leads to the block diagram error ''Formula node: Undefined variable''.
Other functions (like exp(x), sqrt(x) etc.) work.
Thanks for helping.
0 Kudos
Message 1 of 3
(3,030 Views)
Hi,
we ran into this one a little while ago. The help is a little misleading. The Gamma function actually only works with the Expression Nodes, and not the Formula nodes.

Go to the labview help file, and search for "Differences Between the Parser in the Mathematics VIs and the Formula Node "

Also refer to the following link for a bit more information :

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000020540000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=%22Square%22+function+in+formula+node&USEARCHCONTEXT_QUESTION_S=0

it's a bit long winded, but be patient - the information is in there.

Hope that helps

S.
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 3
(3,030 Views)
Hansjoerg,
These math functions are not available with Formula Nodes:
gamma, ci, si, spike, step, square

Zvezdana S.
National Instruments
0 Kudos
Message 3 of 3
(3,030 Views)