ProXR.lvlib:Enable Duration or Pulse Timer.vi

Owning Palette: ProXR

Requires: Base Package

Platform(s): Windows

This VI serves multiple functions. It can generate Simple Duration timer, Simple Pulse timer, Duration timer or Pulse timer depending on the Timer control input. Following is detailed explanation:

Simple Duration timer:

Timer control input range : 50-65

These timers activate a relay for a user specified period of time. When the timer expires, the relay turns off. Duration Timer 50-65 controls timers 0-15. The relay is active during the duration of the timer and turns off when timer counts down to 0 Hours, 0 Minutes, 0 Seconds. Relay is a value from 0-255, as timers may be applied only to the first 256 relays of the controller.

Example: Timer Hours Minutes Seconds Relay

51 0 0 10 1 -> Hold Relay 1 On for 10 Seconds using Simple Duration Timer 1

Simple Pulse timer:

Timer control input range : 70-85

When a pulse timer is activated, the relay will not do anything until the timer has expired. Once expired, the relay will pulse for a short duration. This pulse is designed specifically to reboot a computer by connecting a relay directly to the RESET lines of a motherboard. Pulse Timer 70-85 controls timers 0-15. The timer counts and when it expires, the relay is pulsed. Relay is a value from 0-255, as timers may be applied only to the first 256 relays of the controller.

Example: Timer Hours Minutes Seconds Relay

71 0 0 45 1 -> Pulse Relay 1 after 45 Seconds using Simple Pulse Timer 1

Duration timer:

Timer control input range : 90-105

Duration Timer 90-105 controls timers 0-15. The Relay is active during the duration of the timer. This command sets up the timer only, it does NOT begin to start. Use a separate command to control when this timer starts. The relay turns off when timer counts down to 0 Hours, 0 Minutes, 0 Seconds. Hours, Minutes, and Seconds sets the number of hours, minutes, and seconds the timer will hold the relay on. Relay is a value from 0-255, as timers may be applied only to the first 256 relays of the controller.

Example: Timer Hours Minutes Seconds Relay

91 0 0 35 1 -> Setup a Duration Timer on Relay 1 for 35 Seconds using Timer 1

Pulse timer:

Timer control input range : 110-125

Pulse Timer 110-125 controls timers 0-15. The timer counts and when it expires, the relay is pulsed. This command sets up the timer only; it does NOT begin to start. Use a separate command to control when this timer starts. Set Hours, Minutes, and Seconds to determine how long the timer will hold the relay on. Relay is a value from 0-255, as timers may be applied only to the first 256 relays of the controller.

Example: Timer Hours Minutes Seconds Relay

115 0 0 15 0 -> Setup a Pulse Timer on Relay 0 for 15 Seconds using Timer 0.

  

ProXR.lvlib:Enable Duration or Pulse Timer.vi


cvsrn

VISA resource name

A reference to the port in use. The reference to the resource name is created in the Initialize VI. Therefore, before calling this VI, you need to call the Initialize VI. To run this VI interactively, select the previously initialized resource name from the pull-down menu. To run this VI programmatically, wire the VISA resource name out terminal of the Initialize VI to subsequent VISA resource name input terminals. You chain instrument driver VIs together by wiring the VISA resource name out terminal to subsequent VISA resource name input terminals.

cerrcodeclst

error in (no error)

error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

cbool

API Mode (On)

Boolean Input to select the packet type generated and sent to the instrument. If API mode is enabled, the packet sent to the Instrument is an API packet, otherwise it is a standard packet.

The response packet received from the instrument is also verified based on this input. If API mode is enabled, the header, length and checksum fields are verified. Otherwise, single byte response is verified.

Valid Values

0: API mode Off/disabled

1: API mode On/enabled

Default Value

1: API mode On/enabled

cu8

Relay no (0)

Relay selection for assigning timer to.

Valid Range

0-255

Default Value

0: First Relay

cu8

Timer

Timer and type of timer selection control.

Please read the corresponding VI Help in which it is used to understand the values that can be assigned to it for various functionalities.

Valid Values and Ranges

50-65, 70-85, 90-105, 110-125

cu8

Hours

For setting hours value of timer time.

Valid Range

0-255

cu8

Min

For setting minutes value of timer time.

Valid Range

0-255

cu8

Secs

For setting seconds value of timer time.

Valid Range

0-255

cstrrn

TX buffer

Reference to Text Indicator, it is used by the driver VI to display raw data sent over the port

cstrrn

Rx buffer

Reference to Text Indicator, it is used by the driver VI to display raw data received over the port

ivsrn

VISA resource name out

A copy of the reference to the instrument in use. The reference to the resource name is created in the Initialize VI. Wire the VISA resource name out terminal of the Initialize VI to subsequent VISA resource name input terminals. You chain instrument driver VIs together by wiring the VISA resource name out terminal to subsequent VISA resource name input terminals.

ierrcodeclst

error out

error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs.

Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.