# Simple xcos file read and plot with C\_scope

**URL:** <https://scilab.discourse.group/t/simple-xcos-file-read-and-plot-with-c-scope/1155>\
**Category:** Scilab beginners\
**Created:** [May 23, 2026, 6:02am UTC](https://scilab.discourse.group/t/simple-xcos-file-read-and-plot-with-c-scope/1155 "2026-05-23T06:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![greenguy](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@greenguy](https://scilab.discourse.group/u/greenguy)\
**Post date:** [May 23, 2026, 6:02am UTC](https://scilab.discourse.group/t/simple-xcos-file-read-and-plot-with-c-scope/1155/1 "2026-05-23T06:02:28Z")

</div>

Trying to do a simple read from file (or workspace) and input this to a c\_scope so I can plot the file contents. Yes I can plot it in SciLab but the point is to fancy with signal processing once I know I can get a stream going based on file input. The xcos project is simple with just a R\_File or FROMWSB going into the C\_Scope and a clock going into the C\_Scope. The problem is matching up the data type with C\_Scope. The original file is simply a single line per value, the values being integers (ADC Samples in signed integer format). chatgpt is not much help. I also tried setting up a file with time values in the first column and ADC values in the second column but that does not work either. Also tried reading the two different fields into scilab with fscanfMat and then using FROMWSB with no success. I would not have thought this would be this complicated. Did this several years ago but don’t have those file around anymore and cannot recreate what I did. Something must have changed but I can’t figure out what.

---

<div class="post-metadata">

**Author:** ![greenguy](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@greenguy](https://scilab.discourse.group/u/greenguy)\
**Post date:** [May 23, 2026, 11:48pm UTC](https://scilab.discourse.group/t/simple-xcos-file-read-and-plot-with-c-scope/1155/2 "2026-05-23T23:48:44Z")

</div>

Got it to work. Wow the rfile\_f block looks to be much more picky now. The values have to be have to be delimited by three spaces between columns and values only work if they are scientific notation?
