LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add line Formula Node?

I want to add line in formula node but when I press enter it does not do that.

Another words How do I write code like this in Formula Node.

int x;
int y;
int z;

if(x>y)
{
z=x;
}
else
{
z=y;
}
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 11
(5,139 Views)
First, which enter key are you using? The one on the numeric keypad is mapped differently in LabVIEW. If both enter keys act the same, check Tools>Options>Front Panel and make sure the "End text entry with Enter key" is not checked.
Message 2 of 11
(5,130 Views)
As Dennis said, your problem is with the option setting. If this option is set and you want to keep it, you can always use
"Ctrl-Enter" to add a new line.

Of course there is nothing wrong abandoning that entire formula and replace it with it's "g" equivalent! 🙂
It will be much more efficient and easier to read.


Bug alert: Since the "End text with Enter Key" option is listed as a "Front Panel" option, it seems odd that it would apply to a diagram elements such as a formula node. I don't think this is right and expected!


In any case, I would uncheck this option setting no matter what. You can enable this functionality for string controls individually by enabling "limit to single line". This seems more useful. 🙂

Message Edited by altenbach on 06-02-2005 09:10 AM

Message 3 of 11
(5,130 Views)
Thanks a lot. It solved my problem. I don't remember playing with that setting. Must be labview default.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 4 of 11
(5,114 Views)
Hi Altenbach,

I have formally reported this behavior to R&D. I agree, something should be changed, whether it be to have a separate option for the block diagram, to disregard this option for the block diagram/formula node, or to move this option to another section (i.e. miscellaneous).

Thanks for the feedback!
Travis H.
LabVIEW R&D
National Instruments
Message 5 of 11
(5,058 Views)
I am running into the same problem but the only way i can get a new line to work is to enable the End Text with enter key and use ctrl-enter
I tried both enter keys, im on a HP zd7000 laptop

Is there some other way around this?

Thanks
Nick
0 Kudos
Message 6 of 11
(5,047 Views)
Hello Stone,
If unchecking ‘end text entry with enter key’ does not allow you to use either of your enter keys then the only other option at the moment is to use Ctrl-Enter. I’ll also check to see if this is an issue on other laptops and add the information to the report Travis filed with R&D. Thank you all for your feedback. We really appreciate it and are doing everything we can to make LabVIEW an even better product!

Best Regards,

Chris J
Applications Engineering
National Instruments
0 Kudos
Message 7 of 11
(5,020 Views)
This was reported to R&D (# 3M7C927U) and was fixed in LabVIEW 8.0. The "End text entry with Enter key" option is now on the Environments page of the Tools->Options dialog.  Here is a link to the current evaluation software download for LabVIEW.

Thanks!
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 8 of 11
(4,721 Views)

Guys,still see this problem in LabVIEW9 student copy,and I cant find the option "End text entry with Enter key" , ctrl+enter dosn`t change anything

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

Tools->Options.  Go the the Environment 'tab'.  It should be near the top.  In 8.2, it was at the very top.  In 2011, it's the second option from the top.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 11
(4,001 Views)