LTSpice PWL help

Thread Starter

kamodan

Joined Jun 15, 2012
2
I'm using LTSpice to simulate a circuit and I need to use Voltage supplies as a model for an output of a sensor. I have the sensor data, but I believe it isn't in a standard format for LTSpice to use because I receive an error saying "Missing value for final PWL time in source V3". Anyone know the standard way for the PWL file to look? See attached for the sensor data.
 

Attachments

Ron H

Joined Apr 14, 2005
7,063
Here is a snippet from the help file:

Syntax: Vxxx n+ n- PWL(t1 v1 t2 v2 t3 v3...)

Arbitrary Piece-wise linear voltage source.

For times before t1, the voltage is v1. For times between t1 and t2, the voltage varies linearly between v1 and v2. There can be any number of time, voltage points given. For times after the last time, the voltage is the last voltage.

Attached is a file I have used to test switch debouncers. The format works on LTspice.
Use the help file. It can answer most questions that come up.
 

Attachments

Top