08-03-2009 04:16 PM
Hello Everybody,
I am a bit stuck with one of my case structures. I am trying to set "True" for Boolean constant in order to enable "write to file" of the data once the number in one of the dynamic data flows reaches threshold value 79. I want to make sure that all numbers will be written after that, and not only numbers >=79.
My idea was to put Boolean "True" in the true part of the case structure, and leave nothing in the false part of the case structure. That unfortunately did not work
Does anybody know if there is a way to set Boolean to "True" after I reach desired number and keep it at "True" afterwards for continuous recording?
I would really appreciate any help
Oleks
Solved! Go to Solution.
08-03-2009 05:00 PM
Here's one idea. Hold the value of your boolean in a shift register and initialize it to false. When the value gets to 79 (threshhold) chnge the value to true. In the false case just feed it through.
Hope this helps. Saved it 8.5.1
08-03-2009 06:50 PM
Brilliant!
Thank you very much, that worked well
Oleks
08-03-2009 09:43 PM - edited 08-03-2009 09:44 PM
Just use a gobally initialized feedback node, less code. 😉
08-04-2009 09:21 AM
Dang, I keep forgetting about that feedback node. Great idea!
08-04-2009 10:08 AM
Thank you for the idea! It is really very neat way to do it!
Oleks