Point to other trigger function within trigger

I stumbled across an idea that I feel may be useful in other applications. Not sure on how easy it is to implement, but here goes.

My operators use a mixture of buttons and standard scanned codes. It would be nice to have the “on scan” trigger “point” to the button trigger. I understand that it may be tricky to point button triggers to “on scan” triggers due to the device output info, but I don’t see any issue with going the other way.

For example, I have a data entry page where users scan in serials. I’d like to offer the option for an operator to scan an Accept code or press the button, which would result in the same set of steps occurring.

Reasons:

  • easier maintenance (only need to update single trigger, rather than remembering the double up)
  • operator versatility (if no free hand for mouse, can use scanner : if hand already on mouse, easier to use button)

I’m sure there are other (and better) use cases out there that would better demonstrate the need for something like this.

Hi @Preston,

you might have a look into this suggestion, which is about building trigger functions in a library and call them from any trigger…

Quality of Life: Triggers Library - Product Suggestions - Tulip Community

Kevin recently mentioned to have a look onto this topic.

As workaround for now, you can use a custom widget. This Widget does only need an input variable (i suggest a boolean) and an event (no value needed).
The only function is to reset the boolean to false whenever it becomes true.

You can then put your trigger to the event trigger of this widget and call it by scanner, button, step, timer… simply by setting the boolean variable to true… the widget will activate the trigger and reset the variable.

You can also use the delay widget mentioned in another thread before, and set the delay to 0 (or actually use it… however you want).

2 Likes

I really like the idea of using a boolean to initiate a function. Thanks for the tip!

1 Like