# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Formula node

Dear ,

I would like to use formula node to build a function that does the following:

y=16 + (x and1)*16 + log2[(x and1)*(2x-65535)+(65535-x)]

In Exel is quite straight forward as in the attachment.

any help how to translate it into Labview Formula node? =16+MOD(C6;1)*16-LOG(65536-C6+MOD(C6;1)*(2*C6-65535);2)

Message 1 of 5
(1,762 Views)

## Re: Formula node

Hi malkowki, Like this?

Is "AND 1" the same as "MOD 1"? (My Excel doesn't know about MOD()…)

Message 2 of 5
(1,729 Views)

## Re: Formula node

@malkowki wrote: =16+MOD(C6;1)*16-LOG(65536-C6+MOD(C6;1)*(2*C6-65535);2)

You can copy that almost directly to the formula node like this: off-topic:

Gerd, die Excel-Funktion MOD(;) entspricht in der deutschen Version der Funktion REST(Zahl;Divisor) Message 3 of 5
(1,698 Views)
Solution
Accepted by topic author malkowki

## Re: Formula node

I the mean time I have found the solution just using the formula expression table from :

https://zone.ni.com/reference/en-XX/help/371361R-01/lvhowto/formula_node_and_express/ Message 4 of 5
(1,677 Views)

## Re: Formula node

Why would you do a "Mod 1"? That'd be the same as "Round towards -inf".

/Y 