01-02-2008 11:12 AM
01-02-2008 12:08 PM
01-02-2008 12:23 PM
01-02-2008 12:46 PM - edited 01-02-2008 12:48 PM

01-02-2008 01:43 PM
Sorry, I was not clear enough. The Node you point out in your response appear to work and the integrator function here is working. My problem is with the one inside the subVI "resonator". the vi is inside the while loop(2 instances). The purpose is to create a resonator filter and it integrates the input signal. See attached picture.
I am not sure how this is all implemented, but effectively the value seems stuck to the initialization value. When I left click on the node, the option "Initialize Globally" is ticked but also greyed out. It was my assumption that this means it is intialized only at first load, when the Vi starts.
Funny parts is this as been working for more than 2 months. Today it stopped. Last week I had problems with Nan numbers. That was also funny because it was the first time I had that issue. It seems that they were generated by the subVI "integrator". I wanted to go back and understand why I had those.
I understand you preference for shift register but if you see how many node I am using, my main VI becomes worse than a plate of spaghetti. I like the new 8.5 feature but need to understand how it works and why the behavior changed.
01-02-2008 08:22 PM
JMZanni wrote:
I am not sure how this is all implemented, but effectively the value seems stuck to the initialization value. When I left click on the node, the option "Initialize Globally" is ticked but also greyed out. It was my assumption that this means it is intialized only at first load, when the Vi starts.
01-03-2008
07:36 AM
- last edited on
03-11-2025
09:12 AM
by
Content Cleaner
I noticed also that your Resonator.vi is duplicate in your code, however, it is not set as Reentrant Execution. This means that your Feedback Node will be shared between each execution. I think you want to set that VI to Reentrant and "maintains state for each instance". Have you tried to do that?
Additional to this, notice that LabVIEW has Module called "Control Design and Simulation Module" that allow you to "integrate", using higher order solvers (Runga-Kutta 4, for example), which would give better precision on your calculation. Also, I noticed that you have limiters and saturations, which all can be handled inside the simulation. Notice that you don't need to control time or feedback nodes to keep control of the simulation. All of this is abstracted for you.
01-03-2008 08:37 AM
Thanks Barp. Reentrant does the trick. It was my assumption(obviously wrong) that the system automatically created the Vi's as separate instances. I am fairly new at this and still have a lot to learn....
I will review your other comments too. I followed the link and ooch a bit pricey. I have a Developer Suite license. Is this Add on included? How can I check?
Note, this module is only use todevelop the control algorythm I want to implement on a real time CRio. However I have issues with performance and still struggling with it. But this is another story.
Thank you very much.
01-03-2008 12:39 PM