beautypg.com

Sethispeedmode – Sensoray 118 User Manual

Page 18

background image

Sensoray Model 118 Smart A/D™ Instruction Manual

16

Commands: Board Configuration

6.1.3 SetHiSpeedMode

Decreases the channel slot time (Section 8.1) to enable
higher throughput.

Assuming, for example, that the board is operating in the
default 60Hz rejection mode, this command will cause all
channel slot times to be reduced from 22 milliseconds
(default) to 9 milliseconds, and the board will be
operating in the “high-speed mode.”

Decreasing the slot time causes measurement accuracy to
be reduced by approximately 75 percent and may cause

increased measurement noise. Also, line frequency
rejection is no longer possible as the digitization period is
shorter than one line cycle.

A board reset will restore slot times to their default
values. This is the only way to resume the default update
rate after invoking the

SetHiSpeedMode

function.

When the high-speed mode is already active, any attempt
to invoke this command again will be ignored.

Driver

// Switch a Smart A/D board to the high speed measurement mode.

VOID SetHiSpeedMode( USHORT BasePort )

{

SendByte( BasePort, CMD_EXTENDED );

SendByte( BasePort, XCMD_SET_HISPEED );

SendByte( BasePort, 0 );

}

Example

// Configure a board to operate in the high speed mode.

SetHiSpeedMode( MyBasePort );

Command: (240),(8),(0)

Response:

None

This manual is related to the following products: