10-21-2009 10:50 AM
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!
Solved! Go to Solution.
10-21-2009 11:25 AM
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
10-21-2009 11:37 AM - edited 10-21-2009 11:39 AM
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,
10-21-2009 12:03 PM
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
10-21-2009 09:43 PM
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.
10-22-2009 01:45 AM