1

BCVTB: How to log E variables into csv?

How do you log E+ variables into a csv file using the BCVTB?

I've tried to use the CSVWriter, but I get an input type error no matter what I've tried (can't seem to figure out how to create "record-valued input tokens") and I also cannot figure out how to input the fileName.

For example I tried using "ArrayAccumulate" to store my data into an array before linking that output to the CSVWriter. That failed, bad type too (plus, that wouldn't have worked since I would need to be able to fire CSV generation only at my end timestep)

Error

Julien Marrec's avatar
29.7k
Julien Marrec
asked 2016-06-27 15:49:40 -0500, updated 2016-06-27 17:17:47 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

I think I've just figured it out.

I've found a RecordAssembler under Flow Control > Aggregator.

For the filename I used a StringConst under Sources > Generic Source.

CSVWriter setup

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2016-06-27 16:22:26 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments