i want to know the way of using the neural nets as a block in simulink, i've used them as matlab functions and s-functions simply writing the code, but i wonder if i can use the already matlab /simulink integrated apps of neural networks in more specific "online" applications like control loops where i have an error to be optimized which is in most of the cases not related to the inputs or the outputs of the neural network.