LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Factorial

Hello,

do you know the syntax for factorial x in a formula mode ?
I have tested fact(x) and x!, but these syntaxes are not correct.

Thank you,
XuniL.
0 Kudos
Message 1 of 4
(5,570 Views)
As far as I know there's no factorial function for the formula node. I'm talking about LabVIEW 7.0. If you want to calculate the factorial you may use the Factorial VI included in LabVIEW.

Message Edited by Robst on 03-02-2006 11:19 AM



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 2 of 4
(5,565 Views)

If you have LabVIEW 8.0, you could use the Mathscript node. It is much more powerful 😉

 

Message Edited by altenbach on 03-02-2006 09:33 AM

Message 3 of 4
(5,552 Views)

That's right, the Formula Node does not have a built-in factorial function.  The MathScript Node in LabVIEW 8.0, however, does have a factorial function.  Its syntax is b=factorial(a);.

And of course, you could always use the Factorial.vi.  Or you could even write the code yourself!  🙂

-D

Message Edited by Darren on 03-02-2006 11:44 AM

Message 4 of 4
(5,547 Views)