IN2TABLE

From STX Wiki
Jump to navigationJump to search

IN2TABLE - data transfer: spu -> table

Usage:

IN2TABLE TABLE C MODE X0 .. X9

Inputs:
TABLE name of extended shell-table
C starting column (default=0)
MODE conversion mode: 0 or 1 (see function description)
Xi vector, number or strings containing values to be copied to the table
Outputs:

none, output values are stored in the table

Function:

If input MODE is set to 0, each input value is copied to its own column. One table row is appended at each evaluation step. The table fields (C, C+1, ...) must be defined according to the number and type of assigned inputs.

Table: Conversion method if MODE=0

type of Xi type and number of columns
number 1 numeric column
vector 1 numeric column for each vector element
string 1 string column


If the input MODE is set to 1, each input value is copied to one column. In this mode only number and vector inputs are allowed. All inputs must be of the same type and size. The values are not appended to the table! This means the number of table entries (rows) is equal to the number of copied values.

Table: Conversion method if MODE=1

type of inputs type and number of columns/rows
number 1 column for each input, 1 row
vector 1 column for each input, n rows (n=number of vector elements)

Navigation menu

Personal tools