VXI VT1538A user manual About Period and Frequency Measurements

Page 20
About Period and

About Period and

Frequency

Measurements

The E1538A actually measures signal period for both the period and frequency functions. If the measurement function is set to frequency rather than period, the SCP returns the reciprocal of the measured period. The resolution of each period measurement is based on the time processor chip’s timer period (238.4nS). To improve resolution on faster input signals, multiple signal periods can be measured and averaged. For period measurements there are two different modes that can be used to control the number of periods to average. For frequency measurements only the APERture mode is available.

1.The [SENSe:]PERiod:NPERiod mode explicitly sets the number of signal periods to measure and average. The time it takes the SCP to return a reading is dependent on the input signal period (for a given NPERiod setting), longer signal periods take longer to return a reading.

In NPERiod mode the actual measurement resolution (in seconds) is fixed while the relative resolution (as a percentage of the input signal period) is variable. That is, when NPERiods is set to provide an adequate resolution for short period signals, long period signals will have increased resolution.

2.The APERture mode sets a fixed duration that the SCP will use to measure multiple signal periods. The actual effective APERture

<time> will be:

INT

æ-------------------------------

<time>

-ö

´ signal_period .

 

èsignal_periodø

 

The minimum aperture will be 1 signal period, and the maximum will be 255 signal periods.

In APERture mode, the effective resolution (in seconds) varies with the period of the input signal. That is, as the signal period is reduced, the number of measurements averaged increases, thereby improving the effective resolution. However, the relative resolution (as a percentage of the input signal period) is fairly constant with changes in signal period.

Generally, more measurements (greater NPERiod count or longer APERture time) means a more accurate frequency value. Of course more measurements means that the reading returned contains more latency (is “older” in relation to the signal's current frequency). To track fast changing frequency, you have to trade-off some accuracy with a shorter aperture time.

16 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP

Image 20
Contents 82-0093-000 Release April 28 VXI Technology, Inc 2031 Main Street Irvine, CA 949ENHANCED FREQUENCY/TOTALIZE/ PWM SIGNAL CONDITIONING PLUG-ON VT1538AVXI Technology, Inc Static DAC Products INTRODUCTIONDynamic DAC Products SUPPORT RESOURCES VXI Technology World HeadquartersVXI Technology Cleveland Division VXI Technology Lake Stevens Instrument DivisionUser’s and SCPI Programming Manual Signal Conditioning Plug-onAgilent Technologies E1538A Enhanced Frequency/Totalize/PWM Agilent 75000 Series CPage About this Manual Agilent E1538A Enhanced Frequency/Totalize/PWM SCPIntroduction Identifying the Plug-on IMPORTANT Configuring Channel Pull-up Resistor Setting Configuration SwitchesConfiguring Input- Output direction Installation Connecting To The Terminal Module8 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Recommended Signal ConnectionsFigure 4. E1419A Option 11 Terminal Module Connections Input and Output Characteristics VRS Mode Input Operation SCP channels 0 & 1 only Programming With SCPI Commands Configuring the Channels Configuring I/O DirectionSetting the Input Threshold Level Checking the ID of the SCPDetermining the Input Threshold Level returns threshold valueReading Static Digital State To set channels 40 through 43 to input digital statesTotalize Positive or Negative Edge State Changes About Period and Frequency Measurements To measure frequency at channel 45 with aperture of 1 second For PERiod function, the E1538 spports two distinct measurement ranges To measure period at channel 45 as the average of 1000 signal periods chlist specifies the channels that will read pulse widths Sense Quadrature Position The value read by the algorithm can range from Example of Rotational Velocity Sense Output Static Digital State Programming Output ChannelsControlling Output Polarity Variable Width Pulse Per Trigger 26 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Variable Width Pulse Train PWMFigure 17. Output Pulse-Width-Modulated Signal Variable Frequency Fixed Width Pulse Train FM 28 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Variable Frequency Square-Wave Pulse Train FMFigure 19. Output Square Wave Variable Frequency FM Rotationally Positioned Pulse Output Rotational Pulse Command Usage Variable Angular Position, Preset Pulse Width by angle Rotational Pulse ModeVariable Angular Position, Preset Pulse Width by time Example of variable position, preset widthFigure 21. Variable Position, Width Preset by Angle 32 Agilent E1538A Enhanced Frequency/Totalize/PWM SCPVariable Pulse Width by angle, Preset Angular Position Figure 22. Variable Position, Width Preset by TimeExample of variable width by angle, preset position 34 Agilent E1538A Enhanced Frequency/Totalize/PWM SCPVariable Pulse Width by time, Preset Angular Position Example of variable width by time, preset positionpreset ch 46 pulse width to 10ms preset ch 47 pulse width to 15msFigure 24. Fixed Position, Variable Width by Time 36 Agilent E1538A Enhanced Frequency/Totalize/PWM SCPStepper Motor Control Use the command motor phase channel group can not be split across SCPs Figure 27. Full Step Mode, Full and Half Speed, 4-Channel Figure 28. Half Step Mode, Full Speed, 4-ChannelFigure 29. Directly Driving 4-Phase Stepper Motors 40 Agilent E1538A Enhanced Frequency/Totalize/PWM SCPRST and *TST important SCPI Command Reference Command SyntaxFor newer PageDiscussed INPutPOLarity INPutPOLarity?Parameters CommentsINPutTHResholdLEVel? level can be set to a resolution ofINPutTHResholdLEVel OUTPutPOLarity OUTPutPOLarity?Send with VXIplug&play Function hpe14XXcmdReal64Q generatedSENSeFREQuencyAPERture RST Condition .001 sec Send with VXIplug&play Function hpe14XXcmdSENSeFREQuencyLIMitLOWer Related Commands SENSFREQAPERSENSeFREQuencyAPERture? INIT Related Commands INPutPOLarity SENSeFREQuencyLIMitLOWer?SENSeFUNCtionCONDition Returned Value .01667 to 250, The type is float32SENSeFUNCtionFREQuency SENSeFUNCtionPERiodSENSeFUNCtionPWIDth SENSeFUNCtionQUADratureSENSeFUNCtionRVELocity Usage See “Sense Quadrature Position” on pageUsage See “Sense Rotational Velocity” on page 54 Agilent E1538A Enhanced Frequency/Totalize/PWM SCPSENSeFUNCtionTOTalize Usage See “Totalize Positive or Negative Edge State Changes” on pageSENSePERiodAPERture SENSePERiodAPERture? SENSePERiodLIMitUPPer58 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SENSePERiodLIMitUPPer? SENSePERiodMODERST Condition is “APERture” SENSePERiodMODE mode,@chlist selects the measurementRelated Commands SENSePERiodMODE SENSePERiodMODE?SENSePERiodNPERiods interval mode currently set for period measurementSend with VXIplug&play Function hpe14XXcmdInt32Q SENSePERiodNPERiods?SENSePERiodRANGeUPPer RST Condition is Send with VXIplug&play Function hpe14XXcmd SENSeTOTalizeRESetMODESENSePERiodRANGeUPPer? SENSeTOTalizeRESetMODE? SOURceFMSTATeSOURceFMSTATe? Send with VXIplug&play Function hpe14XXcmdInt16QSOURceFUNCtionRPULse SOURceFUNCtionSHAPeCONDition SOURceFUNCtionSHAPePULSeComments Send with VXIplug&play Function hpe14XXcmd SOURceFUNCtionSHAPeSQUareSOURceFUNCtionSTEPper 68 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Table 3. Stepping mode valuesFigure 31. Relationship of minvel, and maxvel SOURcePULMSTATe Usage See “Stepper Motor Control” on pageSOURcePULMSTATe? SOURcePULSePERiodSOURcePULSePERiod? SOURcePULSeWIDTh33,554,430 to 33,554,430 SOURcePULSeWIDTh?SOURceRPULsePOSitionANGLe Usage SOURceRPULsePOSitionANGLe?SOURRPULseVARType 74 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SOURRPULseVARType?SOURceRPULseWIDThANGLe 00000787 to SOURceRPULseWIDThANGLe?SOURceRPULseWIDThTIME 76 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SOURceRPULseWIDThTIME?Usage SOURRPULSEWIDTTIME? @147 Specifications General SpecificationsOutput Characteristics Input Characteristics1 mSec to 1 Second, resolution Resolution HzTotalizer Frequency MeasurementRotational Velocity Measure Pulse Width MeasureFrequency Source Pulse SourceCharacteristics Rotational Pulse Source80 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Extra Tooth Wheel