<div dir="ltr"><div class="gmail_default" style="font-size:small">Greetings all,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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 <b>after</b> 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?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Kind regards,</div><div class="gmail_default" style="font-size:small">Erik Euving</div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr"><a href="mailto:e.j.euving@student.utwente.nl" target="_blank">e.j.euving@student.utwente.nl</a> | +31641615351</div></div></div></div></div></div></div>
<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div></div>