03-16-2017 07:57 PM
Hi, I have a Control & simulation loop which I place a chart indicator for signal visualization. Often time the simulation period is very long which makes the chart laggy. The time step is 10ms. I was wondering if there is a way to decimate the values before they go to the chart.
I looked at "Decimation" in Simulation loop configuration but it appeared it had to do with Model Hierachy which I don't have. I also looked at Collector function, unbundle the output and wire to a graph but there was nothing. Any suggestions ?
Thanks!
03-16-2017 09:34 PM
Place the chart terminal into a case structure and update it only every n'th iteration.
03-17-2017 01:13 AM
I have had weird initialization results with case structure in a simulation loop so I try to avoid using it as much as possible. Maybe I miss out something, the toolkit should have a way to facilitate this feature but I just didn't come across yet.
03-17-2017 04:09 AM
What is the "weird result"?
03-17-2017 01:26 PM
Actually block diagram terminal (the chart) is not allowed inside case structure in a simulation loop. So cannot use case structure for this application.