Proper Use of SET_VIRTUAL_LEVEL_COUNT
TurnipTruck
Posts: 1,485
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 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.
0
Comments
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.
Put it in the DEFINE_EVENT - ONLINE section.
Paul
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