[etherlab-users] Accessing csv input in real time

Erik Euving e.j.euving at student.utwente.nl
Tue Apr 4 14:38:44 CEST 2017

Greetings all,

Take the following scenario in mind: a rotary motor with real-time Etherlab
to control it by sending it reference torque values. Using simulink I made
a controller that sends refTorque over Ethercat.

What I would like: the controller sends either refTorque = 0, or reads the
required refTorque from a csv txt file I have stored in a folder on the
control computer This csv txt file has a value for each sample, for
instance. I would like the controller to access this csv txt file. How
could I achieve this?

My challenge: I do not want to integrate the csv file into the simulink
model and have the combination compiled into the executable. The reasoning
is that I want to change the content of the csv file *after* compilation is
done, so I'm looking for a way to probe/read/whatever the csv file after
the controller code has been generated. Is there such a way?

Kind regards,
Erik Euving

e.j.euving at student.utwente.nl | +31641615351
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20170404/63d40bd9/attachment-0002.htm>

More information about the Etherlab-users mailing list