Learn about levels
fogled@mizzou
Posts: 549
OK, I've never actually worked with a system with multiple levels before, but all the example files have different levels. Are there any good resources out there to learn about programming with multiple levels? It seems like it would (for the most part) simplify my programming.
Thanks
Thanks
0
Comments
could you give a few more details. Perhaps if you could give a specific example of what you're trying to achieve we might be able to offer some suggestions.
Vining, I like what I read, this is a seriously good idea, would you like to write some more about it?
I'm just trying to understand how to handle them in the NetLinx programming. Most of the G4 panel templates I can get have multiple channel levels. When I generate interfaces with Visual Architect, it creates multiple levels.
But... I've never seen any NetLinx code that handles multiple levels. Visual Architect will output the panel files fine, but every time I ask it to output the code, it crashes. So I'm just having trouble understanding how to handle the multiple levels in the NetLinx code.
Is this something that I should learn in AMX school? I'm scheduled to go to the full battery of training courses this summer.
The device you mention does indeed have many levels. I'm sorry but I'm still not quite understanding the question. I'm sure that once you take the classes, you'll have a better understanding of levels.
here's a very basic program to send a volume level from an AMX volume box to two levels on a touch panel
DEFINE_DEVICE
my_volume_box = 85:1:0
TP_1 = 10001:01:0
DEFINE_VARIABLE
INTEGER CURRENT_VOLUME[2]
DEFINE_EVENT
level_event[my_volume_box,1] // level one from the volume box
{
CURRENT_VOLUME[1]=LEVEL.VALUE
send_level TP_1,1,CURRENT_VOLUME[1]
}
level_event[my_volume_box,2] // level two from the volume box
{
CURRENT_VOLUME[2]=LEVEL.VALUE
send_level TP_1,2,CURRENT_VOLUME[2]
}
There's obviously a way simpler way to do this. I just kept it like this so it'd be easier to understand. In this example any level change from volume box's level one is sent to Level 1 of port 1 on the TP. Likewise the same is true for level 2 from the volume box and level 2 of port 1 on the TP.
Hope that is helpful.
ejm