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
      • 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
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Can you edit a measurement point of a spectrum analyzer through an automation script?

Solved1.19K views23rd April 2023Automation script spectrum analyzer
1
Joachim Ally [SLC] [DevOps Enabler]1.57K 19th April 2023 0 Comments

Dear Dojo Community,

We were wondering if it is possible to edit a measurement point of a spectrum analyzer element via an automation script. To be more specific, in our use case, we would like to edit to be able to automate the editing of a frequency offset (as indicated in the screenshot below). And if so, we are highly interested in whether there is an example of how to implement this.

What would be even better, is to be able to add and immediately apply a measurement point on every spectrum analyzer element that is part of a certain view in the Surveyor.

Can someone help us with this, please?

Joachim Ally [SLC] [DevOps Enabler] Selected answer as best 23rd April 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Wouter Demuynck [SLC] [DevOps Advocate]5.96K Posted 20th April 2023 2 Comments

Hi Joachim,

Some things that can get you started:

The Class Library does have a few spectrum-related methods through the IDMSElement.SpectrumAnalyzer interface. These methods communicate directly with the SLSpectrum module to create and update presets / scripts / monitors / measurement points.

More specifically the SetMeasurementPoints method is of interest.

Caveats:

  • You’ll probably need to save all measurement points at one (you can use the GetMeasurementPoints method to retrieve the current ones though)
  • The definition is an array of string arrays which is not well documented. An example is below:

// when true, services will be created for the measurement points
bool createServices = false;

// measptdata specified ALL measurement points for the element at once.
object[] measptdata = new object[]
{
new string[]
{
“1”, // Measurement point ID (unique per meas pt)
“7”, // dma id of parameter to set (in case multiple parameters need to be set, this is “;” separated)
“123”, // element id(s) of parameter to set
“100”, // parameter id(s) to set
“measurement point name”,
“false”, // for each parameter to set, “true” if it is of string type
“111”, // value(s) to set in parameter
“0”, // delay time after set
“99”, // read pids associated with the write parameter ids specified above
“idx1”, // table indices of the parameters to set
“”, // freq offset
“”, // needs invert freq
“”, // automation script info (to be used instead of parameter sets)
“” // amplitude correction (RN3223)
},
new string[]
{
“2”, // Measurement point ID (unique per meas pt)
“7;7”, // dma id of parameter to set (in case multiple parameters need to be set, this is “;” separated)
“123;123”, // element id(s) of parameter to set
“100;100”, // parameter id(s) to set
“measurement point 2”,
“false;false”, // for each parameter to set, “true” if it is of string type
“111;112”, // value(s) to set in parameter
“0”, // delay time after set
“99;99”, // read pids associated with the write parameter ids specified above
“idx1;idx2”, // table indices of the parameters to set
“”, // freq offset
“”, // needs invert freq
“”, // automation script info (to be used instead of parameter sets)
“” // amplitude correction (RN3223)
},
new string[]
{
“3”, // Measurement point ID (unique per meas pt)
“”, // dma id of parameter to set (in case multiple parameters need to be set, this is “;” separated)
“”, // element id(s) of parameter to set
“”, // parameter id(s) to set
“measurement point 3”,
“”, // for each parameter to set, “true” if it is of string type
“”, // value(s) to set in parameter
“”, // delay time after set
“”, // read pids associated with the write parameter ids specified above
“”, // table indices of the parameters to set
“”, // freq offset
“”, // needs invert freq
“MyScriptName;#;PROTOCOL:1:7:59”, // automation script info (to be used instead of parameter sets)
“” // amplitude correction (RN3223)
},
};

Joachim Ally [SLC] [DevOps Enabler] Edited comment 24th April 2023
Joachim Ally [SLC] [DevOps Enabler] commented 21st April 2023

Thanks, Wouter for the input. It definitely helps me to get started. I will now experiment myself and come back to this later.

Joachim Ally [SLC] [DevOps Enabler] commented 23rd April 2023

Hi, I can now confirm it’s working. I am also trying to document my findings to help improve the documentation. I marked your answer as best. ✅

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