¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Reading Data Stored in a CSV file on a Crestron Processor


 

Hi All

After some pointers, i've heard from a few other people that you can
if you wish store a CSV file on the Crestron processor and then access
the detials stored within your program.

Just unsure as to where to start.

Any pointers please

Iain


Chip Moody
 

The concept <cough> is easy enough.

Use the file functions in S+ to read the conents of the CSV file
into a buffer. If it helps, imagine this file as some device that
dumps a large chunk of data in through an RS232 port. When it's done
filling the buffer, now you can use the string manipulation functions
to parse out the data you want.

You would use Toolbox to transfer the CSV file from your computer to
the processor - most likely to the USER directory. If this is
something that will be updated with any frequency, you might look into
having the CSV file hosted on a web server and having the Crestron
read it from there - which is also easy. (In fact, it's easier than
dealing with the S+ file routines)

If you have a CSV sample file, feel free to shoot it over - I might
already have some code that I could tweak to your need...

- Chip

--- In Crestron@..., "Iain" <iain@...> wrote:

Hi All

After some pointers, i've heard from a few other people that you can
if you wish store a CSV file on the Crestron processor and then access
the detials stored within your program.

Just unsure as to where to start.

Any pointers please

Iain


 

Hello, Do you have an example for the Simple+?
best regard