11-02-2011 01:36 PM
I recently updated a general purpose control system vi from LabVIEW 8.0 to LabVIEW 2011. In the previous version, the text of the Formula Node (the actual expressions) automatically wrapped where it hit the boundary of the box. It does not do this in LabVIEW 2011.
Although I can turn on scroll bars, my boss would prefer to see the text on multiple lines, as before.
Is there any way to force text wrap?
Failing that, can Carriage Returns be entered arbitrarily without affecting the parsing of the expressions?
Solved! Go to Solution.
11-02-2011 02:25 PM - edited 11-02-2011 02:26 PM
Shift+Enter will put you on a new line just as if word wrap occurred.
As far as just using the Enter key, and if it effects a formula, why not give it a try? I don't think CR's can be placed.
11-02-2011 03:37 PM
Thank you for your quick response. I passed the news on to my boss and he can do further testing. It sounds like SHIFT-ENTER does LINEFEED rather than CARRIAGE RETURN-LINEFEED, which is just what is required.
02-07-2013 03:11 AM
Its not working even with **bleep**+enter, 😞
10-24-2020 11:16 AM
Consider creating intermediate variables representing the parts of the equation.
This allows short expressions to fit in the window.
Viz:
float t1, t2,num,den; /* where t1, t2 are the first and second terms of the (num) numerator, etc.*/
t1=y_low * x_hi;
t2=y_hi * x_low;
num= t1 - t2;
den=x_hi - x_low;
b_i= num/den;
10-24-2020 11:44 AM
Thanks. If I were still working on that project nine years later, that would be a good, if unnecessarily complex workaround.