The goal of this lesson is to introduce the most direct way of importing data into the simulation while it is running. The specific learning objectives are the following.
- Learn how to use the
player
object. - Learn how to loop input data.
The player
read values from a CSV files and updates object based on the timestamp associated with the values. There are two formats for timestamps.
-
YYYY-MM-DD HH:MM:SS [ZZZ]
, which is used to specify absolute time. -
+[DIGITS][UNIT], which is used to specify relative time. When this format is used the first timetamp must be absolute. If the
loop
option is used, the player data will be repeated the specified number of times.
- Play load data into load 114 (see
main.glm@11
) - Record the voltage at load 114 (see
main.glm@20
) - Setup the clock (see
main.glm@29
) - Generate the voltage plot (see
main.glm@37
)
- Place meters on all the loads added by tasks 1-5.