Hi,
you can place an output port on your top level schematic. When you run plecs('simulate') it returns the values of the signals that are connected to top-level output ports. These values can then be assigned to variables in the next simulation run (using the ModelVars struct in the simulate command).
Kind regards,
Oliver