spnSourceBlock: Get the source from a block and optionally execute it

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the srcIdx source from a block and optionally execute it namespace/enviroment you are calling the function from.

Usage

1
spnSourceBlock(Block, srcIdx, Eval = TRUE)

Arguments

Block

- character string, a name of a block.

srcIdx

- integer (1,2,3); Gets a source (code) from srcIdx tab of the respective block

Eval

- execute the code in namespace/enviroment you are calling the function from.

Value

spnOpenTree returns the number of groups in the new spec-tree. spnGetGrpCount

Author(s)

Teodor Krastev

See Also

spnLogBlock , spnChartBlock

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Initialization of Spectrino
spnNew() 

# generate test set
spnOpenGroupOfBlocks("<test>")

# gets source from tab 1 source of the block and execute it
spnSourceBlock("test3", 1, TRUE)

# Release of Spectrino
#spnFree(TRUE)

spectrino documentation built on June 4, 2019, 1:02 a.m.