Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

What are the timings for xPC Target I/O

1 visualizzazione (ultimi 30 giorni)
Alex Broekhof
Alex Broekhof il 6 Dic 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I'm driving an inverter with digital outputs from my target PC, however I'm a bit unsure of how the timing is working. I suppose that at the beginning of the sample period, the analog inputs are read, with which the digital outputs are computed. Are these applied to the outputs as soon as the computation is complete, or when the sample period is over?

Risposte (1)

Rajiv Ghosh-Roy
Rajiv Ghosh-Roy il 6 Dic 2013
For both the analog and digital signals, the actual reading/writing is done in the block; so this happens when the block executes.
For instance, let's say you have a sample time of 0.1 seconds, and your model execution takes a very short time (< 1 ms). This means that both the analog read and digital write will happen within that first 1 ms.
  1 Commento
Alex Broekhof
Alex Broekhof il 6 Dic 2013
Thanks for the explanation. Is this in the documentation anywhere?

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by