Sensoray 826 Manuale Utente

Navigare online o scaricare Manuale Utente per Hardware Sensoray 826. Sensoray 826 User Manual Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 76
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 0
PCI Express Multifunction I/O Board
Instruction Manual
Model 826 | Rev.3.0.5 | November 2013
Vedere la pagina 0
1 2 3 4 5 6 ... 75 76

Sommario

Pagina 1 - Instruction Manual

PCI Express Multifunction I/O BoardInstruction ManualModel 826 | Rev.3.0.5 | November 2013

Pagina 2

Chapter 3: ProgrammingA software developers kit (SDK) for Model 826 is available for download from Sensoray's web site. The SDK includes Linux an

Pagina 3 - Table of Contents

3.3 Error CodesMost of the API functions return an error code. These functions return zero if no errors are detected, otherwise a negative value will

Pagina 4

Return ValuesThe return value is always zero.RemarksThis function should be called when a process (e.g., an application program) has finished interact

Pagina 5

Parametersboard826 board number. This must match the settings of the board's dip switches as described in section 2.2.timestampPointer to buffer

Pagina 6 - Chapter 1: Preliminary

Chapter 4: Virtual Outputs4.1 IntroductionThe board has six virtual digital output channels, numbered 0 to 5, that can be used by software to signal v

Pagina 7 - Chapter 2: Introduction

int S826_VirtualWrite( uint board, // board identifier uint data, // data to write uint mode // 0=write, 1=clear bits, 2=set bits);P

Pagina 8 - 2.2 Hardware Configuration

int S826_VirtualSafeWrite( uint board, // board identifier uint data, // safemode data uint mode // 0=write, 1=clear bits, 2=set bit

Pagina 9 - 2.4 Cable Installation

enablesPointer to array of values (see Section 4.2) to be programmed into the Safe Enable registers.Return ValuesIf the function succeeds, the return

Pagina 10 - Chapter 3: Programming

Chapter 5: Analog Inputs5.1 IntroductionThe board's analog input system consists of the following major elements:• Analog multiplexer (Mux) - sel

Pagina 11 - 3.4 Open/Close Functions

ADC conversions are disabled upon board reset. Typically, an application program will configure the ADC system (by programming slotlist and slot confi

Pagina 13 - Return Values

5.2 Connector J1All analog input and output signals are available at connector J1.J1 PinoutPin Name Function Pin Name Function1 GNDPower supply common

Pagina 14 - Chapter 4: Virtual Outputs

chanAnalog input channel number in the range 0 to 15.tsettleMicroseconds to allow the analog input to settle before conversion, in the range 0 to 335,

Pagina 15 - 4.2.2 S826_VirtualRead

chanBuffer that will receive the analog input channel number.tsettleBuffer that will receive the analog settling time in microseconds.rangeBuffer that

Pagina 16 - 4.2.4 S826_VirtualSafeRead

int S826_AdcSlotlistRead( uint board, // board identifier uint *slotlist // conversion slot list);Parametersboard826 board number. This mus

Pagina 17

5.3.6 S826_AdcTrigModeReadThe S826_AdcTrigModeRead function reads the ADC triggering mode.int S826_AdcTrigModeRead( uint board, // board identif

Pagina 18 - Chapter 5: Analog Inputs

int S826_AdcEnableRead( uint board, // board identifier uint *enable // enable status);Parametersboard826 board number. This must match the set

Pagina 19 - 5.1.3 Result Registers

Parametersboard826 board number. This must match the settings of the board's dip switches as described in section 2.2.bufPointer to a buffer that

Pagina 20 - 5.3 Programming

The function will operate in either blocking or non-blocking mode depending on the value of tmax. If tmax is zero, the function will return immediatel

Pagina 21 - ≤1+3⋅NumTimeslots+

Chapter 6: Analog Outputs6.1 IntroductionThe 826 board has eight 16-bit, single-ended digital-to-analog converter (DAC) channels. Each channel can be

Pagina 22 - 5.3.4 S826_AdcSlotlistRead

6.1.2 Reset StateUpon reset, all DAC outputs and all channels in both RAM banks are programmed to 0V with the output range set to 0 to +5V.6.2 Connect

Pagina 23 - 5.3.5 S826_AdcTrigModeWrite

Table of ContentsChapter 1: Preliminary... 11.1 Limited Warranty...

Pagina 24 - 5.3.8 S826_AdcEnableRead

6.3.2 S826_DacDataWriteThe S826_DacDataWrite function programs the output voltage of a DAC channel.int S826_DacDataWrite( uint board, // board id

Pagina 25 - 5.3.10 S826_AdcRead

Parametersboard826 board number. This must match the settings of the board's dip switches as described in section 2.2.chanDAC channel number in t

Pagina 26

Chapter 7: Counters7.1 IntroductionThe model 826 board has six identical 32-bit programmable counter channels, numbered 0 to 5. Each counter channel c

Pagina 27 - 5.3.11 S826_AdcWaitCancel

The ClkA, ClkB, and IX inputs employ differential RS-422 line receivers for buffering and noise immunity. All line receivers have built-in termination

Pagina 28 - Chapter 6: Analog Outputs

7.1.5 SnapshotsA “snapshot” consists of three values that are simultaneously sampled in response to a trigger: the counts contained in the counter cor

Pagina 29 - 6.3 Programming

Preload BehaviorMode RegisterBP bitPreload Trigger TypeCounter CoreLoads FromActivatedAfter Preload0 Any Preload0 Preload01Zero Counts Reached Active

Pagina 30 - 6.3.3 S826_DacRead

7.2 Connectors J4/J5Two 26-pin headers, J4 and J5, bring out connections from the board's six counter channels to external field wiring. J4 is us

Pagina 31

External signal connections to a counter channelFunctionPinNameSignalTypeClock SourceQuadrature Single-phase InternalClkAA+RS-422 ClockA+ Clock+ NCTTL

Pagina 32 - Chapter 7: Counters

int S826_CounterSnapshotRead( uint board, // board identifier uint chan, // channel number uint *counts, // pointer to counts buffer ui

Pagina 33 - 7.1.4 ExtOut Signal

Quadrature-encoded clocks are monitored for encoding errors as described in Quadrature Decoder. When an encoding error is detected, a snapshot is capt

Pagina 34 - 7.1.6 Preloading

7.3.14 S826_CounterSnapshotConfigWrite...407.3.15 S826_CounterSnapshotConfigRead...417.3.16 S826_CounterFilterWrite...

Pagina 35 - 7.1.10 Reset State

chanCounter channel number in the range 0 to 5.regidSelects Compare register: 1 = Compare1 register, 0 = Compare0 register.countsValue to be written t

Pagina 36 - 7.2 Connectors J4/J5

If the function fails, the return value is an error code.RemarksThis function forces a snapshot to be captured immediately. It is typically used to ca

Pagina 37 - 7.3 Programming

Return ValuesIf the function succeeds, the return value is zero.If the function fails, the return value is an error code.RemarksThe counts value is im

Pagina 38

Return ValuesIf the function succeeds, the return value is zero.If the function fails, the return value is an error code.RemarksIf sticky is false, th

Pagina 39 - 7.3.2 S826_CounterWaitCancel

The mode, preload, compare, and snapshot configuration registers are not affected when a channel transitions between halted and running states. This f

Pagina 40 - 7.3.5 S826_CounterSnapshot

routeSignal to be connected to ExtIn (this is ignored if mode register field IM=0): 0 to 47 = DIO channel 0 to 47; 48 to 53 = counter channel 0 to 5

Pagina 41 - 7.3.6 S826_CounterRead

cfgFlags with 'E' prefix determine the types of events that will capture snapshots: '1' = enable capturing, '0' = disabl

Pagina 42 - 7.3.9 S826_CounterPreload

If the function fails, the return value is an error code.7.3.16 S826_CounterFilterWriteThe S826_CounterFilterWrite function configures the IX, CLKA, a

Pagina 43 - 7.3.10 S826_CounterStateWrite

chanCounter channel number in the range 0 to 5.cfgPointer to buffer that will receive the configuration. The format of the returned value is identical

Pagina 44 - 7.3.11 S826_CounterStatusRead

NR Preload permissive. Typically used for “one-shot” pulse generator applications.0Allow preloading any time. This can be used for applications such

Pagina 46

XS Index source.0 External IX input, normal polarity.1 External IX input, inverted.2-7 ExtOut from counter channel 0-5 (e.g., 3 = ExtOut from channel

Pagina 47 - 7.3.17 S826_CounterFilterRead

Register ValueMode 0x00000000Preload0 0x00000000Periodic TimerPeriodically capture snapshots.Register ValueMode 0x00402020Snapshot Configuration 0x000

Pagina 48 - 7.3.18 S826_CounterModeWrite

Register ValueMode 0x00008020Snapshot Configuration 0x00000009Preload0 0x00000000Pulse GeneratorGenerate an output pulse on ExtOut in response to a tr

Pagina 49

Chapter 8: Digital I/O8.1 IntroductionThe 826 board has 48 general-purpose digital I/O (DIO) channels. On the output side, each channel has a one-bit,

Pagina 50 - 7.3.20 Common Applications

The channel's DIO_out signal router consists of a data selector that can route either the DIO output register or an alternate source to the I/O p

Pagina 51

8.1.4.1 Noise FilterEach DIO channel input circuit includes a noise filter that can be used to filter glitches (see S826_DioFilterWrite). A filter&apo

Pagina 52

Although the DIO functions read or write values for all 48 DIO channels, the physical read or write operation is performed in steps; channels 0 to 23

Pagina 53 - Chapter 8: Digital I/O

RemarksThis function returns the output register states. Note that the returned values may not be the same as the physical I/O pin states in the case

Pagina 54 - 8.1.4 Pin Timing

Return ValuesIf the function succeeds, the return value is zero.If the function fails, the return value is an error code.RemarksThis function should o

Pagina 55 - 8.3 Programming

int S826_DioSafeEnablesRead( uint board, // board identifier uint enables[2] // pointer to data buffer);Parametersboard826 board number. This

Pagina 56 - 8.3.2 S826_DioOutputRead

Chapter 1: Preliminary1.1 Limited WarrantySensoray Company, Incorporated (Sensoray) warrants the Model 826 hardware to be free from defects in materia

Pagina 57 - 8.3.4 S826_DioSafeWrite

8.3.9 S826_DioCapEnablesReadThe S826_DioCapEnablesRead function returns the programmed edge sensitivity for DIO edge capturing.int S826_DioCapEnablesR

Pagina 58 - 8.3.7 S826_DioSafeEnablesRead

If the function fails, the return value is an error code.RemarksThis function waits for edge events to be captured on an arbitrary set of DIO channels

Pagina 59 - 8.3.8 S826_DioCapEnablesWrite

RemarksThis function cancels blocking for an arbitrary set of DIO channels so that another thread, which is blocked by S826_DioCapRead while waiting f

Pagina 60 - 8.3.10 S826_DioCapRead

Symbol Signal SourceC0 Counter 0 ExtOutC1 Counter 1 ExtOutC2 Counter 2 ExtOutC3 Counter 3 ExtOutC4 Counter 4 ExtOutC5 Counter 5 ExtOutRST Watchdog RST

Pagina 61 - 8.3.11 S826_DioWaitCancel

enablesPointer to a buffer (see Section 8.3) that specifies filter enables for the DIO channels: '1'=enable, '0'=disable.Return Va

Pagina 62

Chapter 9: Watchdog Timer9.1 IntroductionThe model 826 board has a multistage watchdog timer that can activate the board's safemode system and ge

Pagina 63 - 8.3.14 S826_DioFilterWrite

determines the pulse duration and PGAP determines the gap time between pulses. The RST signal is not internally connected to the host computer's

Pagina 64 - 8.3.15 S826_DioFilterRead

Quadlet Register Functiontiming[0] DELAY0 Timer0 interval. The program must kick the watchdog within this interval to prevent a watchdog timeout. This

Pagina 65 - Chapter 9: Watchdog Timer

Parametersboard826 board number. This must match the settings of the board's dip switches as described in section 2.2.enableSet to '1'

Pagina 66 - 9.3 Programming

Flag FunctionTO2 Timer2 timeoutTO1 Timer1 timeoutTO0 Timer0 timeoutReturn ValuesIf the function succeeds, the return value is zero.If the function fai

Pagina 67 - 9.3.2 S826_WatchdogConfigRead

Chapter 2: Introduction2.1 OverviewModel 826 is a PCI Express board that features an assortment of I/O interfaces commonly used in measurement and con

Pagina 68 - 9.3.5 S826_WatchdogStatusRead

RemarksThis function can operate in either blocking or non-blocking mode. If tmax is zero, the function will return immediately. If tmax is greater th

Pagina 69 - 9.3.7 S826_WatchdogEventWait

Chapter 10: Safemode Controller10.1 IntroductionThe 826 board features a fail-safe controller that forces analog and digital outputs to predetermined

Pagina 70 - 9.3.8 S826_WatchdogWaitCancel

These API functions write to SWE protected registers:• S826_DacRangeWrite and S826_DacDataWrite (when safemode argument = '1')• S826_DioOutp

Pagina 71 - 10.1 Introduction

int S826_SafeControlRead( uint board, // board identifier uint *settings // safemode settings);Parametersboard826 board number. This must match

Pagina 72 - 10.2 Programming

wrenPointer to buffer that will receive the write protection status: 0 = write protected, 2 = write enabled.Return ValuesIf the function succeeds, the

Pagina 73 - 10.2.4 S826_SafeWrenRead

Chapter 11: SpecificationsDigital I/OChannels Number/type 48 bi-directionalSignal levels 5 V TTL/CMOSSampling rate 50 Ms/sOutput Driver type Open drai

Pagina 74

Watchdog TimerTimer stages Number 3Interval (per stage) Programmable from 1 to 232-1 * 20 ns (20 ns to ~85.9 s)Output events Stage 0: Fail-safe trigge

Pagina 75 - Chapter 11: Specifications

2.1.1 Timestamp GeneratorA timestamp generator is shared by the analog input system and counter channels. The timestamp generator is a free-running 32

Pagina 76

2.3 Board Layout2.4 Cable InstallationThe 826 board should be connected to external circuitry with Sensoray cables, model 826C1 (26 conductor, for cou

Commenti su questo manuale

Nessun commento