| RTI SimCreator & SimObserver Support Home |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| aasaeedi |
Posted: Feb 14 2012, 01:17 PM
|
|
Newbie ![]() Group: Members Posts: 1 Member No.: 164 Joined: 14-February 12 |
Hi,
Thank you for your post about Collecting Data using Java Scripts here: http://www.simcreator.com/forums/index.php?showtopic=91 I know how I can use a passthrough component to save a variable into the .plt file. I also know how to print into the .out file. Is it possible to write text to a new file using the java script? If not, is it possible to save the plot data for a component into a separate plt file? The reason for asking this is that I need to save several data variables with different cycle intervals. Looking forward to hearing back from you. -- Amir |
| hstoner |
Posted: Feb 15 2012, 10:21 AM
|
|
SimVista Forum Moderator ![]() ![]() ![]() Group: Admin Posts: 97 Member No.: 16 Joined: 5-September 06 |
Hello Amir
Each .plt file is written by each block (top level group). It is possible for each of these top level groups to collect data at different rates. However it is not possible to collect the entire file at different rates. One way around that is to use a time sensor running at different rates and write the value at that different time steps. Then the values that are less will just be repeated. Then when you analyze your data the values that are repeated can be eliminated. .plt files can only have numbers in them not text. If you want text in your data you need to use the ToFileChar component. |
![]() |
![]() ![]() ![]() |