开云体育

Execute .meas file


 

开云体育

  1. Which temporary file(s) do we need to keep, if we want to return to a model and execute one of several .meas scripts?
  2. Is there a way (maybe in batch mode?) to execute a meas script without re-running the simulation?

I have several worst-case analysis models that take at least several minutes to run (8, 9, + variables).

I’d like to run the meas scripts to extract different sets of measurements, drawn from one Run.

At least in XVII, the Execute script command is only under the File menu on the Plot page…

?

Thanks,

Dave

?

?


 

I am not in the habit of running .MEAS scripts, so my answers may or may not help
?
Bell, Dave wrote:
  1. Which temporary file(s) do we need to keep, if we want to return to a model and execute one of several .meas scripts?
I would not think you need any temporary files.? I could be wrong, but I think you need only the .MEAS script files themselves, and of course the .RAW output file.

2. Is there a way (maybe in batch mode?) to execute a meas script without re-running the simulation?
If you come back to a previously run simulation and want to examine the results without re-running the simulation, use Right-click > View > Visible Traces.? That loads the .RAW file back into LTspice and you should be back to where you were when the simulation completed.? I'm assuming that would be all you need to do before executing .MEAS scripts.
?
The alternative to Right-click is: View (menu bar) > Visible Traces.? The hotkeys are Alt-V-V (in older LTspice versions).
?
Andy
?


 

开云体育

Thanks, Andy!

?

  1. Yeah, the .RAW is what I thought.

But if I rename that with a different extension, it still runs the script.

In the Help. there’s a hint that it can also derive data from the Plot.

  1. Ah-hah!? I will try that.

That would load everything back into memory.

?

?

From: [email protected] <[email protected]> On Behalf Of Andy I via groups.io
Sent: Monday, May 19, 2025 3:33 PM
To: [email protected]
Subject: EXTERNAL: Re: [LTspice] Execute .meas file

?

I am not in the habit of running .MEAS scripts, so my answers may or may not help

?

Bell, Dave wrote:

  1. Which temporary file(s) do we need to keep, if we want to return to a model and execute one of several .meas scripts?

I would not think you need any temporary files.? I could be wrong, but I think you need only the .MEAS script files themselves, and of course the .RAW output file.

?

2. Is there a way (maybe in batch mode?) to execute a meas script without re-running the simulation?

If you come back to a previously run simulation and want to examine the results without re-running the simulation, use Right-click > View > Visible Traces.? That loads the .RAW file back into LTspice and you should be back to where you were when the simulation completed.? I'm assuming that would be all you need to do before executing .MEAS scripts.

?

The alternative to Right-click is: View (menu bar) > Visible Traces.? The hotkeys are Alt-V-V (in older LTspice versions).

?

Andy

?


 

You can also open a .RAW file directly into LTspice, and see all your waveforms, and maybe run .MEAS scripts.? But doing it that way, they won't be associated with a schematic.? To re-establish the ability to click on schematic nets to see waveforms, you have to open the schematic first, then View > Visible Traces.
?
I went my first few years using LTspice, not aware that I should do that - until Helmut pointed it out.
?
Andy
?


 

开云体育

I closed LTspice along with the schematic, then opened just the sch.

View, either by right-clicking the schematic, or from the View menu option, has Visible Traces grayed out until a Run.

?

I haven’t yet tried opening a RAW file directly. That’s next…

?

From: [email protected] <[email protected]> On Behalf Of Andy I via groups.io
Sent: Monday, May 19, 2025 5:00 PM
To: [email protected]
Subject: EXTERNAL: Re: [LTspice] Execute .meas file

?

You can also open a .RAW file directly into LTspice, and see all your waveforms, and maybe run .MEAS scripts.? But doing it that way, they won't be associated with a schematic.? To re-establish the ability to click on schematic nets to see waveforms, you have to open the schematic first, then View > Visible Traces.

?

I went my first few years using LTspice, not aware that I should do that - until Helmut pointed it out.

?

Andy

?


 

开云体育

To follow up, loading a .raw file directly then works to execute .meas files.

So, answering my original question, after a complete Run, save (in Settings) the raw file(s), or make a copy, while the simulation is still in the app,

Reloading that .raw file gives access to the large data from a long and multipart simulation.

?

Dave

?

From: [email protected] <[email protected]> On Behalf Of Bell, Dave via groups.io
Sent: Monday, May 19, 2025 5:27 PM
To: [email protected]
Subject: EXTERNAL: Re: [LTspice] Execute .meas file

?

I closed LTspice along with the schematic, then opened just the sch.

View, either by right-clicking the schematic, or from the View menu option, has Visible Traces grayed out until a Run.

?

I haven’t yet tried opening a RAW file directly. That’s next…

?

From: [email protected] <[email protected]> On Behalf Of Andy I via groups.io
Sent: Monday, May 19, 2025 5:00 PM
To: [email protected]
Subject: EXTERNAL: Re: [LTspice] Execute .meas file

?

You can also open a .RAW file directly into LTspice, and see all your waveforms, and maybe run .MEAS scripts.? But doing it that way, they won't be associated with a schematic.? To re-establish the ability to click on schematic nets to see waveforms, you have to open the schematic first, then View > Visible Traces.

?

I went my first few years using LTspice, not aware that I should do that - until Helmut pointed it out.

?

Andy

?


 

Dave,
?
When you loaded the schematic, and View > Visible Traces didn't work, was the .RAW file in the same place?
?
That would make LTspice unable to find it.? That's the only thing I can think of.
?
Andy