Hello guys !
Sorry If I don't write well, It is my first question to the community.. and I am a newbie- Labview user.(neither a good enlish speaker 🤐)
I need for an universitary projet to calculate the derivative dY of a function as shown with the picture attached: dY
My calculation is very simple : dY=Y(t)-Y(t-dt).
I also have attached the Vi I created to do it.
It works well when it is the only Vi I call , but when I use it as a Sub-Vi in a projet ...and you may know here is my issue ..
It stays in the while loop (that is kind obsious since I need to call it to stop😅)
I have first thought that I could create some kind of boolean waveform whom stops the while-loop every Tcycle, but I am afraid the data would not be saved in the appened array...
Here is my question : How can I simply get this derivative, with a Sub-Vi callable, from a big projet-vi and maybe without using a while-loop?
I have also looked at other community questions, and a Timer-loop may be the solution, but I have never used it before..
Regards 😊
Victorin