Duck1776 / Module-CrestronSourceNameSearch

Crestron Search Module for 500 Sources.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ko-fi

Searching Source Names to present on the Touch Panel

  __         __         __         __         __         __
<(o )___   <(o )___   <(o )___   <(o )___   <(o )___   <(o )___     GOD BLESS AMERICA
 ( ._> /    ( ._> /    ( ._> /    ( ._> /    ( ._> /    ( ._> /     JULY 4TH, 1776
  `---'      `---'      `---'      `---'      `---'      `---' 

What does this module do?

This was built because I had to make a module that would search through an NVX system that had 500 sources...

The Module is structured this way:

TYPE INPUT VAR OUTPUT VAR TYPE
STRING Search$ Search_FB$ STRING
DIGITAL Source[001-500]VIS_IN Source[001-500]VIS_OUT DIGITAL
STRING Source[001-500]Text$

How it works...

I tied "Search$" to the TextEntry smart graphic on my touch panel.

  1. For every change of Search$, the module will perform a FOR loop to check each Source[X]Text$, however, it will only check the source text of sources that are also Enabled via Source[X] VIS_IN.
  2. If there is a match then Source[X]VIS_OUT goes high.
  3. When the length of Search$ is 0, then Source[X]VIS_OUT is set equal to Source[X]VIS_IN.

I wanted to make this a C# module, but not sure how to do that right now. If you know of a solution let me know in This Discussions

Enjoy!

TO-DO

  • PROVIDE MODULE
  • PROVIDE EXAMPLE PROGRAM
  • DETAIL README


Duck1776 GitHub stats

ko-fi

About

Crestron Search Module for 500 Sources.

License:GNU General Public License v3.0