HP VXI 75000 C Series User's And Scpi Programming Manual page 347

Algorithmic closed loop controller
Table of Contents

Advertisement

PIDA Listing
/****************************************************************************/
/*
I/O Channels
/*
Must be defined by the user
/*
/* inchan - Input channel name
/* outchan - Output channel name
/*
/****************************************************************************/
/*
/****************************************************************************/
/* PID algorithm for E1415A controller module.
/* once per scan trigger by main().
/* and Derivative control.
/*
/*
/* The output is derived from the following equations:
/*
/* PID_out = P_out + I_out + D_out
/* P_out = Error * P_factor
/* I_out = I_out + (Error * I_factor)
/* D_out = ((Error - Error_old) * D_factor)
/* Error = Setpoint - PV
/*
/* where:
/*
Setpoint is the desired value of the process variable (user supplied)
/*
PV is the process variable measured on the input channel
/*
PID_out is the algorithm result sent to the output channel
/*
P_factor, I_factor, and D_factor are the PID constants
/*
(user supplied)
/*
/*
/* At startup, the output will abruptly change to P_factor * Error.
/*
/*
/****************************************************************************/
/*
/* User determined control parameters
Appendix D
PID Algorithm Listings
The following source listings show the actual code for the HP E1415's
default PID algorithms; PIDA, and PIDB. PIDC is an advanced PID
algorithm that is not "built into" the HP E1415A's driver like the other two,
but is included here so you can down-load it using the ALG:DEF command.
Contents
• PIDA Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
• PIDB Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
• PIDC Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
It performs Proportional, Integral
Appendix D
This algorithm is called
PID Algorithm Listings
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
347

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents