## Phidget Digital Output.lvlib:DigitalOutputEnableFailsafe.vi

Enables the failsafe feature for the channel, with a given failsafe time.

The failsafe feature is intended for use in applications where it is important for the channel to enter a known safe state if the program controlling it locks up or crashes. If you do not enable the failsafe feature, the channel will carry out whatever instructions it was last given until it is explicitly told to stop.

Enabling the failsafe feature starts a recurring failsafe timer for the channel. Once the failsafe timer is enabled, it must be reset within the specified time or the channel will enter a failsafe state. The failsafe timer may be reset by sending any valid command to the device*. Resetting the failsafe timer will reload the timer with the specified failsafe time, starting when the message to reset the timer is received by the Phidget.

*(get requests do not typically send commands and won't reset the failsafe timer)

For example: if the failsafe is enabled with a failsafe time of 1000ms, you will have 1000ms to reset the failsafe timer. Every time the failsafe timer is reset, you will have 1000ms from that time to reset the failsafe again.

If the failsafe timer is not reset before it runs out, the channel will enter a failsafe state. For Digital Output channels, this will set the output State to FALSE. Once the channel enters the failsafe state, it will reject any further input until the channel is reopened.

To prevent the channel from falsely entering the failsafe state, we recommend resetting the failsafe timer as frequently as is practical for your application. A good rule of thumb is to not let more than a third of the failsafe time pass before resetting the timer.

Once the failsafe timer has been set, it cannot be disabled by any means other than closing and reopening the channel.

Device Support:

1011_0 (ver: 100, 101, 102, 103) Digital Output : Supported

1012_0 (ver: 600) Digital Output : Supported

1012_0 (ver: 601) Digital Output : Supported

1012_0 (ver: 602, 603, 604) Digital Output : Supported

1012_1 (ver: 605) Digital Output : Supported

1012_2 (ver: 605) Digital Output : Supported

1012_3 (ver: 606) Digital Output : Supported

1013_0 (ver: 800, 811, 820) Digital Output : Supported

1013_0 (ver: 821, 823) Digital Output : Supported

1018_0 (ver: 824, 825, 826) Digital Output : Supported

1018_1 (ver: 826) Digital Output : Supported

1019_0 (ver: 826) Digital Output : Supported

1070_0 (ver: 826) Digital Output : Supported

1014_0 (ver: 700) Power Relay : Supported

1014_0 (ver: 704, 705, 706) Power Relay : Supported

1014_1 (ver: 707) Power Relay : Supported

1014_2 (ver: 707) Power Relay : Supported

1014_3 (ver: 810, 811) Power Relay : Supported

1014_3 (ver: 810, 811) Power Relay : Supported

1017_0 (ver: 100) Signal Relay : Supported

1017_1 (ver: 100) Signal Relay : Supported

1017_2 (ver: 210, 211, 212) Signal Relay : Supported

1017_2 (ver: 210, 211, 212) Signal Relay : Supported

1010_0 (ver: 903, 904) Digital Output : Supported

1018_2 (ver: 900, 901, 902, 903, 904) Digital Output : Supported

1019_1 (ver: 903, 904) Digital Output : Supported

1072_0 (ver: 903) Digital Output : Supported

1073_0 (ver: 904) Digital Output : Supported

1018_3 (ver: 1000, 1001) Digital Output : Supported

1023_0 (ver: 200) Digital Output : Supported

1023_0 (ver: 200) LED Driver : Supported

1023_0 (ver: 200) Onboard LED : Supported

1023_0 (ver: 201, 202, 203, 204) Digital Output : Supported

1023_1 (ver: 205, 206) Digital Output : Supported

1023_0 (ver: 201, 202, 203, 204) LED Driver : Supported

1023_1 (ver: 205, 206) LED Driver : Supported

1023_0 (ver: 201, 202, 203, 204) Onboard LED : Supported

1023_1 (ver: 205, 206) Onboard LED : Supported

1024_0 (ver: 100, 101, 103) Digital Output : Supported

1024_0 (ver: 100, 101, 103) LED Driver : Supported

1024_0 (ver: 100, 101, 103) Onboard LED : Supported

1030_0 (ver: 100, 101, 200, 201, 202) LED Driver : Supported

1031_0 (ver: 100, 101) LED Driver : Supported

1032_0 (ver: 200, 201) LED Driver : Supported

1202_0 (ver: 100) Digital Output : Supported

1203_0 (ver: 100) Digital Output : Supported

1202_0 (ver: 120, 121) Digital Output : Supported

1202_1 (ver: 123, 124) Digital Output : Supported

1203_0 (ver: 120, 121) Digital Output : Supported

1203_1 (ver: 123, 124) Digital Output : Supported

1202_2 (ver: 200, 201, 202, 203, 204) Digital Output : Supported

1203_2 (ver: 200, 201, 202, 203, 204) Digital Output : Supported

1219_0 (ver: 110, 111, 113) Digital Output : Supported

1220_0 (ver: 110, 111, 113) Digital Output : Supported

1221_0 (ver: 110, 111, 113) Digital Output : Supported

1222_0 (ver: 110, 111, 113) Digital Output : Supported

HUB0000_0 (ver: 117, 118, 119) Digital Output : Supported

HUB0000_0 (ver: 121, 125, 126, 127) Digital Output : Supported

HUB5000_0 (ver: 100) Digital Output : Supported

HUB5000_0 (ver: 102, 104, 105, 106) Digital Output : Supported

SBC3003_0 (ver: 101, 102) Digital Output : Supported

SBC3003_0 (ver: 108, 109, 110) Digital Output : Supported

HUB0000_0 (ver: 307) Digital Output : Supported

HUB0000_1 (ver: 400, 401) Digital Output : Supported

HUB0001_0 (ver: 111, 113, 114) Digital Output : Supported

HUB0001_0 (ver: 115, 116) Digital Output : Supported

HUB0002_0 (ver: 100, 101) Digital Output : Supported

HUB0007_0 (ver: 101, 102) Digital Output : Supported

HUB5000_0 (ver: 107) Digital Output : Supported

HUB5000_0 (ver: 203, 204, 205) Digital Output : Supported

SBC3003_0 (ver: 203, 204) Digital Output : Supported

OUT1100_0 (ver: 100) Digital Output : Supported

OUT1100_0 (ver: 110) Digital Output : Supported

OUT1100_0 (ver: 120, 130) Digital Output : Supported

LED1000_0 (ver: 104, 105) LED Driver : Supported

REL1000_0 (ver: 101) Power Relay : Supported

REL1000_0 (ver: 110, 120, 121) Power Relay : Supported

REL1100_0 (ver: 100) Digital Output Isolated : Supported

REL1100_0 (ver: 110) Digital Output Isolated : Supported

REL1100_0 (ver: 120, 130) Digital Output Isolated : Supported

REL1101_0 (ver: 102) Digital Output Isolated : Supported

REL1101_0 (ver: 110, 111, 120) Digital Output Isolated : Supported

REL1101_1 (ver: 100, 200, 201, 212) Digital Output Isolated Frequency Control : Supported

REL1101_1 (ver: 100, 200, 201, 212) Digital Output Isolated : Supported

| Device In Device # Identification

| error in (no error) error in can accept error information wired from VIs previously called.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. 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.

| code code is the error or warning code. 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.

| source source describes the origin of the error or warning. 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.

| Failsafe Time Failsafe timeout in milliseconds Units: milliseconds (ms)

| Device Out Same as Device In

| error out error out passes error or warning information out of a VI to be used by other VIs.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.