Usage
Thomas Hayes
Posts: 1,164
Hello,
I'm just writting my first complete RMS code to interface with my present room code. I am about 80% complete and working to this point. I am however wondering about how to track the useage of a wireless microphone that may or may not be active regardless of the source selected. I also don't want to stop it's useage monitoring when another soucre is selected. Any ideas on the best way to proceed with this?
I'm just writting my first complete RMS code to interface with my present room code. I am about 80% complete and working to this point. I am however wondering about how to track the useage of a wireless microphone that may or may not be active regardless of the source selected. I also don't want to stop it's useage monitoring when another soucre is selected. Any ideas on the best way to proceed with this?
0
Comments
Thomas,
As far as tracking sources, if the source is still on, you can keep it on. I built a wonderful for loop that has helped me with source tracking from room to room. So if you build your system that the mic is a different "room" if one instance of it is on, it will stay on. I know this is very different from your implementation, but keeping track of a source is possible when switching.
DEFINE_VARIABLE
volatile integer RMS_OFF_FLAG[Number_of_Rooms][Number_of_Sources]
S
H
I
DEFINE_PROGRAM
for(H=1;H<=number_of_rooms;H++)
{
for(S=1;S<=number_of_Sources;S++)
{
if(vSOURCE_TO_CONTROL[H]=S)
{
on[vdvSources_In_Use,S]
off [rms_off_flag[h]]
}
else
{
on[rms_off_flag[h]]
}
}
}
for(i=1;i<=Number_of_Sources;i++)
{
if(
(rms_off_flag [1]=1) and
(rms_off_flag[2]=1) and
(rms_off_flag[3]=1) and
(rms_off_flag[4]=1) and
(rms_off_flag[5]=1) and
(rms_off_flag[6]=1) and
(rms_off_flag[7]=1) and
(rms_off_flag[8]=1)
)
{off[vdvSources_In_Use,i]}
}
Then in RMS Main
DEFINE_EVENT
BUTTON_EVENT [vdvCLActions,nchCLSourceTrackerButtons]
{
PUSH:
{
DO_PUSH(vdvSources_In_Use,nchCLSourceTrackerPanelButtons[GET_LAST(nchCLSourceTrackerButtons)])
}
}
CHANNEL_EVENT [vdvSources_In_Use,nchCLSourceTrackerPanelButtons]
{
ON:
ON[vdvCLActions,nchCLSourceTrackerButtons[GET_LAST(nchCLSourceTrackerPanelButtons)]]
OFF:
OFF[vdvCLActions,nchCLSourceTrackerButtons[GET_LAST(nchCLSourceTrackerPanelButtons)]]
}