|
|
|
@ -9,7 +9,6 @@ Georgia Tech Research Corporation |
|
|
|
Atlanta, Georgia 30332 |
|
|
|
PROJECT A-8503-405 |
|
|
|
|
|
|
|
|
|
|
|
AUTHORS |
|
|
|
|
|
|
|
19 June 1992 Jeffrey P. Murray |
|
|
|
@ -19,7 +18,7 @@ MODIFICATIONS |
|
|
|
|
|
|
|
19 June 1992 Jeffrey P. Murray |
|
|
|
22 October 2022 Holger Vogt |
|
|
|
|
|
|
|
05 October 2024 Holger Vogt |
|
|
|
|
|
|
|
SUMMARY |
|
|
|
|
|
|
|
@ -38,7 +37,6 @@ REFERENCED FILES |
|
|
|
|
|
|
|
Inputs from and outputs to ARGS structure. |
|
|
|
|
|
|
|
|
|
|
|
NON-STANDARD FEATURES |
|
|
|
|
|
|
|
NONE |
|
|
|
@ -49,31 +47,19 @@ NON-STANDARD FEATURES |
|
|
|
|
|
|
|
#include <math.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*=== CONSTANTS ========================*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*=== MACROS ===========================*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*=== LOCAL VARIABLES & TYPEDEFS =======*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*=== FUNCTION PROTOTYPE DEFINITIONS ===*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*============================================================================== |
|
|
|
|
|
|
|
FUNCTION cm_potentiometer() |
|
|
|
@ -123,12 +109,8 @@ void cm_potentiometer (ARGS) |
|
|
|
double vr1; /* voltage at r1 */ |
|
|
|
double vwiper; /* voltage at wiper */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mif_Complex_t ac_gain; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve frequently used parameters... */ |
|
|
|
|
|
|
|
position = PARAM(position); |
|
|
|
@ -164,10 +146,6 @@ void cm_potentiometer (ARGS) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Output DC & Transient Values */ |
|
|
|
|
|
|
|
if(ANALYSIS != MIF_AC) { |
|
|
|
@ -224,7 +202,3 @@ void cm_potentiometer (ARGS) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|