VXI VM4016 user manual Bracketing a Voltage, Sets the external interrupt output to be active high

Page 38

VXI Technology, Inc.

BRACKETING A VOLTAGE

In this example, an input voltage level will be bracketed for an over or under-voltage error condition. The input voltage of 5.0 V will be monitored for an over-voltage of 5.25 V and an under-voltage of 4.75 V. The error condition must be true for longer than 750 µs. An interrupt will be generated if either of these conditions occur. Channel 1 will use for an over-voltage and Channel 2 for an under-voltage. Channel 1 and Channel 2 positive (+) sides will be tied together externally. Channel 1 and Channel 2 negative (-) sides will be grounded. The output interrupt will not be latched but will be pulsed.

COMMANDS

DESCRIPTION

INP:RANG 10,(@1,2)

Selects ±10 Volts as the input range for Channel 1

 

and 2.

INP:DEB 75e-5

Sets the debounce time limit to 750 s.

INP:MASK 1,(@1,2)

Enables Channel 1or 2 to generate an interrupt.

INP:MASK 0,(@3:16)

Disables Channels 3 through 16 from generating an

 

interrupt.

INP:POL NORM,(@1)

Selects Channel 1 to generate an interrupt when

 

Channel 1 is greater than the offset voltage.

INP:POL INV,(@2)

Selects Channel 2 to generate an interrupt when

 

Channel 2 is less than the offset voltage.

INP:OFFS +5.25,(@1)

Selects +5.25 volts as the offset (reference) voltage

 

for Channel 1.

INP:OFFS +4.75,(@2)

Selects +4.75 volts as the offset (reference) voltage

 

for Channel 2.

OUTP:POL:EXT:INT NORM

Sets the external interrupt output to be active high.

Figure 3-2and the explanation that follows illustrates what is occurring during this example.

38

VM4016 Programming

Image 38
Contents VM4016 Page Table of Contents VXI Technology, Inc Certification WarrantyLimitation of Warranty Restricted Rights LegendC L a R a T I O N O F C O N F O R M I T Y EMCGeneral Safety Instructions Terms and SymbolsThis product. Product should be inspected or serviced Support Resources VXI Technology, Inc VM4016 Preface Introduction IntroductionDescription Front Panel LayoutVM4016 Block Diagram VM4016 General Specifications IRQ OutputPreparation for USE InstallationCalculating System Power and Cooling Requirements Front Panel Interface Wiring Setting the Chassis Backplane JumpersSetting the Logical Address Signal PIN Number Analog Comparator PIN Outs1631 Examples of Scpi Commands FETCHCONDITIONED? ProgrammingFETCHLATCHED? FETCHRAW? Inhousepseudo Inhouseregint InhouseregintInhouseregenable Inhouseclearlatch Inputdebounce ExamplesInputmask INPMASK?INPutMASKINTerrupt boolean Where boolean is 0 OFF 1 on InputmaskinterruptInputoffset INPOFFS?Inputpolarity INPutPOLarity NORM,@35Inputrange Outputpolarityexternalinterrupt Outputpolarityexternallatched Application Examples ExampleCommands Description Single Channel OperationControl Page Bracketing a Voltage Sets the external interrupt output to be active highBracketing AN Input Voltage Page Register Access Examples Register MAPFor example Pseudo Register Access VXIPLUG&PLAY Driver Examples VM4016 Programming VXI Technology, Inc Command Dictionary Alphabetical Command ListingIeee 488.2 Common Commands Instrument Specific Scpi Commands NormalScpi Required Commands Command Dictionary Query ParametersCommon Scpi Commands CLSESE Response DescriptionESR? IDN? OPC Query Parameters Query Response DescriptionRST SRE STB? TRG TST? WAI OPCInstrument Specific Scpi Commands FETChCONDitioned?FETChLATChed? FETChRAW? Inhouseclearlatch Inhousepseudo Inhouseregint Inhouseregenable INPutDEBounce INPutMASK INPutMASKINTerrupt INPutOFFSet INPutPOLarity INPutRANGe OUTPutPOLarityEXTernalINTerrupt OUTPutPOLarityEXTernalLATChed Required Scpi Commands STATusOPERationCONDition?STATusOPERationENABle STATusOPERationEVENt? STATusPRESet STATusQUEStionableCONDition? STATusQUEStionableENABle STATusQUEStionableEVENt SYSTemERRor? SYSTemVERSion? Theory of Operation Input Range Control Relay Signal Comparison Interrupt Generation Interrupt Generation Index OUTPutPOLarityEXTernalLATChed