LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean in empty case structure

Solved!
Go to solution

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 Smiley Sad 

 

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

0 Kudos
Message 1 of 6
(4,179 Views)
Solution
Accepted by topic author Oleks

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

Now Using LabVIEW 2019SP1 and TestStand 2019
Message 2 of 6
(4,166 Views)

Brilliant!

 

Thank you very much, that worked well Smiley Happy

 

Oleks

0 Kudos
Message 3 of 6
(4,155 Views)

Just use a gobally initialized feedback node, less code. 😉

 

 

 

 

Message Edited by altenbach on 08-03-2009 07:44 PM
Download All
Message 4 of 6
(4,143 Views)

Dang, I keep forgetting about that feedback node. Great idea!

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 5 of 6
(4,104 Views)

Thank you for the idea! It is really very neat way to do it!

 

Oleks

0 Kudos
Message 6 of 6
(4,092 Views)