Testing On/OFF state of TP Channel
paradigmpaul
Junior Member
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?
Comments
-
stupid square brackets....
if ([dvMAXMODERO,346]) is the syntax i required...
problem solved
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums