LTSpice PWL help

Discussion in 'General Electronics Chat' started by kamodan, Jun 15, 2012.

  1. kamodan

    Thread Starter New Member

    Jun 15, 2012
    2
    0
    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.
     
  2. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    656
    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.
     
Loading...