Single channel operation – VXI VM4016 User Manual

Page 35

Advertising
background image

www.vxitech.com

VM4016 Programming

35

S

INGLE

C

HANNEL

O

PERATION

This example is for controlling a device that can tolerate a maximum input voltage level at
+35 V dc 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-of-
tolerance condition has occurred and the device was shut down.

The following code is for monitoring a single input for voltage level that exceeds +35 V dc 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.

COMMANDS

DESCRIPTION

INP:RANG 100,(@1)

Selects ±100 V as the input range for Channel 1.


INP:DEB 0.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.


INP:OFFS +3.5,(@1)

Selects +35.0 V as the offset (reference) voltage.


OUTP:POL:EXT:LATC INV

Sets the external latched output to be active low.

Table 3-1 and the explanation that follows illustrates what is occurring during this example.

Advertising