Home AMX User Forum NetLinx Studio

Proper Use of SET_VIRTUAL_LEVEL_COUNT

Greetings,

I am working on a module for controlling an audio equalizer. I would like to to have 31 levels on my UI and within the module for adjusting the equalizer.

What is the proper use of the SET_VIRTUAL_LEVEL_COUNT keyword?

In what section of the module and/or the main program should it go?

Thanks.

Comments

  • banobano Posts: 173
    Greetings,

    I am working on a module for controlling an audio equalizer. I would like to to have 31 levels on my UI and within the module for adjusting the equalizer.

    What is the proper use of the SET_VIRTUAL_LEVEL_COUNT keyword?

    In what section of the module and/or the main program should it go?

    Thanks.

    I would place it in the online section of the data event for the virtual device, same place I put set_virtual_channel_count
  • TurnipTruckTurnipTruck Posts: 1,485
    bano wrote: »
    I would place it in the online section of the data event for the virtual device, same place I put set_virtual_channel_count

    I have heard stories of having to put it in the main program as well as the module. Have you had any experiences like that?

    Thanks.
  • AMXJeffAMXJeff Posts: 450
    I have heard stories of having to put it in the main program as well as the module. Have you had any experiences like that?

    Thanks.

    Put it in the DEFINE_EVENT - ONLINE section.
  • a_riot42a_riot42 Posts: 1,624
    I've been putting it in define_start and haven't had any issues.
    Paul
  • TurnipTruckTurnipTruck Posts: 1,485
    a_riot42 wrote: »
    I've been putting it in define_start and haven't had any issues

    Does it make any difference whether it is in the module or the main program?
  • a_riot42a_riot42 Posts: 1,624
    Does it make any difference whether it is in the module or the main program?

    I wouldn't think so. Either way the command will execute within a few seconds of each other regardless of where it goes. If it refers to a device in a module then I would put in the module just for OOP reasons, but I can't imagine it makes any difference, but I haven't experimented extensively.
    Paul
Sign In or Register to comment.