Graphics

 View Only
  • 1.  Scene fires GPI

    Posted 02-22-2015 17:37
    Hi,

    Is there a way I can fire a GPI via rosstalk when I take a scene?

    The scenario is:

    I want to trigger an application I made to automate a task when I specific scene in xpression is taken.


  • 2.  RE: Scene fires GPI

    Posted 02-24-2015 14:48
    You can use a script in OnOnline to trigger a physical GPI on the Ross turnkey hardware.

    This script for example:

    `

    dim gpiboard as xpGPIBoard

    engine.GetGPIBoard(0, gpiboard)

    gpiboard.SetOutputPinState(1, True)

    `

    If you want to send a RossTalk command instead, that can be done, but only in version 5.9 (only available to beta customers right now).

    #XPression


  • 3.  RE: Scene fires GPI

    Posted 02-25-2015 19:44
    Hi Brian, thanks!

    I actually am using Xpression 5.9. I was planning on using RossTalk for it so I could trigger a listen server I setup in Python.

    #XPression


  • 4.  RE: Scene fires GPI

    Posted 02-25-2015 19:46
    Ok if you have 5.9, then there is a function in the xpGPIBoard object called SendMessage.

    You will want to configure the RossTalk driver in XPression to connect to your remote listening server

    `gpiboard.SendMessage("some data to send")`

    #XPression


  • 5.  RE: Scene fires GPI

    Posted 03-06-2015 19:23
    So what you are saying is that from Xpression 5.9 you can actually send some data via RossTalk to/from Xpression?

    #XPression


  • 6.  RE: Scene fires GPI

    Posted 03-28-2015 22:47
    Hi Brian,

    So I've finally had time to mess with the Rosstalk GPI triggering in xpression, I just have a question.

    I got it to work, it fires a message to my TCP server, but for some reason every few seconds I get a message from Xpression with the content of 'noop'. Do you know why this happens? Is this just a check to see if the server is still listening or something else?

    #XPression


  • 7.  RE: Scene fires GPI

    Posted 03-29-2015 01:00
    It's just a message to check if the socket is still connected. You can ignore it, there is no need to respond to it.

    #XPression