08-31-2018 01:17 PM
Greetings,
I'm developing a simulator of a generator system connected to a battery. Currently I have a VI that simulates the behavior of the system I mentioned. However, when I try to run the same model on two different VI's, the outputs gets corrupted.
In general I seek to simulate the response of a system of 4 independent generators and batteries. The base system Generator-Battery is as follows.
By doing several tests, I realized that the problem is due to the execution time of the different cycles.
I would like to know if there is a way to run the systems in parallel without affecting the response.
09-01-2018 06:43 AM
Have you looked at the picture of (some of) your code that you attached? I can't read anything on it! Please, attach your code, not a picture of it (imagine a 1000-line Matlab program submitted as a picture of a 1000-line printout ...).
It is certainly possible to run multiple instances of a sub-VI simultaneously (LabVIEW is known for its ability to do parallel processing). I've not used the Control and Simulation Toolbox much, but would imagine similar techniques would work there. However, a better understanding of what you are trying would be helpful. Attach your code, please.
Bob Schor