Programming Example; System Configuration - Keysight VXI Bus 75000 C Series User And Programming Manual

Digital i/o module
Hide thumbs Also See for VXI Bus 75000 C Series:
Table of Contents

Advertisement

Keysight E1458A Register Information

Programming Example

The example in this section demonstrates how to program the module at the
register level. The programs follow the execution and timing models covered in
the previous section. The examples in this section include:

System Configuration

The following example programs were developed with the module at logical
address 144. The C language programs were developed on an Keysight V382
using ANSI C programming language and SICL (Standard Instrument Control
Library).
/* C register programming example */
#include <stdio.h>
#include <sicl.h>
/* Setup the registers and offsets */
#define mfr_id
#define dev_id
#define card_stat0x04
#define port_xfr_0
#define port_xfr_1
#define port_xfr_2
#define port_xfr_3
#define port_ctl_0
#define port_ctl_1
#define port_ctl_2
#define port_ctl_3
#define port_data_0 0x2C
#define port_data_1 0x2D
#define port_data_2 0x2E
#define port_data_3 0x2F
#define port_hand_00x30
#define port_hand_10x31
#define port_hand_20x32
#define port_hand_30x33
#define port_del_0
138
– Resetting the module
– Reading the ID, Device Type, and Status Registers
– Writing 8-bit data bytes
– Reading 8-bit data bytes
– Handshaking a port
0x00
0x02
0x24
0x25
0x26
0x27
0x28
0x29
0x2A
0x2B
0x34
Keysight E1458A 96-Channel Digital I/O Module User Guide
Programming Example

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1458a

Table of Contents