Hi all,
How can we get the monitor details of the Spectrum Analyzer component of elements?. Example, I want to get the details of each monitor:
var spectrumAnalyzer = idmsElement.SpectrumAnalyzer;
if (spectrumAnalyzer == null)
{
return string.Empty;
}
var spectrumAnalyzerMonitors = spectrumAnalyzer.Monitors;
if (spectrumAnalyzerMonitors == null)
{
return string.Empty;
}
var monitors = spectrumAnalyzerMonitors.GetMonitors();
Here, monitors is an object? How can I get the details of each monitor (name, ...) from the object?
Hi Fenta,
This is how the GetMonitor() method is implemented: https://gist.github.com/TomW-Skyline/68afbd0be050e442cd62129a33490565. The code contains a comment which describes what's being returned in the object.
SA for the monitor:
0 = script id
1 = dma id
2 = eid
3 = interval (seconds)
4 = name
5 = description
6 = true/false (enabled/disabled)
7 = pre:post (amount of traces to store for alarm recordings)
8 = measpointid,measpointid,...
9 = true/false (auto group params)
10 = amount of templates (n) (RN1043)
11 -> 10+n = alarm template info strings (see GetInfo(SPAI_MONITOR))
10+n+1 = amount of CSV exports (m)
10+n+2 -> 10+n+1+m: CSV export info
x = generate service? (true/false)
x+1 = generated service ID
x+2 = presetname|presetname|...
Alarm template format:
* 6:#:pid:#:variable name:#:Description:#:bDisplayed:#:bMonitored:#:bTrended:#:templateType:#:valCH:#:valMaH:#:valMiH:#:valWaH:#:valNormal:#:valWaL:#:valMiL:#:valMaL:#:valCL:#:measPtId:#:DOUBLE:#:bUsesCustomRange:#:rangelow:#:rangehigh:#:decimals:#:units
* pid -> SL_NO_ID for new ids
* 7:#:pid:#:variable name:#:Description:#:bDisplayed:#:bMonitored:#:bTrended:#:templateType:#:valCH:#:valMaH:#:valMiH:#:valWaH:#:valNormal:#:valWaL:#:valMiL:#:valMaL:#:valCL:#:measPtId:#:bCustomPos:#:row:#:col:#:DOUBLE:#:bUsesCustomRange:#:rangelow:#:rangehigh:#:decimals:#:units
* pid -> SL_NO_ID for new ids
* 6.5.4+ support for TRACE
* 7:#:pid:#:variable name:#:Description:#::#::#::#::#::#::#::#::#::#::#::#::#::#:measPtId:#::#::#::#:TRACE:#:
Hopefully this information can help you further.