Eric
It looks to me like your problem is the Tcl expression. The Tcl interpreter
doesn't return the value of gaindb. Ptolemy will rather replace the
expression '{ gaindb }' by its value, e.g., 4.0. Tcl will then try to
evaluate the command '4.0', which causes the error message. So you might
want to try to change the Tcl expression to something that just returns the
value, for example ! "concat {gaindb}", which works for me.
Sascha
> -----Original Message-----
> From: Eric Laeuffer [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, November 27, 1998 11:28 PM
> To: ptolemy
> Subject: tcl in parameters
>
> I have problems to put some tcl expressions in universe's parameters.
>
> This is what I did :
>
> -I added a parameter "gaindb" value=6 type=float
> - then an other one "gain" type=float value= ! " { gaindb } "
>
> It is a very simple exemple isn't it.
>
> And then when I want to run my universe I have errors messages:
>
> Error: The Tcl interpreter reported an error in evaluating
> '{gainddb}':invalid command name " gaindb"
>
> then
>
> Error : Mygalaxie : Parameter initialization error : could not evaluate
> '{gaindb}' which was expanded into '{gaindb}'
>
>
> BUT
> When I use some Ptolemy exemple's, I can put some expressions !!!
> So I think I have problem in my parameters setting.
>
> Can you help me please ?
> Thank's
>
>
> --
> Eric Laeuffer
> prof : mailto:[EMAIL PROTECTED]
> perso : mailto:[EMAIL PROTECTED]
>
>
>
>
> --------------------------------------------------------------------------
> --
> Posted to the ptolemy-hackers mailing list. Please send administrative
> mail for this list to: [EMAIL PROTECTED]
----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]