Home AMX User Forum NetLinx Modules & Duet Modules

Feedback from NetLinx Module

I'm using a NetLinx Module for a Tandberg 990MXP. I'm using the one for the 6000MXP because I can't find one for the 990.

Do I process the feedback as a literal? Should the example below work? I can't get into the room to test it.

DATA_EVENT [vdvTBModule]
{
STRING:
{
IF(LENGTH_STRING(data.text))
{
SELECT
{
ACTIVE(FIND_STRING(data.text,"'DUOSTATE=1'",1)):
{
nDUO_Status=DUO_ON
ON[dvTP,47]
}
ACTIVE(FIND_STRING(data.text,"'DUOSTATE=0'",1)):
{
nDUO_Status=DUO_OFF
OFF[dvTP,47]
}
}
}

}
}

Button number 47 is the ON/Off to send Duo Video. In the feedback section I put the statement to request the duo state SEND_COMMAND vdvTBModule,"'DUOSTATE?'"

thanks,
David

Comments

  • ericmedleyericmedley Posts: 4,177
    If you are using the Duet module the strings come back as COMMANDS.

    so make
    DATA_EVENT [vdvTBModule]
    {
    [U][COLOR=#0000FF][SIZE=14px][I][B]STRING:[/B][/I][/SIZE][/COLOR][/U]
    {
    IF(LENGTH_STRING(data.text))
    {
    ...
    

    into
    DATA_EVENT [vdvTBModule]
    {
    [U][SIZE=14px][I][B][COLOR=#0000FF]COMMAND:[/COLOR][/B][/I][/SIZE][/U]
    {
    IF(LENGTH_STRING(data.text))
    {
    ...
    
  • TUTechTUTech Posts: 70
    Thanks. First time working with a module. This one is a Netlinx module.
  • a_riot42a_riot42 Posts: 1,624
    I don't think you need this if guard:
    LENGTH_STRING(data.text) The event wouldn't get run if there wasn't anything in data.text. Paul
  • Not sure why you are using the AMX module and still parsing the feedback yourself. This would only be needed if the desired function wasn't available in the module, but presentation (or duo video) is.
    from the Netlinx module doc:

    *DUOSOURCE=<source>

    *DUOSOURCE?

    *DUOSTATE?

    *DUOVIDEO=<state>[:<source>]

    I've never used the Netlinx module, but have used the Duet module for the same Tandberg 6000mxp. Like most AMX modules this works, but sometimes you have to work around some issues. If the module is still worth the trouble and you want to extend it, look at te PASTHRU- and PASSBACK- commands.

    Richard
Sign In or Register to comment.