How to create plot from a vector?
How to create a plot according to values from a vector (IntVec)?
To be able to create a plot from values that are saved inside a vector object (VisVec) you first need to define and fill a result file (ElmRes) with values from a vector of interest.
The easiest way would be to define a result parameter inside of your DPL script (for example 'vectorValue' of type double) and to add it to ElmRes. This can be done as follows:
Results.AddVariable(this,'b:vectorValue');
The next step would be to fill the ElmRes for example within a for loop
vecSize= Vector.Size();
for(index = 1; index <=vecSize; index += 1) {
this:vectorValue = Vector.Get(index);
Results.Write(); }
After the values from VisVec have been read and written to ElmRes, ElmRes can be used in a graphic.
Refer to attached pfd file.