LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error generated when passing CD state space system into a simulation loop.

I created the following VI with the intentions of entering a state space model in Control Design and then passing it into a simulation loop when the "stop" button is pressed.  When I run it I recieve the following error "Error -2318 occurred at State-Space in SS3b.vi/Simulation Loop".  The puzzling part of this issue is if I write the CD state space system to a file, and then change the parameter source of the simulation state space VI  from a terminal to opening the written file, the VI will run.  I've attached the VI, and any insight would be greatly appreciated.
0 Kudos
Message 1 of 2
(2,191 Views)
I don't have the toolkits that you are using installed but I took a quick look at your code. One thing I noticed is that there is a coercion dot on the input to the one VI inside your second loop. This may be the source of your problem. When data is coerced you can get unexpected transformations that result in bugs or code not functioning.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 2
(2,184 Views)