VXI VT1538A Variable Pulse Width by time, Preset Angular Position, Rotational Pulse Mode

Page 39
Variable Pulse Width (by time), Preset Angular Position

Figure 23. Fixed Position, Variable Width by Angle

Rotational Pulse Mode:

Variable Pulse Width (by time), Preset Angular Position

In this mode, the pulse duration (in seconds) is controlled by the algorithm, and the angular position is preset before INIT. See Figure 24. Use the following command sequence:

SOURce:FUNCtion:RPULse (@<ref_channel>),(@<ch_list>) to select the channels that will output angular positioned pulses, and to specify the reference channel.

SOURce:RPULse:POSition[:ANGLe] <degrees>,(@<ch_list>) to preset the angular pulse position in degrees. The algorithm will control the pulse duration.

SOUR:RPULse:VARType TIME,(@<ch_list>) to set the type of value that will vary with algorithm control (in this case pulse duration in seconds).

Example of variable width (by time), preset position:

Set up channel 40 as the reference channel, and channels 45 through 47 to output variable width pulses:

*RST

SENS:FUNC:RVEL 12,MISS,(@140) SOUR:FUNC:RPULSE (@140),(@145:147) SOUR:RPULSE:POS:ANGL 20,(@145)

sense rvel for reference channel 3 rotational pulse output chans preset channel 45 pulse position to 20 degrees

Agilent E1538A Enhanced Frequency/Totalize/PWM SCP 35

Image 39
Contents VT1538A 82-0093-000 Release April 28 VXI Technology, Inc 2031 Main StreetIrvine, CA 949 ENHANCED FREQUENCY/TOTALIZE/ PWM SIGNAL CONDITIONING PLUG-ONVXI Technology, Inc INTRODUCTION Dynamic DAC ProductsStatic DAC Products VXI Technology Lake Stevens Instrument Division SUPPORT RESOURCESVXI Technology World Headquarters VXI Technology Cleveland DivisionAgilent 75000 Series C User’s and SCPI Programming ManualSignal Conditioning Plug-on Agilent Technologies E1538A Enhanced Frequency/Totalize/PWMPage Agilent E1538A Enhanced Frequency/Totalize/PWM SCP About this ManualIntroduction Identifying the Plug-on IMPORTANT Setting Configuration Switches Configuring Input- Output directionConfiguring Channel Pull-up Resistor Connecting To The Terminal Module InstallationRecommended Signal Connections Figure 4. E1419A Option 11 Terminal Module Connections8 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Input and Output Characteristics VRS Mode Input Operation SCP channels 0 & 1 only Programming With SCPI Commands Checking the ID of the SCP Configuring the ChannelsConfiguring I/O Direction Setting the Input Threshold Levelreturns threshold value Determining the Input Threshold LevelTo set channels 40 through 43 to input digital states Reading Static Digital StateTotalize 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 Programming Output Channels Controlling Output PolarityOutput Static Digital State Variable Width Pulse Per Trigger Variable Width Pulse Train PWM Figure 17. Output Pulse-Width-Modulated Signal26 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Variable Frequency Fixed Width Pulse Train FM Variable Frequency Square-Wave Pulse Train FM Figure 19. Output Square Wave Variable Frequency FM28 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Rotationally Positioned Pulse Output Rotational Pulse Command Usage Rotational Pulse Mode Variable Angular Position, Preset Pulse Width by angle32 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Variable Angular Position, Preset Pulse Width by timeExample of variable position, preset width Figure 21. Variable Position, Width Preset by AngleFigure 22. Variable Position, Width Preset by Time Variable Pulse Width by angle, Preset Angular Position34 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Example of variable width by angle, preset positionExample of variable width by time, preset position Variable Pulse Width by time, Preset Angular Position36 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP preset ch 46 pulse width to 10mspreset ch 47 pulse width to 15ms Figure 24. Fixed Position, Variable Width by TimeStepper Motor Control Use the command motor phase channel group can not be split across SCPs Figure 28. Half Step Mode, Full Speed, 4-Channel Figure 27. Full Step Mode, Full and Half Speed, 4-Channel40 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Figure 29. Directly Driving 4-Phase Stepper MotorsRST and *TST important Page SCPI Command ReferenceCommand Syntax For newerDiscussed Comments INPutPOLarityINPutPOLarity? Parameterslevel can be set to a resolution of INPutTHResholdLEVelINPutTHResholdLEVel? generated OUTPutPOLarityOUTPutPOLarity? Send with VXIplug&play Function hpe14XXcmdReal64QRST Condition .001 sec Send with VXIplug&play Function hpe14XXcmd SENSeFREQuencyAPERtureRelated Commands SENSFREQAPER SENSeFREQuencyAPERture?SENSeFREQuencyLIMitLOWer INIT Returned Value .01667 to 250, The type is float32 Related Commands INPutPOLaritySENSeFREQuencyLIMitLOWer? SENSeFUNCtionCONDitionSENSeFUNCtionPERiod SENSeFUNCtionFREQuencySENSeFUNCtionQUADrature SENSeFUNCtionPWIDthUsage See “Sense Quadrature Position” on page SENSeFUNCtionRVELocity54 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Usage See “Sense Rotational Velocity” on pageUsage See “Totalize Positive or Negative Edge State Changes” on page SENSeFUNCtionTOTalizeSENSePERiodAPERture SENSePERiodLIMitUPPer SENSePERiodAPERture?58 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SENSePERiodMODE mode,@chlist selects the measurement SENSePERiodLIMitUPPer?SENSePERiodMODE RST Condition is “APERture”interval mode currently set for period measurement Related Commands SENSePERiodMODESENSePERiodMODE? SENSePERiodNPERiodsSENSePERiodNPERiods? SENSePERiodRANGeUPPerSend with VXIplug&play Function hpe14XXcmdInt32Q SENSeTOTalizeRESetMODE SENSePERiodRANGeUPPer?RST Condition is Send with VXIplug&play Function hpe14XXcmd SOURceFMSTATe SENSeTOTalizeRESetMODE?Send with VXIplug&play Function hpe14XXcmdInt16Q SOURceFMSTATe?SOURceFUNCtionRPULse SOURceFUNCtionSHAPePULSe SOURceFUNCtionSHAPeCONDitionSOURceFUNCtionSHAPeSQUare SOURceFUNCtionSTEPperComments Send with VXIplug&play Function hpe14XXcmd Table 3. Stepping mode values Figure 31. Relationship of minvel, and maxvel68 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Usage See “Stepper Motor Control” on page SOURcePULMSTATeSOURcePULSePERiod SOURcePULMSTATe?SOURcePULSeWIDTh SOURcePULSePERiod?SOURcePULSeWIDTh? SOURceRPULsePOSitionANGLe33,554,430 to 33,554,430 SOURceRPULsePOSitionANGLe? SOURRPULseVARTypeUsage SOURRPULseVARType? SOURceRPULseWIDThANGLe74 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SOURceRPULseWIDThANGLe? SOURceRPULseWIDThTIME00000787 to SOURceRPULseWIDThTIME? Usage SOURRPULSEWIDTTIME? @14776 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Input Characteristics SpecificationsGeneral Specifications Output CharacteristicsFrequency Measurement 1 mSec to 1 Second, resolutionResolution Hz TotalizerPulse Source Rotational Velocity MeasurePulse Width Measure Frequency SourceExtra Tooth Wheel CharacteristicsRotational Pulse Source 80 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP