VXI SVM2608 user manual Error Processing

Page 47

www.vxitech.com

0x1028 Set the V Negative 0.1177 calibration gain value, calibration value.

All the calibration commands use the channel’s base address at offset zero (0x000000 for Channel 0, 0x200000 for Channel 1, 0x400000 for Channel 2 and 0x600000 for Channel 3) for communication with the processor. This is where the user places the data it wants the processor to write when it issues a “Set …” command. This is also where the processor places the data for the user to read when the user issues a “Read …” command.

When the user issues a “Set …” command, the value is read by the processor from the channel’s base address at offset zero and it is stored in its local volatile calibration memory. Each calibration value has its own location in the volatile calibration memory.

The 0x1001 command takes the values from the volatile calibration memory and stores them in non-volatilememory. If the values in the non-volatile calibration memory have been changed by the user, issuing this command will permanently erase the values set by the factory and replace them with the new values set by the user.

The 0x1000 command reloads the values stored in the non-volatilememory into the volatile calibration memory. This operation is executed by the microprocessor at power-up automatically. This is useful for the user in the event that the calibration memory is accidentally changed and the user wants to recall the factory preset values from the non-volatile memory.

Error Processing

Each channel has its own ERROR queue. Sending the 0x1024 command to a channel’s command register will return an error code to the channel’s base address at offset zero. If several errors occur at the same time or if the user does not read the error queue to clear the error codes, the error codes will accumulate in a queue. The error queue is five positions deep. Only the first error in the queue is returned when a “Read the error queue command” is sent. When there are no more errors in the queue, the error code returned is 0x0000. Here is the list of error codes returned by the processor:

NO_ERROR0x0000

ERROR_UNKNOWN_COMMAND0x0001

ERROR_PRE_GT_SIZE0x0002

ERROR_RESISTANCE_OVER_RANGE 0x0101

ERROR_UNSTABLE_RESISTANCE 0x0102

ERROR_UNSTABLE_VOLTAGE 0x0103

ERROR_INVALID_RES_CH0x0104

ERROR_INVALID_CH0x0105

ERROR_MULTIPLE_TEST_SOURCES 0x0201

ERROR_NONVOL_READ0x0202

ERROR_NONVOL_WRITE0x0203

ERROR_NONVOL_DEFAULTED 0x0204

ERROR_FLASH_BURN0x0205

ERROR_HS_NONVOL_READ0x0206

ERROR_HS_NONVOL_WRITE0x0207

ERROR_HS_NONVOL_DEFALTED 0x0208

ERROR_INTERNAL_SOFTWARE 0x0911

ERROR_INTERNAL_RANGE0x0912

ERROR_QUEUE_OVFL0xFFFF

SVM2608 Programming

47

Image 47
Contents SVM2608 VXI Technology, Inc Table of Contents Self Test Command Restricted Rights Legend WarrantyLimitation of Warranty CertificationSteve Mauga, QA Manager EMCUse Proper Power Source Service should only be performed by qualified personnelTerms and Symbols Use Proper Power CordImproper Use Avoid Electric ShockGround the Product Operating ConditionsTechnical Support VXI Technology World HeadquartersVXI Technology Cleveland Instrument Division VXI Technology Lake Stevens Instrument DivisionVXI Technology, Inc SVM2608 Preface Overview IntroductionScale Triggering Acquiring DataPre-Trigger Linear ModeDelayed Trigger Test Bus Fifo ModeCommands CalibrationsOption SVM2608 Block Diagram Physical Description SVM2608 Environmental SpecificationsCH1I+ GND CH3I+ Exttrigin CH0I CH2I Front Panel Interface WiringGND CH1I CH3I GNDMtbf SVM2608 SpecificationsOption 1 SVM2608-01 VXI Technology, Inc SVM2608 Introduction Setting the Chassis Backplane Jumpers Calculating System Power and Cooling RequirementsRotary Switch Locations Setting the Base AddressMSB LSB ExampleDivide Decimal Module INSTALLATION/REMOVAL Switch to C and the front switch toRegister Offset Device Memory MapsFunction Offset ReservedMS = Most Significant LS = Least Significant SVM2608 A32 Register MAP0x72 Command Register Channel 0x74 Databyte Ordering Determining the Register Address Sysfailctl Accessing the RegistersDescription of Registers EXT Trig Slope Force Trigger, Start Register 0x02 Read & WriteINTLVL2 HSTRIGSRC2External Trigger Level 0x06 Read & Write TimeoutctlReserved ATTN-GAIN1-GAIN0 2WIREOHMS4WIREOHMS LINEAR/FIFOKHz Channels 0-3/5 MHz Channels 4-5 LPF Control This bit Sample Rate 0x0C, 0x34, 0x5C, 0x84 Read & WriteSample Rate 0x0E, 0x36, 0x5E, 0x86 Read & Write Sample Rate, High-Speed 0xAE, 0xD6 Read & Write Sample Rate, High-Speed 0xAC, 0xD4 Read & WriteTimeout 0x1C, 0x44, 0x6C, 0x94, 0xBC, 0xE4 Read & Write Reserved Registers 0xF8 0xFC Fifo Data 0x24, 0x4C, 0x74, 0x9C, 0xC4, 0xEC Read OnlyFifo Data 0x26, 0x4E, 0x76, 0x9E, 0xC6, 0xEE Read Only Trigger Delay = Measurement Commands Microprocessor CommandsCaptured Data Calculations Resistance Measurement Dynamic Method Self Test CommandResistance Measurement Offset Method Example Preset Setting Measurement CommandsTrigger Event Forced Trigger Calibration CommandsSample Points Sample RatePage Error Processing There are no errors in the queue Diagnostic Commands Changes become effective the next time the module powers up Examples Example 2 Setting Channel 2 to Acquire 200,000 SamplesExample 3 Setting Channel 2 to Pre-acquire 100,000 Samples Timeout Register = Timeout Base * 213 + Timeout Counter Timeout Counter = Timeout / Timeout Base ClockVXI Technology, Inc SVM2608 Programming Data Swapping Example Appendix aVXI Technology, Inc SVM2608 Appendix a Index