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
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

How to show crosspoints on Matrix after element restart?

231 views7 days agodriver development Matrix
8
Gabriel Borges [SLC] [DevOps Advocate]680 10th June 2025 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.

Luís Freitas [SLC] [DevOps Advocate] Answered question 7 days ago
Tamara Markešić [SLC] [DevOps Advocate] commented 12th June 2025

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 12th June 2025

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.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Luís Freitas [SLC] [DevOps Advocate]538 Posted 7 days ago 0 Comments

To be on the same page, since this doesn't seem like a quick win, DataCore asked to create a task so we can properly follow up.

Luís Freitas [SLC] [DevOps Advocate] Answered question 7 days ago
You are viewing 1 out of 1 answers, click here to view all answers.
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