Testing On/OFF state of TP Channel
paradigmpaul
Posts: 24
HI Guys,
Im having a problem, Just tweaking the Max interface a little with this goal
a button press on My TP device (dvFAMMODERO,13) will check the state of the MAX TP device channel 346 (dvMAXMODERO,346) as follows and depending on the state will pop a different page...
button_event [dvFAMMODERO,max_recording_status_popup]
{
Push:
{
if (dvMAXMODERO,346)//show recording progress status popup
{
send_command dvMAXMODERO, "'@PPN-Record_Status'"
}
else //show recording type selection popup
{
send_command dvMAXMODERO, "'@PPN-Record_Select_Disc_Type'"
}
}
}
TS says that my conditional should evaluate, but I keep getting a compiler error.
ERROR: C:\Documents and Settings\Sound Environments\Desktop\MAXX\MAX-AMXMODULE-BETA-1.4\FAMMODERO.axi(213): C10201: Syntax error; Illegal or Invalid syntax in code.
When I comment it out(everything in the push) it compiles fine..
Please help, what am i doing wrong?
Im having a problem, Just tweaking the Max interface a little with this goal
a button press on My TP device (dvFAMMODERO,13) will check the state of the MAX TP device channel 346 (dvMAXMODERO,346) as follows and depending on the state will pop a different page...
button_event [dvFAMMODERO,max_recording_status_popup]
{
Push:
{
if (dvMAXMODERO,346)//show recording progress status popup
{
send_command dvMAXMODERO, "'@PPN-Record_Status'"
}
else //show recording type selection popup
{
send_command dvMAXMODERO, "'@PPN-Record_Select_Disc_Type'"
}
}
}
TS says that my conditional should evaluate, but I keep getting a compiler error.
ERROR: C:\Documents and Settings\Sound Environments\Desktop\MAXX\MAX-AMXMODULE-BETA-1.4\FAMMODERO.axi(213): C10201: Syntax error; Illegal or Invalid syntax in code.
When I comment it out(everything in the push) it compiles fine..
Please help, what am i doing wrong?
0
Comments
if ([dvMAXMODERO,346]) is the syntax i required...
problem solved