1 Reply Latest reply on Aug 14, 2017 12:45 AM by fuba

    xDx Component Pin "Sense" Property (inverted/noninverted Signal) always returns "0" via Script

    fuba

      Hello Comunity

      I am querying my Component pin for finding out its "Sense" (if it is inverted or not) like this:

       

                   '# inverted or not
                   Dim theSense As ViewDraw.VdSense
                   theSense = Pin.CompPin.Pin.sense
      

       

      But even for inverted pins, it returns "0" which is value for "non inverted".

      Any Ideas whats wrong here ?

      Thanks

       

      Stefan

        • 1. Re: xDx Component Pin "Sense" Property (inverted/noninverted Signal) always returns "0" via Script
          fuba

          Ok, I figured out a small workaround which may run for some time, but isnt there a more professional way to do it ?

          Maybe the API lacks some functionality here. Did I miss anything in my initial Way to retrieve "Sense" from above ?

           

          Input welcome!

           

          
          '# alternative idea/workaround for
          '# inverted/notInverted Pin/Signal
          Dim PinName As String
          PinName = Pin.CompPin.Pin.GetName(viewdraw.VdNameType.SHORT_NAME)
          Dim theSenseStr As String 
          If Left(PinName, 1) = "~" Then
             theSenseStr = "Inverted"
          Else
             theSenseStr = "NotInverted"
          End If
          

           

          Thank you