LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Noobs Derivative question! About Derivative Initialization

I am new to LabVIEW and I have a simple question. My question is about - Deriative function x(t) PtByPt.Vi
You see I have to create the second Derivative graph of my first XY graph.. Now I have a Derivative function and there is a - "Initialize" inpuit for Boolean, but when I connect it and turn the boolean on I get the wrong graph, when I don't connect it to boolean everything works as it should. SO MY QUESTION IS WHAT DOES INITIALIZE DO?(like initialize what?If it does work even without it and does everything correct)
If someone can tell me please do so I will be greatful.
0 Kudos
Message 1 of 3
(2,762 Views)
Hi
 
If you're a newbie to LV, it would help you to understand it a bit more, if you open the derivative vi and have a look at it on your own.
 
But to answer your question:
 
You have three inputs to the vi (x, dt, initial condition). Simply said the vi just performs a division (dx/dt). Now - dt is a fixed value which is passed as parameter. x changes with each call of the vi and usually dx is calculated actual x - x from previous call. If you set the initialise input, dx is calculated like this: actual x - initial condition. Logically you use this vi in a loop - so ensure that initialised is just set on the first call and afterwards pass false to this input (or leave it out).
 
Hope this helps.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 3
(2,753 Views)
Thanks becktho you helped!
0 Kudos
Message 3 of 3
(2,740 Views)