This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TINA/Spice: TINA - is it possible to load frequency, amplitude and phase for AC transfer characteristic?

Other Parts Discussed in Thread: TINA-TI

Tool/software: TINA-TI or Spice Models

Hi, 

In "AC transfer characteristic" we normally use a generator which produces a constant amplitude for all frequencies.

Is it possible instead to import some file, or manually enter frequency and amplitude for sweep sine? 

Maybe is it even possible to make some "block" or macro model which converts input sine into a sine with different magnitude and frequency based on such a table?

We have a system in which, when we drive actuator with sine wave, sensor produces a signal with different amplitude and phase (the "plant Transfer Function"), and we can easily obtain this transfer function in a table form:

freq Mag, dB phase
1000 -19.39 -81.45
950 -18.56 -73.03
900 -17.49 -63.59
850 -16.6 -56.63
800 -15.54 -47.25
750 -14.61 -37.31
700 -13.59 -27.96
650 -12.59 -17.88
600 -11.47 -6.99
550 -10.38 3.86
500 -9.21 15.75

Some transfer functions are simple and COULD be created using R-C-L filters in TINA (like red plot below), but some are difficult to create using filtering (blue):

The goal is to create analog compensator using OPAMs and R-C-L filters to have good gain, broad bandwidth feedback based on plant transfer function,
which of cause is easier and quicker in TINA than on breadboard with real components

Thanks!

Igor

    

  • Hi Igor,

    We're looking into this.

    Herman
  • 8484.Example.TSCHi Igor,

    Yes, there is a way in TINA:

    1. Place a voltage generator -> Select sinewave as the type of the generator

    2. Go to "Analysis" -> Select Control Object -> Select the Voltage Generator (when you successfully select voltage generator, it will have * mark next to VG1)

    3. Then Double Click the voltage Generator, click sinewave, click "..." button, then click "..." button either for the amplitude or the frequency.

    4. Run simulation as usual.

    Attached.

    Herman

  • Hi, Herman,

    Thanks for the answer, but your way is good for the time domain simulation.

    For the frequency domain, the frequency gets overwritten by this dialog:

    So, normally during  AC transfer characteristic, frequency starts from 10 Hz up to 1 MHz, and between 10 and 1000000 100 frequencies values,
    logarithmically equally spaced in this frequency span, are calculated, and at each test frequency TINA calculates mag and phase on test voltage pin.

    Question is: is it possible to tell TINA to use frequencies defined by user, not automatically calculated?

    The show my intend, the analogy would be variable value analysis, but instead of resistor values table is there a place I could enter my frequencies, (maybe amplitudes, phases) as input for signal generator? 

    So, DURING Transfer Characteristic Analysis, TINA would use frequencies values set by user, not automatically calculated.

  • Hi Igor,

    Unfortunately, it is not possible.

    Herman