05-09-2014 07:15 PM
Hello;
I am a student, I have a project of simulation of a converter in labview and compare the results with those obtained in matlab. 3 input signals are compared to a reference signal to obtain a logical answer : T if<Ref or F if > Ref. So there are 6 states to set up and solve the associated linear systems (please see attachments). I have difficulties in:
- Resolution of systems of states 3, 4 and 5 of the form dX = AX + BU.
- Graphical Representation of results-outputs (I, VC1 and VC2).
- definition of X0 initial state values: the initial value of a state is the final value of the previous state.
Thank you in advance for your support.
05-12-2014 11:49 AM
Hello Anas,
Could you please ask a more specific question. I'm not sure about ywhat your for loop is doing exactly, or what you want it to do.
Thanks,
M-Junior
05-13-2014 03:37 PM
Hello M-Junior,
Thank you for your reply, the while loop is generated automaticlly when we choose synchronous statecharts.
http://zone.ni.com/reference/en-XX/help/372103F-01/lvscconcepts/sc_c_callervi/
I have aborted working on ODE solver, because I can't solve linear system dX=AX+BU .. now I'm working on Control Design and Simulation Module.. I've 3 input signals that are compared with a signal of reference (0.5v) , if lower ==> ansower is 1 if greater ==> 0 then according to that , I have six states with six state space functions to solve. for example, if S1=0 S2=1 S3=1 this will activates the state number 1 .. I have almost completed the work, but still need help to define dt on Linear Simulation (State-Space).
thanks
attached updated VI
05-13-2014 03:49 PM
Sorry, I mean that, as I understand from help, we need timed loop for synchronous statecharts..thank you.