From version 2.x.xxxx.x | ADS in Simulink® The symbol information is entered in the upper area. These are not relevant for the type of data transport. With Multi-Select, this area is grayed out because it can only be assigned to one symbol and not several at the same time. In the lower area you can specify the property of reading and writing. Symbols Reading [*] If the Simulink ® SampleTime does not match the TwinCAT task cycle time of an ADS symbol, values for a specific time stamp may not be available. Further it can happen that during simulation with several SampleTimes a value with time stamp between existing values of Simulink ® is expected.
Accordingly, if there is enough data in the buffer (see BufferSize), you can interpolate or not interpolate between two values. Symbols Writing 3.6.1.2 Async ADS Read | Async ADS Read Asynchronous reading of an ADS symbol described at the input via AMS Net Id, Port, Index Group and Index Offset [ } 27] . The read command is sent from Simulink ® with a positive edge at the trigger port. Port description TE1410 36 Version: 1.3.1 Parameter Default value Description Sample Time (100 ns) TwinCAT task cycle time Period value with which the ADS symbol is to be read. Read Via Notification Yes Yes: ADS Notification is logged in. No:
read by polling with SampleTime Transmode Cyclic Only for notifications. Cyclic: value is transferred with SampleTime to Simulink®. OnChange: value is transferred to Simulink® when the value changes. Timeout (ms) 1000 ADS time-out period DelayTime (100 ns) 10*SampleTime Buffer size on TwinCAT XAR side. Default are 10 values of the ADS symbol. BufferSize 50 Buffer size in read samples on Simulink® page. Interpolation mode Nearest None: no interpolation Previous: uses the previous value. Next: uses the next known value. Nearest: uses the previous or next value, whichever is closer [*]. Extrapolation mode None None: no extrapolation Constant: new value is set to the last known value.
Parameter Default value Description Sample Time (100 ns) TwinCAT task cycle time Period value with which the ADS symbol is to be written. Timeout (ms) 1000 ADS time-out period BufferSize 50 Buffer size in samples on Simulink® page. Interpolation mode Nearest see above Extrapolation mode None see above