spnChartBlock {spectrino}R Documentation

Initialization of block's chart

Description

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.

Usage

spnChartBlock(Block, listOfProps)

Arguments

Block

The name of the block whose chart is set

listOfProps

Vector with the property names to be charted

Value

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).

Author(s)

Teodor Krastev

Examples

# 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)

[Package spectrino version 2.0.0 Index]