Highlighted

Access public variable of encrypted supercomponent by simulation model

Experimenter
Experimenter

Hello,

 

I am useing an encrypted supercomponent in AMEsim 15.2. If I run a simulation, the supercomponent displays several internal variables (e.g. some pressures). However none of the outputs of the supercomponent include those variables. Still, I would like to use those variables in my simulation. I am able to get the category path (e.g. pressure5@encryptedblock), but if I use them as the value of a constant or gain, AMEsim gives me an error: "Illegal character has been found."

 

Is there a possibility for the my simulation model to access the openly displayed variables of the encrypted supercomponent (maybe with a script?)?

 

Cheers,

Andreas

1 REPLY 1

Re: Access public variable of encrypted supercomponent by simulation model

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

The only way to use a variable during the simulation is if it exists at a port.

For standard submodels it is possible to "sense" some internal variables and create a port for them:

image.png

.image.png

 

But I'm afraid with the encrypted supercomponent this is not available.

You would have to ask the owner of the supercomponent to sense the variables you need and output them at a port.