getvalue inside math/conditional

22 views
Skip to first unread message

Derginer

unread,
Jan 26, 2012, 3:22:05 PM1/26/12
to IADS
Having trouble with getvalue from a text input inside of math and
conditional statements. Is this a known issue or something that can't
be used?

Example, choose(selector,
getvalue("PARM1","value"),getvalue("PARM2","value")) returns a 0,
which I think means the getvalue never connected to the control. Same
issue with all the math functions, like abs(getvalue...) chokes I'm
guessing becuse its trying to take the absolute value of 0.

Adam Chant

unread,
Jan 26, 2012, 4:33:24 PM1/26/12
to ia...@googlegroups.com
Matt,
What version of IADS are you using?

Did you know that we have a tool that can be used in most cases to debug
derived parameters. Depending on the version of IADS you are using, it has
varying function related to getvalue() calls, but it may help in tracking
down any possible errors in the equation.
Just find the parameter in question in the Parameter tool, right click on it
and select Debug Parameter.
This will open up the Parameter Analysis Tool for that parameter and also
show the chain of associated parameters and equations.
Like I said not all derived functionality is implemented at this time, but
it's a good tool to troubleshoot these kinds of issues.

It was originally found in IADS 7.1 and has had a number of improvements
since that time.

In your case;
GetValue is a little picky about how it can be embedded in equations so you
will need to leave getvalue calls as their own parameter then include that
parameter in the equation. When you create that getvalue make sure that the
data type reflects the type you wish to see..

I would say this is not the intended functionality so I will make a note of
it.
Sorry about that.


Adam Chant
Symvionics, Inc.
IADS Application Engineer
(661) 273-7003 x 210

--
You received this message because you are subscribed to the Google Groups
"IADS" group.
To post to this group, send email to ia...@googlegroups.com.
To unsubscribe from this group, send email to
iads+uns...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/iads?hl=en.

Matt Derginer

unread,
Jan 27, 2012, 9:42:43 AM1/27/12
to ia...@googlegroups.com
Thanks Adam, we are using 7.3. I have played around with the debug
functionality a little bit, have been out of using IADS for a year or
so, but this seems like a really nice upgrade. For now, I will follow
your guidance on the getvalue function. Thanks.

Matt

Reply all
Reply to author
Forward
0 new messages