ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Recorder automatic export
I'm not sure if this is the right forum but nothing else seemed to fit...
The model has a number of recorders with user-defined tables. I want the results of each replication to be dumped into csv files at the end of each replication, without the manual process of double-clicking the recorder, choosing View Captured Data and Export. I don't know which command would do this. I'm guessing exporttable, but I can't find the "table" that the recorder is actually using. I wrote the following, which compiles and runs at the end of replication but does nothing: exporttable(node("Recorder1", model()), "C:\Proj\recorder1.csv"); What should I be looking at? What command might actually do this? |
#2
|
|||
|
|||
You were very close. This command should work:
exporttable(node("/Recorder1>variables/graphdata",model()),"C:\Proj\recorder1.csv"); The node parameter of the exporttable function has to be the table node, not the object. The table is one of the variables, so it is under variables in the tree. |
#4
|
||||
|
||||
Try this:
exporttable(node("/Recorder1>variables/graphdata/1",model()),"C:\\Proj\\recorder1.csv",1,0); First, the table node itself is actually a subnode of the graphdata node, one for each node recorded by the Recorder, so the node() command needs a /# where # is the row in the table of nodes recorded by the recorder. Second, the string path in quotes needs \\ instead of \ because '\' is a reserved character in Flexscript and C++. -Phil |
Thread | Thread Starter | Forum | Replies | Last Post |
problem with automatic generation of objects by using a user library and c++ | Martin Saler | Q&A | 17 | 06-05-2009 09:56 AM |
problem of recorder | qin tian | Q&A | 5 | 09-27-2008 10:42 PM |
Display Labels with the Recorder | tsconcept | Q&A | 9 | 09-26-2007 08:16 AM |