Graphics

 View Only
  • 1.  GPI

    Posted 05-31-2012 10:34
    Hi,

    I have to receive GPI from the switcher. So in my VB app, I do :



    Dim WithEvents Xpression_Event As xpEngine

    Private Sub GPI_Event(ByVal BoardID As Long, ByVal PinID As Long, ByVal PinState As Boolean) Handles Xpression_Event.OnGPI

    MsgBox("ReÁ§u GPI sur carte " & BoardID.ToString & ", Pin " & PinID.ToString & ", Á  l'©tat " & PinState.ToString)

    End Sub



    But this do not work... Do you know why ?

    Thank you !


  • 2.  RE: GPI

    Posted 05-31-2012 13:06
    Hi Vincent,

    Which type of GPI are you trying to receive? from the 10 gpi input Adrienne card, or for the serial port?

    Can you get XPression to perform an action from that GPI by configuring it in the Keyboard/GPI Mapping menu?

    I wrote a VB app a while ago that took GPI's, I'll see if I can find it..

    #XPression


  • 3.  RE: GPI

    Posted 05-31-2012 13:41
    Hi Brian,

    I'm using it with the adrienne card. Everything is ok with the Keyboard/GPI Mapping menu, it works nice !

    But with my app :(((

    #XPression


  • 4.  RE: GPI

    Posted 05-31-2012 15:15
    Vincent.. I just tried this and it is working fine for me:

    https://rossvideo.centraldesktop.com/p/eAAAAAAAANOKAAAAAGosY-E

    If you try to update any UI from the GPI Event you need to do it using a delegate, since the GPI Event may not be executed from the main thread.

    #XPression