VXI VT1538A user manual Controlling Output Polarity, Output Static Digital State

Page 28

Programming Output Channels

Controlling Output Polarity

This section deals with all aspects of programming output channel functions. Channels are configured for output with the I/O direction switches (see "Configuring Input-Output direction" on page 6). A related error message: 3124, "E1538 OE switch OFF conflicts with this command."

Use OUTPut:POLarity NORMal INVerted,(@<ch_list>) to configure output channel logic sense. The operations is as follows:

OUTP:POL NORM

a logical 1 output from the algorithm, or generated

 

within the E1538 (single or repetitive pulses) will

 

turn off the output transistor (can be pulled up).

OUT:POL INV

a logical 1 output from the algorithm, or generated

 

within the E1538 (single or repetitive pulses) will turn

 

off the output transistor (pulls low).

To configure channels 40 to 43 to drive their outputs low for a logic 1

OUTP:POL INV,(@140:143)

Output Static Digital State

This means setting a channel’s digital state when an algorithm executes. To set individual channels to this function use the SCPI command SOURce:FUNCtion[:SHAPe]:CONDition (@<ch_list>)

To configure channels 40 through 43 as static digital outputs, send

*RST

 

SOUR:FUNC:COND (@140:143)

default for all digital outputs

ALG:DEF ’ALG1’,’static float ch0=0, ch1=1, ch2=0, ch3=1; O140=ch0; O141=ch1; O142=ch2; O143=ch3;’

INIT

Figure 15. Output Static Levels

24 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP

Image 28
Contents VT1538A VXI Technology, Inc Introduction Support Resources User’s and Scpi Programming Manual Page Agilent E1538A Enhanced Frequency/Totalize/PWM SCP About this ManualIntroduction Identifying the Plug-on Important Setting Configuration Switches Switch Location and Example SettingsInstallation Connecting To The Terminal ModuleRecommended Signal Connections E1419A Option 11 Terminal Module ConnectionsInput and Output Characteristics Recommended Connections and Voltage LimitsVRS Mode Input Operation SCP Channels 0 & 1 only E1538A Input/Output CharacteristicsProgramming With Scpi Commands Shows the VRS mode input characteristicsConfiguring I/O Direction Setting the Input Threshold LevelDetermining the Input Threshold Level Inppol NormReading Static Digital State To set channels 40 through 43 to input digital statesTotalize Positive or Negative Edge State Changes Init SENSDATACVT? @44About Period Frequency Measurements SENSDATACVT? @45 SENSDATACVT? @45 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Agilent E1538A Enhanced Frequency/Totalize/PWM SCP Sense Quadrature Position Sensfuncquad 0,@148,149RPS Example of Rotational Velocity Sense Sense Rotational VelocityControlling Output Polarity Output Static Digital StateVariable Width Pulse Per Trigger Variable Width Pulse Train PWM Variable Frequency Fixed Width Pulse Train FM Variable Frequency Square-Wave Pulse Train Rotationally Positioned Pulse Output Rotational Pulse Command Usage Algupdate Init Example of variable position, preset width RST Sensfuncrvel 12,MISS,@140Variable Position, Width Preset by Time Example of variable width by angle, preset position Example of variable width by time, preset position Fixed Position, Variable Width by AngleALGSCALAR’ALG1’,’Width2’,.010 Stepper Motor Control Use the command Stepping mode valuesSensfuncvolt @100 Full Step Mode, Full and Half Speed, 4-Channel Page RST and *TST important Scpi Command Reference Command Syntax For newer Units onlyCommand Syntax For newer Units only Discussed INPutPOLarity INPutPOLarity?Parameters CommentsINPutTHResholdLEVel Level can be set to a resolutionINPutTHResholdLEVel? OUTPutPOLarity? OUTPutPOLaritySend with VXIplug&play Function hpe14XXcmdReal64Q SENSeFREQuencyAPERture SENSeFREQuencyAPERture? Related Commands SensfreqaperSENSeFREQuencyLIMitLOWer Init SENSeFREQuencyLIMitLOWer? Related Commands INPutPOLaritySENSeFUNCtionCONDition SENSeFUNCtionFREQuency SENSeFUNCtionPERiodSENSeFUNCtionPWIDth SENSeFUNCtionQUADratureSENSeFUNCtionRVELocity RPS SENSeFUNCtionTOTalize SENSePERiodAPERture SENSePERiodAPERture? SENSePERiodLIMitUPPerInit SENSePERiodLIMitUPPer? SENSePERiodMODESENSePERiodMODE? Related Commands SENSePERiodMODESENSePERiodNPERiods SENSePERiodRANGeUPPer 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 Relationship of minvel, and maxvel SOURcePULMSTATe Usage See Stepper Motor Control onSOURcePULMSTATe? SOURcePULSePERiodSOURcePULSePERiod? SOURcePULSeWIDThSOURceRPULsePOSitionANGLe SOURcePULSeWIDTh?33,554,430 to 33,554,430 SOURRPULseVARType SOURceRPULsePOSitionANGLe?Usage SOURRPULseVARType? SOURceRPULseWIDThANGLeSOURceRPULseWIDThTIME SOURceRPULseWIDThANGLe?00000787 to SOURceRPULseWIDThTIME? Specifications General SpecificationsFrequency Measurement Pulse Width Measure Rotational Pulse Source