Home AMX Control Products

^GLH or ^ BMF %GH commands work on Bargraphs but not buttons.

mushmush I programme in the dark!Posts: 286
G'day Guys,

I can set the maximum level of a bargraph at runtime using the ^GLH or ^ BMF %GH commands but not for a button linked to the bargraph for ramping purposes.
Anyone have the same issues?
Does anyone have a fix or a workaround?

Thanks

Mush

Comments

  • viningvining X Member Posts: 4,364
    Not sure I'm following. Use what ever value you use to when sending your ^GLH command as the value in your button ramping code.
    SEND_COMMAND dvTP,"'^GLH-',itoa(nLevelNumber),',',itoa(nNewLevelValue)" ;
    
    //BUTTON CODE
    if(nLevel < nNewLevelValue)
         {
         //continue ramping code
         }
    
  • mushmush I programme in the dark! Posts: 286
    vining wrote: »
    Not sure I'm following. Use what ever value you use to when sending your ^GLH command as the value in your button ramping code.
    SEND_COMMAND dvTP,"'^GLH-',itoa(nLevelNumber),',',itoa(nNewLevelValue)" ;
    
    //BUTTON CODE
    if(nLevel < nNewLevelValue)
         {
         //continue ramping code
         }
    

    Thanks for your time vining.
    When I send the following to a 'bargraph' type button it works.

    SEND_COMMAND vTP1,"'^GLH-1,200'"

    But when I send it to a 'general' type button it does not work.
    This is despite the fact that both types of button have the 'Range High' parameter, both buttons have
    the same Address, Channel and Level ports and codes.

    Cheers

    Mush
  • viningvining X Member Posts: 4,364
    So you're using raise and/or lower buttons set to Type "general" and in button properties under the programming tab you set "Level Control Type" parameters to that of your bargraph. Hmmm. I never even realized that was there and I can only assume that it works fine for direct level control and what your saying is the values set here aren't changed when you send the GLH command. Why not just scrub this approach for level control and do it in your code. That appears to be the easy work around.
  • mushmush I programme in the dark! Posts: 286
    vining wrote: »
    So you're using raise and/or lower buttons set to Type "general" and in button properties under the programming tab you set "Level Control Type" parameters to that of your bargraph. Hmmm. I never even realized that was there and I can only assume that it works fine for direct level control and what your saying is the values set here aren't changed when you send the GLH command. Why not just scrub this approach for level control and do it in your code. That appears to be the easy work around.

    Yes that is what I'm doing and yes I will have to scrub this approach which would have been much less work.

    I guess the main point is that a described feature does not work fully. Not the first time.
Sign In or Register to comment.