Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to show crosspoints on Matrix after element restart?

89 views1 day agodriver development Matrix
6
Gabriel Borges [SLC] [DevOps Advocate]660 3 days ago 2 Comments

Hello Dojo,

I am creating a matrix in a driver and found that on initial element creation, using the MatrixHelperForMatrix, the matrix will update and display all the crosspoints correctly. But after restarting the element and setting the same crosspoints again, they no longer show up. The crosspoints buffer and serialized data parameters all have the correct connections as well. The only way I have been able to get the crosspoints to show up is by disconnecting all connections from the outputs and the reapply them.

Is that the intended way to handle this scenario on element restart?

Below is the method I created to fill in the Matrix using the helper class:
private void ParseCrosspointsResposne(SLProtocolExt protocol, string responseData)
{
     var parsedData = JsonConvert.DeserializeObject<NatxCrosspoints>(responseData);
     var maxInput = parsedData.Value.Inputs.Max(x => x.Key);
     var maxOutput = parsedData.Value.Outputs.Max(x => x.Key);
     Matrix matrix = matrixStorage.GetMatrix(protocol);

     matrix.DisplayedInputs = maxInput;
     matrix.DisplayedOutputs = maxOutput;

     for (var i = 0; i < maxInput; i++)
     {
          matrix.Inputs[i].Label = "Input " + i;
     }

     for (var i = 0; i < maxOutput; i++)
     {
          matrix.Outputs[i].Label = "Output " + i;
          matrix.Outputs[i].DisconnectAll(); // Feel like this isn't needed
     }

     matrix.ApplyChanges(protocol); // Feel like this isn't needed

     foreach (var input in parsedData.Value.Inputs)
     {
          var inputIndex = input.Key - 1;
          matrix.Inputs[inputIndex].Label = input.Value.Label;
          matrix.Inputs[inputIndex].IsEnabled = true;
     }

     foreach (var output in parsedData.Value.Outputs)
     {
          var outputIndex = output.Key;
          var matrixIndex = outputIndex - 1;
          matrix.Outputs[matrixIndex].Label = output.Value.Label;
          matrix.Outputs[matrixIndex].IsEnabled = true;
          matrix.Outputs[matrixIndex].ToolTip = output.Value.Comment;

          if (parsedData.Value.State.ContainsKey(outputIndex))
         {
          matrix.Outputs[matrixIndex].Connect(parsedData.Value.State[outputIndex].Select(x => x - 1));
         }
     }

     matrix.ApplyChanges(protocol);
}
Many thanks in advance.

Gabriel Borges [SLC] [DevOps Advocate] Posted new comment 1 day ago
Tamara Markešić [SLC] [DevOps Advocate] commented 1 day ago

Hello Gabriel,

I believe this depends on how the ProcessDataFromDevice method is triggered and implemented. Could you provide a few more details so we can better understand the behavior?

Gabriel Borges [SLC] [DevOps Advocate] commented 1 day ago

Hello Tamara, I could not find the ProcessDataFromDevice method in the helper class or in the help so not sure what that is referring to, but I have added the method I am using to populate the matrix. For more context, I receive all the crosspoints at once via an HTTP response from the device.

0 Answers

  • Active
  • Voted
  • Newest
  • Oldest
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin