Home AMX User Forum NetLinx Studio

IR port combining with diodes

Hello everyone,

I have an Universal Remote MRF350, which has an IR in and 6 IR out ports.
To prevent that I have to stick two IR emiters on every device, I combined the IR outs on my NI-3000 with diodes this works great, as long as I send to one device at a time. But when I want to send to a couple devices. Multiple IR ports get activated at the same time and the signal gets mangled. Is there a way I can delay the IR command to be send in consecutive way? The SP option only works for 1 IR ports. The other question I have but not so urgend. When I compile this line:

Result=ASTRO_CLOCK (Lon,Lat,-5,date,Sunrise,Sunset)

I get an warning saying converting SINTEGER to SINTEGER? Any idea why to compiler gives me this warning?

Thanks for your reply, Rene

Comments

  • Joe HebertJoe Hebert Posts: 2,159
    teune_r wrote:
    when I want to send to a couple devices. Multiple IR ports get activated at the same time and the signal gets mangled. Is there a way I can delay the IR command to be send in consecutive way? The SP option only works for 1 IR ports.
    You can use a TIMELINE, or WAITs, or build your own queue. There is nothing automatic available; you have to write your own code.
    teune_r wrote:
    Result=ASTRO_CLOCK (Lon,Lat,-5,date,Sunrise,Sunset)

    I get an warning saying converting SINTEGER to SINTEGER? Any idea why to compiler gives me this warning?
    How are all your variables defined?


    Welcome to the forum.
  • Joe HebertJoe Hebert Posts: 2,159
    teune_r wrote:
    Result=ASTRO_CLOCK (Lon,Lat,-5,date,Sunrise,Sunset)

    I get an warning saying converting SINTEGER to SINTEGER? Any idea why to compiler gives me this warning?

    GMT is supposed to be a DOUBLE so you can

    create a DOUBLE variable for the parameter or

    change -5 to -5.0

    Either change will get rid of the warning.
    The SINTEGER to SINTEGER warning seems misleading to me.
  • Joe Hebert wrote: »
    GMT is supposed to be a DOUBLE so you can

    create a DOUBLE variable for the parameter or

    change -5 to -5.0

    Either change will get rid of the warning.
    The SINTEGER to SINTEGER warning seems misleading to me.

    Thanks Joe, yes it is confusing. But your trick worked, thanks.
Sign In or Register to comment.