LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to specify initial system state in Simulation loop?

Using the Simulation toolkit, I am trying to PID control a system parameter.

Is there any way to specify an initial parameter value (or full initial state vector)? For instance, I would initially like the system to be at 10 then step to 11 at time 1, but the system always starts at 0.

I am attaching a sample VI as well as my own PID subsystem VI (Sim 1.0 cannot code PID through a transfer function block). Please let me know, Thanks.
__________________________________
Laine
0 Kudos
Message 1 of 4
(2,608 Views)
Hi, Laine,

Could you attach your VI (or a picture of the Block Diagram) to understand better what you are trying to do?

Thanks!

GValdes
0 Kudos
Message 2 of 4
(2,582 Views)
Sorry, I thought I did this on the initial post. See the attached test system (requires Simulation toolkit). It works fine until a nonzero offset is entered, then you can see the issue.

I realize I can "code around" the problem by subtracting then adding a DC offset, but this method will get messy in the bigger picture.

Thanks.
__________________________________
Laine
0 Kudos
Message 3 of 4
(2,578 Views)
Anyone had a chance to look at this? All I want to do is specify the initial system state for a Simulation loop. I'm sure I'm missing something simple, but I can't see how to do this.

Thanks,
Laine
__________________________________
Laine
0 Kudos
Message 4 of 4
(2,565 Views)