04-30-2021 08:59 AM
hi, i need to equip the attached vi to reset.
I need an input that allows me to reset the vi in the defoult condition when the reset event occurs.
Thanks for the help you will give me.
04-30-2021 01:12 PM
It seems like you just want to set the value in the feedback nodes, is that right?
You can make a boolean input called "Initialize" and then use "select" nodes or a case structure to send default values when true, or pass through the wires as they when false.
04-30-2021 04:06 PM
I tried doing this so should it work? Thanks for your help
04-30-2021 10:52 PM
What you need to implement is a FGV (Functional Global Variable).
It is a while loop that iterates once, then you use shitf registers to hold values.
You can implement States Machines Globally, for me are particularly useful to refactoring old spaghetti code.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000015BjzSAE&l=es-MX
Hope it helps you!
05-02-2021 11:03 AM
Hi Marco,
That might be what you want, but it's hard to tell from the original post what you want exactly. I assume you're calling this as a SubVI. Some data is stored in between calls in the feedback nodes. I'm not familiar with those pink blocks, are those for real-time programming? Do those store data between calls? If yes, you may have to call your function with default values like you show.
If you just want to initialize the feedback nodes, you could do something like below:
05-03-2021 01:26 PM
hi, I would like to know if there is a way to start the generation of the function always from the same point.
Let me explain, every time I run the subvi in question (which runs on fpga) the generation of the function starts from a different point.
help me please