Facility Control

 View Only
  • 1.  Get status from TSE-8643 card

    Posted 11-08-2022 15:16
    Hello,

    I have a TSE card inserted in my opengear box, which I´d like to monitoring the ANC Enconde Status (attached photo). In resume, when I switch the Encode mode between ''Disabled'' and ''Caption CDP" , I´d like to see these changes in a label running in my custom Dashboard panel. I already created a parameter called ''label'' and created a logic to this parameter gets the  current Encode mode and show me which option is selected. The photos describing my case and the progamming are list below. I don´t know why, but it does not work as expected so far. 

    Programming to get Encode mode status:

    <param expand="true" height="40" left="136" oid="0x2" style="bg-align:center;txt-align:center;" top="199" width="202">
    <task tasktype="ogscript">


    /*! block id=1026,1032,1027 !*/
    if (params.getParam("TES-8643.1", '0xD120', 0).getValue() == "Caption CDP")
    {
    params.setValue('0x2', 0, 1);
    } else {

    }
    /*! block id=1023,1031,1024 !*/
    if (params.getParam("TES-8643.1", '0xD120', 0).getValue() == "Disabled")
    {
    params.setValue('0x2', 0, 0);
    } else {

    }
    /*!!
    &lt;block id="1026" type="if" x="344" y="447" w="268" INPUT1="ID:1032" OPERATION="equals" INPUT2="Caption CDP" TRUE="ID:1027" FALSE="" IGNORE="" /&gt;
    &lt;block id="1032" type="param_TES-8643.1&amp;amp;Encode Mode (0xD120)[0]" x="21" y="442" w="243" SET="" /&gt;
    &lt;block id="1027" type="param_setvalue" x="608" y="568" w="318" PARAM="[root, Params for teste%20-%20CC.grid, Not In Menu, Label (0x2)]" PARAM_DATA="_top&amp;amp;0x2[0]" VALUE="1" /&gt;
    &lt;block id="1023" type="if" x="282" y="113" w="268" INPUT1="ID:1031" OPERATION="equals" INPUT2="Disabled" TRUE="ID:1024" FALSE="" IGNORE="" /&gt;
    &lt;block id="1031" type="param_TES-8643.1&amp;amp;Encode Mode (0xD120)[0]" x="7" y="112" w="243" SET="" /&gt;
    &lt;block id="1024" type="param_setvalue" x="558" y="280" w="318" PARAM="[root, Params for teste%20-%20CC.grid, Not In Menu, Label (0x2)]" PARAM_DATA="_top&amp;amp;0x2[0]" VALUE="0" /&gt;
    !!*/
    /*!!&lt;checksum&gt;f5fe076e0ae5180f50e59fc20dae3859&lt;/checksum&gt;!!*/</task>
    </param>


    Thanks,

    ------------------------------
    João victhor Mariano
    ------------------------------


  • 2.  RE: Get status from TSE-8643 card

    Posted 11-08-2022 15:33
    Hi João
    You would want to check whether the value is 0 or 1 not "Disabled" vs "Caption CDP".
    If the parameter from the TES already has "Disabled" and "Caption CDP", you could also put the parameter directly on your panel and override the widget hint to be a "label" if you wanted to avoid having to update your own parameter.

    I do not have a TES on hand but it would look like this:
    <param contextid="TES-8643.1" expand="true" height="40" left="136" oid="0xD120" style="bg-align:center;txt-align:center;" widget="label" top="199" width="202">


    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------