Back to Forums
2 posts / 0 new
Last post
#1 Apr 3, 2020
dkrzy
Offline
Last seen: 4 years 1 week ago
Joined: 2020-03-20 10:35

Variables for PWL settings

How can I use variables for PWL settings such as the REPEAT FOR or TIME_SCALE_FACTOR?

Mon, 2024-03-25 04:56
adamcrowley
Offline
Last seen: 3 weeks 22 hours ago
Joined: 2024-03-25 04:51

In PSpice, you can use variables for PWL (Piece-Wise Linear) settings such as REPEAT FOR or TIME_SCALE_FACTOR by utilizing the capabilities of the simulator's scripting or programming features. Here's an example of how you can achieve this:

Define Variables: Define your variables for REPEAT FOR and TIME_SCALE_FACTOR at the beginning of the PSpice code or script. Assign the desired values to these variables. For example:

.REPEAT PARAM REPEAT_FOR=10 TIME_SCALE_FACTOR=0.5 bloxd io

Download PSpice and try it for free! Download Free Trial
Cadence