Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| plugins:easydaq_1 [2014/06/06 02:47] – external edit 127.0.0.1 | plugins:easydaq_1 [2025/04/14 20:10] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== EasyDAQ Relay Card Plugin ====== | ||
| + | |||
| + | The EasyDAQ Relay Card Plugin for Indigo integrates several [[http:// | ||
| + | |||
| + | |||
| + | {{: | ||
| + | ==== Cards Supported ==== | ||
| + | |||
| + | Several versions of the EasyDAQ cards are supported: | ||
| + | |||
| + | * USB4PRMxN, USB4PRMx, USB4SRMx (4 relays + 4 DIO channels) | ||
| + | * USB8VI4DIOSR (8 isolated inputs + 4 relays + 4 DIO channels) | ||
| + | * USB8PR2, USB8PR, USB8SR (8 relays) | ||
| + | * USB16PRMxN, NET16PRMx (8 relays + 8 relays/DIO + 8 DIO channels) | ||
| + | * USB24MxS (24 relays) | ||
| + | * USBDIO24 (24 DIO channels) | ||
| + | ==== Adding Cards to Indigo ==== | ||
| + | |||
| + | Each USB controlled card is added to Indigo as a separate Indigo Device. All EasyDAQ relay cards use the FTDI VCP driver, so be sure and [[http:// | ||
| + | |||
| + | Next choose the **'' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | The FTDI VCP driver adds the virtual serial port. Note you must have the card plugged into your Mac for the port to be shown in the popup control. Or if you are using a network (IP) based card, you can select the Network Socket connection type and enter the IP and port address for the card. You can define custom labels for all the inputs and outputs, and for some channels, depending on the card model, choose if a digital input/ | ||
| + | |||
| + | ==== Controlling Relay and Digital Outputs ==== | ||
| + | |||
| + | The output channels are controlled via Indigo actions. The actions can be inside Triggers, Schedules, Action Groups, or assigned to Control Page controls. From the Action panel inside these dialogs choose **'' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Some actions have additional options available via the **'' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ==== Triggering Actions on a Digital Input Change ==== | ||
| + | |||
| + | Indigo will automatically track all input and output channel states. To trigger an action when a particular channel state changes from OFF to ON (or ON to OFF) choose the **'' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | You can then use the Condition panel to add further logic, and the Actions panel to define the action you want executed (ex: turn on lights, send an email, etc.) | ||
| + | |||
| + | ==== Preventing Floating Input Problems ==== | ||
| + | |||
| + | Depending on the EasyDAQ model you are using, you may experience a floating input problem when an input is left in an open state. If you see a continuous stream of changes logged inside Indigo only when an input is in an open state, then you will need to use a [[: | ||
| + | |||
| + | |||
| + | ===== Scripting Support ===== | ||
| + | |||
| + | As with all plugins, actions defined by this plugin may be executed by [[indigo_5_documentation: | ||
| + | |||
| + | **Plugin ID**: com.perceptiveautomation.indigoplugin.easydaq-usb-relay-cards | ||
| + | |||
| + | ==== Action specific properties ==== | ||
| + | |||
| + | === Turn On Output === | ||
| + | |||
| + | **Action id**: turnOnOutput | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | if easyDaqPlugin.isEnabled(): | ||
| + | easyDaqPlugin.executeAction(" | ||
| + | |||
| + | === Turn Off Output === | ||
| + | |||
| + | **Action id**: turnOffOutput | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | if easyDaqPlugin.isEnabled(): | ||
| + | easyDaqPlugin.executeAction(" | ||
| + | |||
| + | === Toggle Output === | ||
| + | |||
| + | **Action id**: toggleOutput | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | if easyDaqPlugin.isEnabled(): | ||
| + | easyDaqPlugin.executeAction(" | ||
| + | |||
| + | === All Outputs On === | ||
| + | |||
| + | **Action id**: allOutputsOn | ||
| + | |||
| + | No properties for scripting are required. | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | if easyDaqPlugin.isEnabled(): | ||
| + | easyDaqPlugin.executeAction(" | ||
| + | |||
| + | === All Outputs Off === | ||
| + | |||
| + | **Action id**: allOutputsOff | ||
| + | |||
| + | No properties for scripting are required. | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | if easyDaqPlugin.isEnabled(): | ||
| + | easyDaqPlugin.executeAction(" | ||
| + | |||
| + | === Change Multiple Outputs === | ||
| + | |||
| + | **Action id**: changeMultiple | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | if easyDaqPlugin.isEnabled(): | ||
| + | easyDaqPlugin.executeAction(" | ||
| + | |||
| + | ===== Support and Troubleshooting ===== | ||
| + | |||
| + | For usage or troubleshooting tips [[https:// | ||
| + | |||