Hi,
my approach is similar to Marcus’s.
Call AsIOEnableForcing() in _INIT when CPU is in Simulation mode (DiagCpuIsARsim ()=TRUE).
1.) If you need real time simulation data (every cycle matters) write to the variable connected to the forced IO- datapoint by _CYCLIC application code.
Automation Studio uses plain text files for source code, which can also be created using external tools and filled with simulation files (e.g. fill an array).
2.) if real time is not important one can use PVI’s LinkNodes to write to the IO- datapoints from outside. We had a similar discussion a few days ago: Is it possible to activate variable forcing (ForceActivated / ForceActivated Value) programmatically via PVI? - Ask Questions / Programming - B&R Community