Graphics

 View Only
  • 1.  GPI Trigger based on Datalinq Key

    Posted 10-03-2019 21:22

    I want to add a script to my scene director that will trigger a GPI # based on the datalinq key value. I could also do a text value I supposed that is datalinq'd. Any thoughts? Here is my intial go at it. 

    dim key as xpDatalinqKey

    dim keys as xpDatalinqKeys

    dim txt as string

    scene.GetDatalinqKeys(keys)

    keys.GetKeyByName("JerseyNo", key)

    key.asString=txt

    engine.RefreshDatalinqs()

    dim rosstalk as xpGPIBoard
    Engine.GetGPIBoard(0, rosstalk)
    rosstalk.SendMessage("GPI + txt")



  • 2.  RE: GPI Trigger based on Datalinq Key

    Posted 11-06-2019 17:36

    I think that script will work - does it not? 


    #XPression


  • 3.  RE: GPI Trigger based on Datalinq Key

    Posted 11-06-2019 17:44

    Where does txt get defined? 

     

    currently you are saying key.asString = txt where txt is a string object;

    what you might want to try is changing the bottom line to the below if txt is suppose to be a string variable

     

    rosstalk.SendMessage("GPI "+ txt)


    #XPression


  • 4.  RE: GPI Trigger based on Datalinq Key

    Posted 11-06-2019 17:50

    Sorry, 

    I missed the dim txt as string...

    the above changes recommended should work for what you need!


    #XPression