Download VM4018 - VTI Instruments
Transcript
VXI Technology, Inc. SINGLE CHANNEL OPERATION This example is for controlling a device that can tolerate a maximum input voltage level at +35 VDC for a maximum time of 250 ms before damage will occur. The input power to this device is provided from a remote source that can be disabled. A low signal applied to the power source remote inhibit will disable its output. The controller will then be notified that an out-oftolerance condition has occurred and the device was shut down. The following code is for monitoring a single input for voltage level that exceeds +35 VDC for longer than 250 ms. A low latched output is required to be generated upon detection of the interrupt that is used to inhibit the remote power source. Note: COMMANDS DESCRIPTION INP:RANG 100,(@1) Selects ±100 V as the input range for Channel 1. INP:DEB .25 Sets the debounce time limit to 250 ms. INP:MASK 1,(@1) Enables Channel 1 to generate an interrupt. INP:MASK 0,(@2:16) Disables Channels 2 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. SENS:COND:LEV +35,(@1) Selects +35 V as the offset (reference) voltage. OUTP:POL:EXT:LATC INV Sets the external latched output to be active low. The INPut:OFFSet command can be used in place of the SENSe:CONDition:LEVel command. The INPUT:OFFSet command is normalized to the 10 V range, so, in order to have the same +35 V offset, the command must be entered as: INPut:OFFSet +3.5,(@1) 42 VM4018 Programming