Facility Control

 View Only
Expand all | Collapse all

Populate Dashboard button with data from Xpression

Cameron Wedemeyer

Cameron Wedemeyer04-15-2020 02:35

Cameron Wedemeyer

Cameron Wedemeyer04-15-2020 03:07

  • 1.  Populate Dashboard button with data from Xpression

    Posted 04-09-2020 01:36

    Hello,

    I would like to change the name of a button in Dashboard based on data within a scene in Xpression. Is that possible at all?



  • 2.  RE: Populate Dashboard button with data from Xpression

    Posted 04-09-2020 14:16

    Hi Cameron

    If you are using the XPression plug-in, all published fields from your sequencer items are available as parameters for 2-way communication (you can read them and you can modify them). If you are using the plug-in, I can send you an example that makes use of this. 

    Do you know if you have the plug-in enabled on your XPression license?

     

    Cheers

    James


    #DashBoard


  • 3.  RE: Populate Dashboard button with data from Xpression

    Posted 04-10-2020 01:45

    Hi James, 

    Yes if you could please send that example that would be brilliant!

    Many thanks


    #DashBoard


  • 4.  RE: Populate Dashboard button with data from Xpression

    Posted 04-10-2020 14:09

    Hi Cam,

    Here are the steps you should take:

     

    1. Add your XPression to the device tree with the plus in the Basic Tree View.   Pick to add an XPression

     

    It should now show up in your tree, like this:

     

    2. In your custom panel, go into PanelBuilderMode, Double Click anywhere to get into the "Edit Component" window and click on Device in the top left.

     

     

    3. Check the "OpenGear or XPression Datalinq" button, in the popup, select the "Select a Device" radio button, and select your XPression:

    4. Apply and Close

    Your Panel now has access to all of XPression's parameters.   

    5. If you click on "Parameters", and drop a "Default" parameter, you will get a list of all the parameters that your panel knows about.   Including all the XP ones.   It's easiest to search by TakeID.    If you want something about take 1000, type "take1000" in the search bar at the top.   You will see all the parameters about take 1000.   There are some about the published fields, and there is information about that take item.

     

     

     

    Those parameters are also accessible in the Visual Logic pane if you're creating a task, here:

     

     

    If you want a button that has the same name as a takeid, you could write the following script Visual Logic script:

    This is assuming you gave your Button the id "button1".

    You can either put this in an API, or drop that take1000.name parameter on your panel and attach a task to it.   The second way, when the name changes in XP, the button will automatically rename itself.   You can also hide the parameter (if you give it a "visible=false" flag in the source.

    Here is a quick sample panel that has a button that gets renamed based on take 1000's name:

    <abs contexttype="opengear" id="_top" keepalive="false" style="">
    <meta>
    <context contexttype="opengear" objectid="localhost:8020:XPression"/>
    </meta>
    <button buttontype="push" height="68" id="button1" left="200" top="33" width="197"/>
    <param contextid="localhost:8020:XPression" expand="true" height="40" left="275" oid="xprn.sequenceitem.take1000.name" runtasksonload="true" showlabel="false" top="213" visible="false" width="232">
    <task tasktype="ogscript">
    ogscript.rename("button1", params.getParam("localhost:8020:XPression", 'xprn.sequenceitem.take1000.name', 0).getValue());
    </task>
    </param>
    </abs>

     

     

     

     


    #DashBoard


  • 5.  RE: Populate Dashboard button with data from Xpression

    Posted 04-14-2020 01:37

    Hi Ben,

    Thanks so much for your detailed reply! Only issue I am having is that I'm not able to see the parameters, see below what I am able to see. Xpression is connected and talking fine


    #DashBoard


  • 6.  RE: Populate Dashboard button with data from Xpression

    Posted 04-14-2020 02:20

    That is usually what we see when you don't have any projects opened in XP.   Is your project open, and does it have sequence items in the Sequence View?


    #DashBoard


  • 7.  RE: Populate Dashboard button with data from Xpression

    Posted 04-14-2020 02:26

    Hi Ben,

    Yes XP is definitely running, have tried multiple projects and not having any luck


    #DashBoard


  • 8.  RE: Populate Dashboard button with data from Xpression

    Posted 04-15-2020 01:03

    It looks like there is some stuff showing up.   A few questions:

     

    1. If you type in "take1" in the search field, does anything show up (assuming you have a take id 1 in XP).   A lot of the parameters are sub-parameters, and may not show up in the top level.

    2. Can you expand the sequencerlist parameter?  Is there anything in there?

    3. Do your take items have any published fields?

    4. If none of those help, can you take a screen shot of your XP sequencer and post it here too?

     


    #DashBoard


  • 9.  RE: Populate Dashboard button with data from Xpression

    Posted 04-15-2020 01:47

    Hi Ben,

    Yeah it's an odd one, I feel like it's seeing Xpression but not the project (if I open Sequence Items in the Basic Tree View then I can't see the project either)

    1. If you type in "take1" in the search field, does anything show up (assuming you have a take id 1 in XP).   A lot of the parameters are sub-parameters, and may not show up in the top level.

    No, nothing that matches any of my take id's

    2. Can you expand the sequencerlist parameter?  Is there anything in there?

    3. Do your take items have any published fields?

    4. If none of those help, can you take a screen shot of your XP sequencer and post it here too?


    #DashBoard


  • 10.  RE: Populate Dashboard button with data from Xpression

    Posted 04-15-2020 01:49

    Also given I am working from home I am running Designer, can't imagine that would be an issue but in case that is a limitation


    #DashBoard


  • 11.  RE: Populate Dashboard button with data from Xpression

    Posted 04-15-2020 02:33

    What is in the Project (xpression.project) parameter?


    #DashBoard


  • 12.  RE: Populate Dashboard button with data from Xpression

    Posted 04-15-2020 02:35


  • 13.  RE: Populate Dashboard button with data from Xpression

    Posted 04-15-2020 03:01

    And is xprn.project.0.name set to the name of your XP project?


    #DashBoard


  • 14.  RE: Populate Dashboard button with data from Xpression

    Posted 04-15-2020 03:07

    No, it is blank


    #DashBoard


  • 15.  RE: Populate Dashboard button with data from Xpression

    Posted 04-15-2020 12:39

    In the DashBoard device tree, if you double click on the "Sequence Items" for your XPression, what do you see?

     

    Also, what version of XPression and DashBoard are you using?   Are they fairly recent?

     


    #DashBoard


  • 16.  RE: Populate Dashboard button with data from Xpression

    Posted 04-16-2020 04:19

    Hi Ben, 

     

    Sequence items isn't seeing the project either

     

    Running v9 in both Xpression and Dashboard


    #DashBoard


  • 17.  RE: Populate Dashboard button with data from Xpression

    Posted 04-16-2020 12:36

    In XP, in the Remote Server part of Preferences, is the Dashboard RPC Control Server port set to 8020? (That's the default).

     


    #DashBoard


  • 18.  RE: Populate Dashboard button with data from Xpression

    Posted 04-23-2020 03:40

    Hi Ben,

    It must be a Designer limitation, as I do not have that as an option


    #DashBoard