LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need a true boolean response in a SubVI but idk why keeps to give a false one

I need this VI to give me a true boolean after the Time has elapsed function but i don't understand why it keeps on giving a false one.

 

 

0 Kudos
Message 1 of 4
(951 Views)

Because it's not inside a While Loop, so your code executes once and stops instead of running until the time expires and then stopping

 

I suggest you take some of the LabVIEW tutorials linked at the top of this forum

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 4
(946 Views)

Yes, the basic tutorials will help.

 

When you call your subVI, the following will happen

 

  • If blank button is FALSE, it will execute the empty case and return
  • If blank button is TRUE, it will test if 3 seconds have elapsed, which probably depends on how you call it. You don't show that!

Instead telling us how you want to do things, ask what you want the subVI to do.

 

It seems you just want it to return a reading after 3 seconds, simulating a slow instrument response.

 

  • What should it return as pH if Blank is false?
  • How long should it wait if Blank is false?
  • How are you calling this? (Show us the toplevel VI!)

Also note: All terminals connected to the connector pane belong on the toplevel diagram, not inside case (and other) structures.

 

Maybe something as follows:

 

altenbach_0-1647535622036.png

 

0 Kudos
Message 3 of 4
(931 Views)

Sorry, I should have shown everything

But despite of it  you gave me the solution I needed, thanks a lot

0 Kudos
Message 4 of 4
(919 Views)