hello *,
new problem -> new question:
i have a text-file with one numeric value inside
(without index; first line)
for my simulation i need this value for a variable (var-component) in a ptolemy-schematic.
I already try to use the dataaccess-component, as well as a small ael-function. sadly, i get no running solution.
does someone has an idea?
thx georg
new problem -> new question:
i have a text-file with one numeric value inside
(without index; first line)
for my simulation i need this value for a variable (var-component) in a ptolemy-schematic.
I already try to use the dataaccess-component, as well as a small ael-function. sadly, i get no running solution.
does someone has an idea?
thx georg
Test File:
BEGIN DSCRDATA
% INDEX Value1 Value2
1 11 21
2 12 22
3 13 23
END DSCRDATA
DataAccessComponent (DAC1) parameters:
Type=Discrete
InterpMode=Index Lookup
iVar1=1
iVal1=2
VAR block:
X=file(DAC1, "Value1")
X will be 13 in your simulation.