Facility Control

 View Only
  • 1.  Setting an Xpression timer to a custom value via Datalinq

    Posted 03-25-2021 13:25

    I have a Dashboard / Xpression setup which already includes two fixed value timers that are remotely triggered by Dashboard GPI commands to the Xpression. Now I need to add the ability for a third, custom set timer value, which comes not from Dashboard, but from a remote system. That value arrives as a string ("TIMER CUSTOM XXX" in seconds) and becomes a Datalinq datasource to the Xpression 500mS before I receive the start trigger.

    How can I use that Datalinq value to preset my third timer widget in Xpression? I know I could it publish to a 'hidden' text field I could see from Dashboard, but I'm not sure that helps me.

    Any ideas?



  • 2.  RE: Setting an Xpression timer to a custom value via Datalinq

    Posted 03-26-2021 15:36

    Hi Dave,

    If I understand correctly you want to use that string being received from datalinq to set a timer widget in XPression, so nothing really required on the dashboard side?  If so I have created a sample project that uses an onSetText Script to parse the incoming string and set a timer widget. Link below.

    For example: "TIMER CUSTOM 400" will set the timer widget to 6:40.000

    https://rossvideoltd-my.sharepoint.com/:u:/g/personal/asampson_rossvideo_com/Edgvze8VN1JIoR0k8FBDaY4B77fkcoeZYx4hdKT_LCcypA?e=27jdT5

     


    #DashBoard


  • 3.  RE: Setting an Xpression timer to a custom value via Datalinq

    Posted 03-29-2021 12:22

    Thanks for the example Andrew, that does help, and your code works nicely. I think instead it will be better if I do this in my Dashboard front end though, so I'll try adding a data listener there to get the timer value. The next challenge, is how to push a timer value from DB to Xpression. I'll take a crack at it today.


    #DashBoard


  • 4.  RE: Setting an Xpression timer to a custom value via Datalinq

    Posted 03-29-2021 12:31

    Hi Dave, I'm not an expert when it comes to creating that listener but you could probably use similar parsing logic to that in the script I sent to set a Dashboard timer. Dashboard timers can then be configured to update parameters in your panel the values of which can be streamed to XPression using datalinq. Parameter streaming can be enabled in the top ABS of your panel.


    #DashBoard