| spnChartBlock {spectrino} | R Documentation |
Set the properties to be charted with each new iteration. These properies could be set from r with this command or from Spectrino app block interface.
spnChartBlock(Block, listOfProps)
Block |
The name of the block whose chart is set |
listOfProps |
Vector with the property names to be charted |
spnChartBlock - Gets back TRUE if opration is successful or FALSE if any of properties does mach block's properies or the chart is disabled (not enabled).
Teodor Krastev
# Initialization of Spectrino
spnNew()
# generate test group of blocks
spnOpenGroupOfBlocks("<test>")
spnChartBlock("test1",c("objective.0","sug.epsilon"))
spnIteration(20)
for(i in 1:20) {
spnSetProperty("test1", "objective.0", sin(i/2))
spnSetProperty("test1", "sug.epsilon", cos(i/2))
spnIteration(); Sys.sleep(0.1);
}
# Release of Spectrino
spnFree(TRUE)