LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric Operations with transfer functions

also i am trying to  learn hwo this integrator works, because i am trying to give a sine wave which should give a sine wave a s output but its giving something else. also same with square wave. i am attaching the vi i have made for that. please tell me whats wrong with it.
0 Kudos
Message 41 of 42
(532 Views)

Shank,

The ODE solver issue that you are running into is because the Variable Step Size is reducing its steps until it reaches the limits defined by the solver. In general, you should not need to change much of those parameters, so that is the reason you are running into them. Please open the manual and look under "VI and Function Reference>>Simulation VIs and Functions>>Simulation Loop" and click on "Configure Simulation Parameters". There you can see a description of how the parameters work and how to set them up. As of now, Simulation do not have an automatic selection to simulation the system.

Another idea is change the solver to be fixed step size and try to give a "Time Step" that is relatively small (twice the maximum frequency of the system that you are trying to simulate). This would take longer, but maybe you can see the response. Another idea is try to use the BDF solver, since your system seemed to have quick responses together with slow ones.

I also noticed that you still using the "Simulate Signal" express VI. This VI has to be placed outside the loop and you have to add code to repeat itself every time. I advice to avoid using this VI and use the VIs inside "Simulation>>Signal Generation". They are designed to handle several details related to this VI.

If you are still not able to work with the tips that I provided, please let me know and attach your latest version of the VI with the recommendations that I gave you, so I can try to look into this. Thank you for using LabVIEW ! 🙂

Message Edited by Barp on 10-25-2007 09:04 AM

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 42 of 42
(517 Views)