Home
  • Products
  • Solutions
  • Support
  • Company

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  • Products
  • Solutions
  • Support
  • Company
Community PCB Design & IC Packaging (Allegro X) PSpice How to define measurement statements to get simulation output...

Stats

  • Replies 1
  • Subscribers 28
  • Views 761
  • Members are here 0
More Content

How to define measurement statements to get simulation output results in a textual format ?

AyushD
AyushD 3 months ago

Allegro PSpice Simulator allows us to define measurement statements that can analyze simulation data of different analysis types and generate a text file with measurement data on the output simulation waveform.

You can use the `.MEAS` or `.MEASURE` command the `.MEAS`. The measurements are assigned to unique variables defined by the user, which can be invoked in other measurement expressions.

To use these measurements, you can create a new text file with the `.inc` extension and add the measurement commands.
Configure the file in the design simulation settings.

The measurement results will be generated as a text file inside the project folder after a successful simulation.

There are several types of measurements you can perform using the `.MEAS` command:

1. `TRIG...TARG`: Find the difference in the x-axis value (time/frequency/variable) when conditions are met (between the trigger point and the target point)
2. `FIND...WHEN`: Find the value of the argument when the specified condition is met.
3. `AVG, MIN, MAX, PP, RMS, MIN_AT, MAX_AT`: Calculate average, minimum, maximum, peak-to-peak, RMS, minimum at, and maximum at values.
4. `PARAM`: Measure a parametric expression defined in curly braces.

The general syntax for the `.MEAS` command is:
.MEASURE {DC|AC|TRAN} <measurement variable name>

Example: Find the average voltage of the node ‘out’ within a time interval of 1 ms to 1.2 ms.

.MEAS TRAN avg_out_vAVG V(out) FROM 1m TO 1.2m

Result: AVG_OUT_V: AVG(V(OUT))= 3.9711E+00 FROM 1.0000E-03 TO 1.2000E-03

  • Sign in to reply
  • Cancel
Parents
  • ML202412179931
    ML202412179931 1 month ago

    To define measurement statements and obtain simulation output results in a textual format using Allegro PSpice Simulator, you use the .MEAS (or .MEASURE) command. This command allows you to define poki specific measurements on waveforms generated during simulations. To begin, you need to create a file with a .inc extension, which contains the measurement commands. This file is then included in your simulation setup. The general syntax for the .MEAS command is: .MEASURE {DC|AC|TRAN} <measurement_variable_name> <measurement_type> <measurement_target>, where {DC|AC|TRAN} specifies the type of analysis (DC, AC, or Transient), <measurement_variable_name> is the user-defined variable that stores the measurement result, <measurement_type> defines the type of measurement (such as AVG, MIN, MAX, RMS), and <measurement_target> indicates the signal or waveform to be measured. For example, to measure the average voltage of a node out over a time interval from 1ms to 1.2ms in a transient analysis, the command would be .MEASURE TRAN Avg_Voltage AVG V(out) FROM=1ms TO=1.2ms. After running the simulation, the measurement results will be saved in a text file within the project folder, which you can review.

    I hope this helps

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • ML202412179931
    ML202412179931 1 month ago

    To define measurement statements and obtain simulation output results in a textual format using Allegro PSpice Simulator, you use the .MEAS (or .MEASURE) command. This command allows you to define poki specific measurements on waveforms generated during simulations. To begin, you need to create a file with a .inc extension, which contains the measurement commands. This file is then included in your simulation setup. The general syntax for the .MEAS command is: .MEASURE {DC|AC|TRAN} <measurement_variable_name> <measurement_type> <measurement_target>, where {DC|AC|TRAN} specifies the type of analysis (DC, AC, or Transient), <measurement_variable_name> is the user-defined variable that stores the measurement result, <measurement_type> defines the type of measurement (such as AVG, MIN, MAX, RMS), and <measurement_target> indicates the signal or waveform to be measured. For example, to measure the average voltage of a node out over a time interval from 1ms to 1.2ms in a transient analysis, the command would be .MEASURE TRAN Avg_Voltage AVG V(out) FROM=1ms TO=1.2ms. After running the simulation, the measurement results will be saved in a text file within the project folder, which you can review.

    I hope this helps

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information