LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formula node

Solved!
Go to solution

Helo, how to properly write properti node with shown content? Written content belong to mikroBasic language.

 

Regards, Vlado

0 Kudos
Message 1 of 11
(4,879 Views)
Solution
Accepted by topic author California_J

What's funny is if you look at the help window when moused over the formula node, you get avery similar example of what you're asking.

 

Follow that link and follow the formula node syntax link.

 

 

Or, you know, you could use the very simple LabVIEW code version.

XPlusOne.png

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 2 of 11
(4,866 Views)
Hi Vlado,

please define Y when x is unequal to 150 and 169...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 11
(4,836 Views)

The formula node is slower than just using LabVIEW natives.  You could easly use a simple case structure to do the same thing faster.

Native vs formula.png

Message 4 of 11
(4,806 Views)

Thanks to all of you, I'll try your suggestions for sure. Report is comming.

 

Regards, vlado

0 Kudos
Message 5 of 11
(4,773 Views)

BowenM, I am not able to reproduce your case example. Could you give me some instructions how to put numbers 150 and 169 into it, also case selector is unwired?

 

Regards,

0 Kudos
Message 6 of 11
(4,711 Views)
Solution
Accepted by topic author California_J

@California_J wrote:

BowenM, I am not able to reproduce your case example. Could you give me some instructions how to put numbers 150 and 169 into it, also case selector is unwired?

 

Regards,


  1. Put a case structure on your block diagram
  2. Wire X to the selector terminal (must be an integer, can't be a floating point)
  3. Manually type in each number separated by commas
  4. Make sure the other case is set to Default
  5. Profit

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 7 of 11
(4,700 Views)

Thanks, it works now as expected.

 

Regards, Vlado

0 Kudos
Message 8 of 11
(4,686 Views)

Please mark the reply or replies that best match the solution for your original question. Marked Solutions help others find this post when they have the same issue! Smiley Wink

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 9 of 11
(4,677 Views)

I would be happy to mark a sollution, but I don't see a button with that possibility. So what to do?

 

Regards, Vlado

0 Kudos
Message 10 of 11
(4,593 Views)