beautypg.com

Sensoray 826 User Manual

Page 3

background image

Table of Contents

Chapter 1:

Preliminary

...................................... 1

1.1

Limited Warranty

................................................. 1

1.2

Handling Instructions

........................................... 1

Chapter 2:

Introduction

..................................... 2

2.1

Overview

.............................................................. 2

2.1.1

Timestamp Generator

...........................................3

2.1.2

Board Reset

.......................................................... 3

2.2

Hardware Configuration

......................................3

2.3

Board Layout

....................................................... 4

2.4

Cable Installation

................................................. 4

Chapter 3:

Programming

................................... 5

3.1

Thread Safety

....................................................... 5

3.1.1

Atomic Read-Modify-Write

.................................5

3.2

Event-Driven Applications

..................................5

3.3

Error Codes

.......................................................... 6

3.4

Open/Close Functions

.......................................... 6

3.4.1

S826_SystemOpen

............................................... 6

3.4.2

S826_SystemClose

.............................................. 6

3.5

Status Functions

................................................... 7

3.5.1

S826_VersionRead

.............................................. 7

3.5.2

S826_TimestampRead

......................................... 7

Chapter 4:

Virtual Outputs

................................ 9

4.1

Introduction

.......................................................... 9

4.1.1

Safemode

..............................................................9

4.2

Programming

........................................................ 9

4.2.1

S826_VirtualWrite

............................................... 9

4.2.2

S826_VirtualRead

..............................................10

4.2.3

S826_VirtualSafeWrite

......................................10

4.2.4

S826_VirtualSafeRead

.......................................11

4.2.5

S826_VirtualSafeEnablesWrite

......................... 11

4.2.6

S826_VirtualSafeEnablesRead

.......................... 12

Chapter 5:

Analog Inputs

................................ 13

5.1

Introduction

........................................................ 13

5.1.1

Triggering

.......................................................... 14

5.1.2

Burst Counter

..................................................... 14

5.1.3

Result Registers

................................................. 14

5.2

Connector J1

...................................................... 15

5.3

Programming

...................................................... 15

5.3.1

S826_AdcSlotConfigWrite

................................ 15

5.3.2

S826_AdcSlotConfigRead

................................. 16

5.3.3

S826_AdcSlotlistWrite

...................................... 17

5.3.4

S826_AdcSlotlistRead

....................................... 17

5.3.5

S826_AdcTrigModeWrite

................................. 18

5.3.6

S826_AdcTrigModeRead

.................................. 19

5.3.7

S826_AdcEnableWrite

...................................... 19

5.3.8

S826_AdcEnableRead

....................................... 19

5.3.9

S826_AdcStatusRead

.........................................20

5.3.10

S826_AdcRead

................................................ 20

5.3.11

S826_AdcWaitCancel

......................................22

Chapter 6:

Analog Outputs

............................. 23

6.1

Introduction

........................................................ 23

6.1.1

Safemode

............................................................23

6.1.2

Reset State

..........................................................24

6.2

Connector J1

...................................................... 24

6.3

Programming

...................................................... 24

6.3.1

S826_DacRangeWrite

........................................24

6.3.2

S826_DacDataWrite

.......................................... 25

6.3.3

S826_DacRead

...................................................25

Chapter 7:

Counters

........................................27

7.1

Introduction

........................................................ 27

7.1.1

ClkA, ClkB and IX Signals

................................27

7.1.2

Quadrature Decoder

........................................... 28

7.1.3

ExtIn Signal

....................................................... 28

7.1.4

ExtOut Signal

.....................................................28

7.1.5

Snapshots

........................................................... 29

7.1.6

Preloading

.......................................................... 29

7.1.7

Tick Generator

................................................... 30

7.1.8

Cascading

........................................................... 30

7.1.9

Status LEDs

....................................................... 30

7.1.10

Reset State

........................................................30

7.2

Connectors J4/J5

................................................ 31

7.2.1

Counter Signals

.................................................. 31

7.2.2

Application Connections

....................................32

7.3

Programming

...................................................... 32

7.3.1

S826_CounterSnapshotRead

..............................32

7.3.2

S826_CounterWaitCancel

..................................34

7.3.3

S826_CounterCompareWrite

.............................34

7.3.4

S826_CounterCompareRead

..............................35

7.3.5

S826_CounterSnapshot

......................................35

7.3.6

S826_CounterRead

............................................ 36

7.3.7

S826_CounterPreloadWrite

............................... 36

7.3.8

S826_CounterPreloadRead

................................ 37

7.3.9

S826_CounterPreload

........................................ 37

7.3.10

S826_CounterStateWrite

................................. 38

7.3.11

S826_CounterStatusRead

................................ 39

7.3.12

S826_CounterExtInRoutingWrite

....................39

7.3.13

S826_CounterExtInRoutingRead

....................40

S826 Instruction Manual

i

Table of Contents