LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formula node parenthesis problems

Solved!
Go to solution

Hi Y'all,

   I'm going cross-eyed trying to figure out what is wrong with the equation that I'm trying to use in a formula node. I've attached both the VI (version LabVIEW 2009) and the error msg. Unfortunately there are a couple more of these, but maybe if I get the problem with this one pointed out to me ...

 

Thanks!

 

formula error.PNG

 

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 1 of 6
(4,107 Views)
Solution
Accepted by LV_Pro

Putnam,

 

I think the problem is the character after the parenthesis.  On my Mac it appears as an "n" with a tilde "~" above it.   Replacing that character everywhere it occurs with a minus sign eliminates the error.  I do not know what the correct symbol is - I just used minus for a convenient test.

 

Lynn 

Message 2 of 6
(4,097 Views)

Ha ha ha, thank goodness for Mac's. When I went back and replaced all the "-" with "-" it fixed the problem. The problem was that I had copied/pasted from a pdf document, and what was displayed in the formula node wasn't what it was seeing! So much for WYSIWYG!

 

What a PAIN! It didn't say "What the heck is this weird character", told me that I alternately was missing a right hand parenthesis, or a semi-colon.

 

Thanks,

Message Edited by LV_Pro on 10-21-2009 12:39 PM
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 3 of 6
(4,091 Views)

The change of platforms made it easier this time.  I have seen with string formulas before that error messages often point to the wrong character as the problem.  Not just LV, even spreadsheets.

 

Lynn

0 Kudos
Message 4 of 6
(4,080 Views)

Interesting.

 

I copied the formula, pasted to a string indicator, then converted to hex display.  It appears that the character is hex 96 (decimal 150).  It certainly looks like minus sign (or at least a longer version of a minus sign) on my system.  I looked up character 150 on an ASCII table and it says it is a u with carat ^ overtop.  I don't think there are any real standards as to what the upper half of the ASCII character set is supposed to be.  So perhaps that character varies depending on what system or font it is being displayed in.  I guess the .pdf file used a character set where that character was a better looking minus sign than the real minus sign of decimal 045, hex 2D.

Message 5 of 6
(4,050 Views)

Hi all,

 

it's a hyphen (in German: Bindestrich):

fonttable.PNG

Best regards,
GerdW


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