Facility Control

 View Only
  • 1.  Can GPI triggers be used between computers

    Posted 10-25-2017 18:22
    Can a GPI trigger be used to trigger a buttons on another computer running DashBoard. Example one Buttom on one computer will also trigger another button on another computer.


  • 2.  RE: Can GPI triggers be used between computers

    Posted 10-26-2017 02:21
    Hi there,

    Absolutely.

    To send GPIs to another computer there are a couple of ways to do it.

    I would personally use Visual Logic

    In your button you have to add a script.
    You can do this either:

    1: Use Visual logic to send your message
    Add a device in the Visual logic editor, an XPression will work fine for this.
    To do this, in edit mode for tasks on a button in the upper left is a small green '+' button in the 'Devices & Parameters' section. Click on that and select 'Add XPression'.


    (use the 'Create parameter' feature for the IP address and Port when you do this, that will allow you to keep the same panel and easily change the IP address of the DashBoard computer you are sending messages to).
    You will now have in the API for XPression in Visual logic for the GPI called 'trigger gpi'

    You can just drag that in now and this button will now send GPI messages to the address and port used for the parameters created earlier.
    (You can add those parameters to your panel as well if you want to be able to change them).

    To be clear: You are NOT sending messages to an XPression, it simply uses the same protocol as XPression to send messages to another DashBoard machine for the GPI message and we don't have a direct choice for DashBoard at this time.

    2: To receive messages in your other DashBoard computer
    To receive GPI messages on a second computer is fairly easy.

    (also, this is how you could configure DashBoard to receive GPI messages from Ross Carbonite Switchers or Ross XPression Graphics)

    2a: Enable GPIs in your DashBoard.
    Go to: Window\Preferences\Ross Talk GPI Listener.
    Enable the 'Global GPI Listener' item. (you can change the port if it makes sense to, but, usually you would keep the default value).

    2b: Add 'GPI Triggers' to items in your panel.
    Typically you would put GPI triggers on a button in your panel. This means that whenever DashBoard receives a GPI trigger any Button that has the same trigger value will run it's scripts.

    To do this, on a button, in edit mode, on the 'Button Attributes' tab, put a value in 'Trigger ID' this is the GPI value to look for.

    Let me know if you have any issues.

    Troy.

    #DashBoard


  • 3.  RE: Can GPI triggers be used between computers

    Posted 11-01-2017 19:27

    I tried to sen a command to the 2nd computer with no success. Here is what I made in Visual Logic

    <button buttontype="push" height="65" left="1" top="0" width="109">
    <task tasktype="ogscript">/*! block id=1006 !*/
    rosstalk.sendMessage(params.getValue('CG_172.16.0. 113', 0), params.getValue('CG_172.16.0.113', 0), "GPI " + 1);
    /*!!
    <block id="1006" type="CG_xpression_gpi" x="496" y="409" w="243" color="#1b8791" GPI="1" />
    !!*/
    /*!!<checksum>5ed9693988fad8d7e7ef6d4 dc39b5fb6</checksum>!!*/</task>
    </button>

    Here is what I did on the computer with ip of 172.16.0.113

    <button buttontype="push" gpi="GPI Trigger-1" height="130" id="CG" left="305" name="test trigger" top="244" width="406">
    <task tasktype="rosstalk">rosstalk.sendMessage('172.16.0 .102', 7788, 'MEM 51');</task>
    </button>

    #DashBoard


  • 4.  RE: Can GPI triggers be used between computers

    Posted 11-04-2017 18:17
    Why don't you send me the panels you have over e-mail so I can take a peek at them, probably MUCH faster than trying to diagnose this in the forums.
    (I'll try and remember to post the solution here once we have it for others to see).

    My email is tenglish@rossvideo.com

    Thanks!

    Troy.
    #DashBoard


  • 5.  RE: Can GPI triggers be used between computers

    Posted 12-10-2017 14:29
    Just wanted to see if you had any luck with a solution for this. I just want to send a RossTalk command when a GPI Trigger is received. I have the listener enabled in preferences and also in the grid container. I have the button set to the trigger ID but it never seems to actually fire the button. I have the button just sending a debug message to test.
    #DashBoard


  • 6.  RE: Can GPI triggers be used between computers

    Posted 12-10-2017 18:20
    Hi Aveillon.

    This *should* be fairly straightforward. Given that it looks like you know the steps you need to have to make it work, did you want to send your panel to me and I can take a quick look at it? tenglish@rossvideo.com

    Troy.
    #DashBoard