Using variables in TCP commands

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    Using variables in TCP commands

    Hi All,

    i am working on an update of on old project.
    It has an TCP to DMX converter. Commands like:

    S1V0\x0D for setting channel 1 to 0
    and
    S2V155\x0D for stting channel 2 to 155

    Is it possible to use the analog value output of a lightning controller and insert this to the command??

  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11234

    #2
    You can simply use S1V<v>\x0D.
    Your command must be set to analoque, and the input of the output (yes, strange saying) must be a value instead of a On pulse.
    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • Gast

      #3
      Hi Christian,

      that works for me! Any idea how to set the value between 0 and 100%?
      Lights are a bit low so i'm guessing it's only sending to 100 instead of 255..

      greetings!

      Kommentar

      • Christian Fenzl
        Lebende Foren Legende
        • 31.08.2015
        • 11234

        #4
        In that case, you have to re-calculate the value. Try the Scaling block (don't know the real name), with parameters 0=0 and 100=255.

        Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

        Kommentar

        Lädt...