VXI VT1538A user manual SCPI Command Reference, Command Syntax, For newer, Page, units only

Page 46
SCPI Command Reference

SCPI Command Reference

Most of the E1538’s commands were available since its introduction. A small number of commands are only available with E1538’s built after February 1998. The following table indicates these new commands with an X in the "for newer units only" column. See "Identifying the Plug-on" on page 5

Table 2.

 

 

 

 

 

 

Command Syntax

For newer

Page

 

 

 

units only

Discussed

 

 

 

 

 

 

 

INPut:POLarity NORM INV,(@<ch_list>)

 

44

 

 

INPut:POLarity? (@<ch_list>)

 

44

 

 

INPut:THReshold[:LEVel] <level>,(@<ch_list>)

 

45

 

 

INPut:THReshold[:LEVel]? (@<channel>)

 

45

 

 

[SENSe:]FUNCtion:CONDition (@<ch_list>)

 

50

 

 

[SENSe:]FUNCtion:FREQuency (@<ch_list>)

 

51

 

 

SENSe:FREQuency:APERture <time>,(@<ch_list>)

 

47

 

 

SENSe:FREQuency:APERture? (@<channel>)

 

48

 

 

SENSe:FREQuency:LIMit:LOWer <freq_limit>,(@<ch_list>)

X

48

 

 

SENSe:FREQuency:LIMit:LOWer? (@<channel>)

X

50

 

 

[SENSe:]FUNCtion:PERiod (@<ch_list>)

X

51

 

 

SENSe:PERiod:APERture <time>,(@<ch_list>)

X

56

 

 

SENSe:PERiod:APERture? (@<channel>)

X

57

 

 

SENSe:PERiod:LIMit:UPPer <per_limit>,(@<ch_list>)

X

57

 

 

SENSe:PERiod:LIMit:UPPer? (@<channel>)

X

59

 

 

SENSe:PERiod:MODE APERture NPERiods,(@<ch_list>)

X

59

 

 

SENSe:PERiod:MODE? (@<channel>)

X

60

 

 

SENSe:PERiod:NPERiods <count>,(@<ch_list>)

X

60

 

 

SENSe:PERiod:NPERiods? (@<channel>)

X

61

 

 

SENSe:PERiod:RANGe[:UPPer] <count>,(@<ch_list>)

X

61

 

 

SENSe:PERiod:RANGe[:UPPer]? (@<channel>)

X

62

 

 

[SENSe:]FUNCtion:PWIDth <avg_count>,(@<ch_list>)

 

52

 

 

[SENSe:]FUNCtion:QUADrature [<preset_count>,](@<ch_list>)

 

52

 

 

[SENSe:]FUNCtion:RVELocity <n_teeth>,<index_type>,(@<ch_list>)

 

53

 

 

[SENSe:]FUNCtion:TOTalize (@<ch_list>)

 

55

 

 

[SENSe:]TOTalize:RESet:MODE INIT TRIG,(@<ch_list>)

 

62

 

 

 

 

 

 

 

 

 

 

 

42 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP

Image 46
Contents ENHANCED FREQUENCY/TOTALIZE/ PWM SIGNAL CONDITIONING PLUG-ON 82-0093-000 Release April 28 VXI Technology, Inc 2031 Main StreetIrvine, CA 949 VT1538AVXI Technology, Inc Dynamic DAC Products INTRODUCTIONStatic DAC Products VXI Technology Cleveland Division SUPPORT RESOURCESVXI Technology World Headquarters VXI Technology Lake Stevens Instrument DivisionAgilent Technologies E1538A Enhanced Frequency/Totalize/PWM User’s and SCPI Programming ManualSignal Conditioning Plug-on Agilent 75000 Series CPage About this Manual Agilent E1538A Enhanced Frequency/Totalize/PWM SCPIntroduction Identifying the Plug-on IMPORTANT Configuring Input- Output direction Setting Configuration SwitchesConfiguring Channel Pull-up Resistor Installation Connecting To The Terminal ModuleFigure 4. E1419A Option 11 Terminal Module Connections Recommended Signal 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 Setting the Input Threshold Level Configuring the ChannelsConfiguring I/O Direction 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 Controlling Output Polarity Programming Output ChannelsOutput Static Digital State Variable Width Pulse Per Trigger Figure 17. Output Pulse-Width-Modulated Signal Variable Width Pulse Train PWM26 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Variable Frequency Fixed Width Pulse Train FM Figure 19. Output Square Wave Variable Frequency FM Variable Frequency Square-Wave Pulse Train FM28 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Rotationally Positioned Pulse Output Rotational Pulse Command Usage Variable Angular Position, Preset Pulse Width by angle Rotational Pulse ModeFigure 21. Variable Position, Width Preset by Angle Variable Angular Position, Preset Pulse Width by timeExample of variable position, preset width 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 positionFigure 24. Fixed Position, Variable Width by Time preset ch 46 pulse width to 10mspreset ch 47 pulse width to 15ms 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 For newer SCPI Command ReferenceCommand Syntax PageDiscussed Parameters INPutPOLarityINPutPOLarity? CommentsINPutTHResholdLEVel level can be set to a resolution ofINPutTHResholdLEVel? Send with VXIplug&play Function hpe14XXcmdReal64Q OUTPutPOLarityOUTPutPOLarity? generatedSENSeFREQuencyAPERture RST Condition .001 sec Send with VXIplug&play Function hpe14XXcmdSENSeFREQuencyAPERture? Related Commands SENSFREQAPERSENSeFREQuencyLIMitLOWer INIT SENSeFUNCtionCONDition Related Commands INPutPOLaritySENSeFREQuencyLIMitLOWer? 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 RST Condition is “APERture” SENSePERiodLIMitUPPer?SENSePERiodMODE SENSePERiodMODE mode,@chlist selects the measurementSENSePERiodNPERiods Related Commands SENSePERiodMODESENSePERiodMODE? interval mode currently set for period measurementSENSePERiodRANGeUPPer SENSePERiodNPERiods?Send with VXIplug&play Function hpe14XXcmdInt32Q SENSePERiodRANGeUPPer? SENSeTOTalizeRESetMODERST Condition is Send with VXIplug&play Function hpe14XXcmd SENSeTOTalizeRESetMODE? SOURceFMSTATeSOURceFMSTATe? Send with VXIplug&play Function hpe14XXcmdInt16QSOURceFUNCtionRPULse SOURceFUNCtionSHAPeCONDition SOURceFUNCtionSHAPePULSeSOURceFUNCtionSTEPper SOURceFUNCtionSHAPeSQUareComments Send with VXIplug&play Function hpe14XXcmd Figure 31. Relationship of minvel, and maxvel Table 3. Stepping mode values68 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SOURcePULMSTATe Usage See “Stepper Motor Control” on pageSOURcePULMSTATe? SOURcePULSePERiodSOURcePULSePERiod? SOURcePULSeWIDThSOURceRPULsePOSitionANGLe SOURcePULSeWIDTh?33,554,430 to 33,554,430 SOURRPULseVARType SOURceRPULsePOSitionANGLe?Usage SOURceRPULseWIDThANGLe SOURRPULseVARType?74 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP SOURceRPULseWIDThTIME SOURceRPULseWIDThANGLe?00000787 to Usage SOURRPULSEWIDTTIME? @147 SOURceRPULseWIDThTIME?76 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Output Characteristics SpecificationsGeneral Specifications Input CharacteristicsTotalizer 1 mSec to 1 Second, resolutionResolution Hz Frequency MeasurementFrequency Source Rotational Velocity MeasurePulse Width Measure Pulse Source80 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP CharacteristicsRotational Pulse Source Extra Tooth Wheel