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

Algorithmic closed loop controller
Table of Contents

Advertisement

simp_pid.cs
/* $Header: $
*
* C-SCPI Example program for the E1415A Algorithmic Closed Loop Controller
*
* simp_pid.cs
*
* This program example shows the use of the intrinsic function PIDB.
*
* This is a template for building E1415A C programs that may use C-SCPI
* or SICL to control instruments.
*/
/* Standard include files */
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h> /* This file is also often useful */
#include <math.h>
/* Other system include files */
/* Whenever using system or library calls, check the call description to see
* which include files should be included.
*/
/* Instrument control include files */
#include <cscpi.h>
/* Declare any constants that will be useful to the program. In particular,
* it is usually best to put instrument addresses in this area to make the code
* more maintainable.
*/
#define E1415_ADDR
Appendix G
Example Program Listings
This appendix includes listings of example programs that are not printed in
other parts of the manual. The example "simp_pid.cs" is shown here because
the listing in Chapter 3 is a shortened version.
• simp_pid.cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
• file_alg.cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
• swap.cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
• tri_sine.cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
/* Most programs use one or more
* functions from the C standard
* library.
*/
/* Most programs will also use standard
* I/O functions.
*/
/* Needed for any floating point fn's */
/* C-SCPI include file */
"vxi,208"
/* The SICL address of your E1415 */
Appendix G
Example Program Listings
389

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents