VXI SVM2608 user manual Microprocessor Commands, Measurement Commands

Page 41

www.vxitech.com

MICROPROCESSOR COMMANDS

Unless otherwise specified, commands are issued to each channel’s command register. After issuing a command, the user must wait until the command is executed before issuing a new command to the same channel. The module sets the Command Register to all zeros when a command is finished executing. Issuing a new command before a command completes will yield unpredictable results and may place the board into an unknown state. It is acceptable, however, to issue a command to a different channel without waiting for the current channel to finish execution.

Measurement Commands

The following is a list of the measurement commands:

NOTE

The currents generated by the current sources are listed here for REFERENCE only. The board is

 

not designed to be a precision current source. These current sources are used for resistance

 

measurements, but all the calculations are adjusted to the internally calibrated values.

 

0x0001

= Peak Voltage Calculation

 

0x0002

= DC Voltage Calculation

 

0x0003

= RMS Voltage Calculation

 

0x0004

= Peak-to-Peak Voltage Calculation

 

0x0005

= 100 Ω Range Resistance Measurement (2-wire)

 

0x0006

= 1 kΩ Range Resistance Measurement (2-wire)

 

0x0007

= 10 kΩ Range Resistance Measurement (2-wire)

 

0x0008

= 100 kΩ Range Resistance Measurement (2-wire)

 

0x0009

= 1 MΩ Range Resistance Measurement (2-wire)

0x000A = Auto-range Resistance Measurement (2-wire)

0x000B = 100 Ω Range Resistance Measurement (4-wire)

0x000C = 1 kΩ Range Resistance Measurement (4-wire)

0x000D = 10 kΩ Range Resistance Measurement (4-wire)

0x000E = 100 kΩ Range Resistance Measurement (4-wire)

0x000F = 1 MΩ Range Resistance Measurement (4-wire)

0x0010 = Auto-Range Resistance Measurement (4-wire)

0x0011 = Perform Self-Test

0x0012 = 1 V Range Voltage Measurement

0x0013 = 2 V Range Voltage Measurement

0x0014 = 5 V Range Voltage Measurement

0x0015 = 10 V Range Voltage Measurement

0x0016 = 20 V Range Voltage Measurement

0x0017 = 50 V Range Voltage Measurement (for Channels 0-3 Only)

0x0019 = Auto Range Voltage Measurement 0x001A = Minimum Voltage Calculation 0x001B = Resistance Calculation

0x001C = Set current source for 100 Ω / 1 kΩ measurement (≈ 2 mA) 0x001D = Set current source for 10 kΩ measurement (≈ 0.2 mA) 0x001E = Set current source for 100 kΩ measurement (≈ 0.02 mA) 0x001F = Set current source for 1 MΩ measurement (≈ 0.002 mA)

0x0020 = Correct setup with calibrations (set offset & gain DACs and calibrated trigger levels based on calibration values)

0x0021 = 0.5 V Range Voltage Measurement (for Channels 4-5 Only)

SVM2608 Programming

41

Image 41
Contents SVM2608 VXI Technology, Inc Table of Contents Self Test Command Limitation of Warranty WarrantyCertification Restricted Rights LegendSteve Mauga, QA Manager EMCTerms and Symbols Service should only be performed by qualified personnelUse Proper Power Cord Use Proper Power SourceGround the Product Avoid Electric ShockOperating Conditions Improper UseVXI Technology Cleveland Instrument Division VXI Technology World HeadquartersVXI Technology Lake Stevens Instrument Division Technical SupportVXI Technology, Inc SVM2608 Preface Overview IntroductionScale Triggering Acquiring DataPre-Trigger Linear ModeDelayed Trigger Commands Fifo ModeCalibrations Test BusOption SVM2608 Block Diagram Physical Description SVM2608 Environmental SpecificationsGND CH1I CH3I Front Panel Interface WiringGND CH1I+ GND CH3I+ Exttrigin CH0I CH2IMtbf 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 toFunction Offset Device Memory MapsReserved Register OffsetMS = 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 INTLVL2 Force Trigger, Start Register 0x02 Read & WriteHSTRIGSRC2 EXT Trig SlopeExternal Trigger Level 0x06 Read & Write TimeoutctlReserved 4WIREOHMS 2WIREOHMSLINEAR/FIFO ATTN-GAIN1-GAIN0KHz 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 CommandsSample Points Calibration CommandsSample Rate Trigger Event Forced TriggerPage 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