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

Algorithmic closed loop controller
Table of Contents

Advertisement

Program Listings.
'C' Version.
/* $Header: $
*
* C-SCPI Example program for the E1415A Algorithmic Closed Loop Controller
*
* sine_fn.cs
*
* This is a general purpose example of using Custom Functions to generate
* a haversine function.
*
* 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>
#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
INST_DECL(e1415, "E1415A", REGISTER);
/* Use something like this for HP-IB and HP E1405/6 Command Module */
/* #define E1415_ADDR "hpib,22,26"
/*INST_DECL(e1415, "E1415A", MESSAGE); /* E1415 */
/* Declare instruments that will be accessed with SICL. These declarations
* can also be moved into local contexts.
*/
INST vxi;
Appendix F
• 'C' Version. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
• RMB Version. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
*/
/* Most programs use one or more
* functions from the C standard
* library.
*/
/* Most programs will also use standard
* I/O functions.
*/
/* This file is also often useful */
/* Needed for any floating point fn's */
/* C-SCPI include file */
"vxi,208"
/* The SICL address of your E1415 */
/* E1415 */
/* The SICL address of your E1415 */
/* VXI interface session */
Generating User Defined Functions
371

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents