Guest
Hi all,
I use OCEAN scripts to simulate circuits. Typically I have one (or
more) script per circuit. At the moment all the variables in my
scripts are global.
However I'd like to reduce the number of global variables, or at least
make such that some variables that are used to simulate one circuit
are invisible when simulating a second one.
I do not want to use let(), because
* I'd like to avoid to explicitly declare each variable
* I still want to access some variables interactively from the CIW
at the end of the script
I thought something like a MATLAB workspace could do the job. I read
about SKILL++ environments, and I thought that they work like MATLAB
workspaces. However:
* Can I use SKILL++ environment in scripts (i.e. non-
interactively)?
* Can you use OCEAN functions directly inside SKILL++ scripts?
* Is there anything with environments functionality that can be
used in (plain) SKILL scripts?
* How are environments setup and used in a script? (simple code
example would help here)
In case I cannot use environments or they turn out to be not a good
solution for me:
* What other options do I have to share/hide variables?
* How can I clear all the variables?
Thanks for any suggestion.
As an example of how I would like to use this functionality, consider
the case where I want to have "workspaces", each dedicated to a
different circuit/script. All variables used in the script
corresponding to one circuit should be hidden when simulating a second
one. If this is not easily possible, than at least clear all variables
before calling a second script would help.
I use OCEAN scripts to simulate circuits. Typically I have one (or
more) script per circuit. At the moment all the variables in my
scripts are global.
However I'd like to reduce the number of global variables, or at least
make such that some variables that are used to simulate one circuit
are invisible when simulating a second one.
I do not want to use let(), because
* I'd like to avoid to explicitly declare each variable
* I still want to access some variables interactively from the CIW
at the end of the script
I thought something like a MATLAB workspace could do the job. I read
about SKILL++ environments, and I thought that they work like MATLAB
workspaces. However:
* Can I use SKILL++ environment in scripts (i.e. non-
interactively)?
* Can you use OCEAN functions directly inside SKILL++ scripts?
* Is there anything with environments functionality that can be
used in (plain) SKILL scripts?
* How are environments setup and used in a script? (simple code
example would help here)
In case I cannot use environments or they turn out to be not a good
solution for me:
* What other options do I have to share/hide variables?
* How can I clear all the variables?
Thanks for any suggestion.
As an example of how I would like to use this functionality, consider
the case where I want to have "workspaces", each dedicated to a
different circuit/script. All variables used in the script
corresponding to one circuit should be hidden when simulating a second
one. If this is not easily possible, than at least clear all variables
before calling a second script would help.