How to use TOWS (XCOS in Scilab)



Scilab

Release date:2024/11/03         

 ・In Japanese
Related information
 ・Block List


■TOWS block



■TOWS Explanation

Output the data to the workspace.



When you run a simulation, data for 5 steps is stored in the workspace in a variable called A. The contents of A are the time and values, as shown below.

--> A.time

ans =

   29.5
   29.6
   29.7
   29.8
   29.9

--> A.values

ans =

   -0.9410314   -4.705157
   -0.9701057   -4.8505287
   -0.9894871   -4.9474354
   -0.9989818   -4.994909
   -0.998495   -4.9924752


Here's how to output this data to a CSV file.First, combine the time data and value, then output it to a CSV file.

--> B=cat(2,A.time,A.values); # catis a function that concatenates arrays

--> csvWrite(B,"test.csv"); # csvWriteis a function that outputs to a csv file









List of related articles



Scilab